/* ==========================================================
   QUẢN TRỊ DỰ ÁN ĐẦU TƯ — HỆ THỐNG PHÂN CÔNG 20 SLIDE BÀI GIẢNG ĐẤU THẦU
   Phong cách thiết kế: Executive Modern Dashboard & Glassmorphism (2026 Edition)
   Font: Plus Jakarta Sans | Palette: Deep Slate, Royal Indigo, Emerald Teal, Amber Gold
   ========================================================== */

:root {
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Brand Palette (Light) */
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --primary-glow: rgba(79, 70, 229, 0.25);
  
  --navy: #0F172A;
  --navy-surface: #1E293B;
  --navy-light: #334155;
  
  --teal: #0D9488;
  --teal-hover: #0F766E;
  --teal-light: #F0FDFA;
  
  --amber: #D97706;
  --amber-light: #FFFBEB;
  
  --rose: #E11D48;
  --rose-light: #FFF1F2;

  /* Surfaces & Backgrounds (Light) */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-glass: rgba(255, 255, 255, 0.85);
  --bg-alt: #F1F5F9;
  --bg-subtle: #F8FAFC;
  
  /* Text Colors */
  --text-heading: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-on-primary: #FFFFFF;
  
  /* Borders */
  --border-subtle: #E2E8F0;
  --border-focus: #6366F1;
  --border-glass: rgba(226, 232, 240, 0.8);
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.1), 0 8px 12px -3px rgba(15, 23, 42, 0.05);
  --shadow-primary: 0 8px 24px -4px rgba(79, 70, 229, 0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================
   DARK THEME (Deep Obsidian Space)
   ========================================================== */
body.dark-theme {
  --bg-page: #0B0F19;
  --bg-card: #111827;
  --bg-card-glass: rgba(17, 24, 39, 0.78);
  --bg-alt: #1F2937;
  --bg-subtle: #141D2E;
  
  --text-heading: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-focus: #818CF8;
  
  --primary-light: rgba(99, 102, 241, 0.15);
  --teal-light: rgba(13, 148, 136, 0.15);
  --amber-light: rgba(217, 119, 6, 0.15);
  --rose-light: rgba(225, 29, 72, 0.15);
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 16px -2px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.8);
  --shadow-primary: 0 8px 24px -4px rgba(99, 102, 241, 0.4);
}

/* Base Reset & Core Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  font-size: 14.5px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

/* ==========================================================
   AMBIENT GLOW & CANVAS NETWORK
   ========================================================== */
.cyber-bg-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(at 10% 10%, rgba(79, 70, 229, 0.08) 0px, transparent 55%),
    radial-gradient(at 90% 15%, rgba(13, 148, 136, 0.07) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(30, 58, 138, 0.08) 0px, transparent 60%);
  opacity: 0.9;
}

body.dark-theme .ambient-mesh {
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.16) 0px, transparent 55%),
    radial-gradient(at 90% 15%, rgba(14, 165, 233, 0.14) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(13, 148, 136, 0.12) 0px, transparent 60%);
}

#cyber-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

/* ==========================================================
   FLOATING GLASS NAVIGATION HEADER
   ========================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  flex-shrink: 0;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.brand-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}

.dot-separator {
  opacity: 0.5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================
   BUTTONS & MICRO-INTERACTIONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4338CA 0%, #2563EB 100%);
  box-shadow: 0 10px 25px -4px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-heading);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-body);
  border-color: var(--border-subtle);
}
.btn-outline:hover {
  background: var(--bg-alt);
  color: var(--text-heading);
}

.btn-glass {
  background: var(--bg-card-glass);
  backdrop-filter: blur(10px);
  color: var(--text-heading);
  border-color: var(--border-glass);
  box-shadow: var(--shadow-xs);
}
.btn-glass:hover {
  background: var(--bg-alt);
  border-color: rgba(99, 102, 241, 0.4);
}

.btn-canva {
  background: linear-gradient(135deg, #00C4CC 0%, #7D2AE8 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 196, 204, 0.3);
}
.btn-canva:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(125, 42, 232, 0.35);
}

.btn-chatgpt {
  background: linear-gradient(135deg, #10A37F 0%, #059669 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(16, 163, 127, 0.35);
  font-weight: 600;
  text-decoration: none;
}
.btn-chatgpt:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(16, 163, 127, 0.45);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 4px 8px;
  font-size: 11.5px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
  font-weight: 700;
}

/* ==========================================================
   MAIN LAYOUT & HERO SECTION
   ========================================================== */
.main-content {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 64px;
  flex: 1;
}

.hero-showcase {
  background: var(--bg-card-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.hero-showcase::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-body);
  max-width: 920px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.hero-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-md);
}

.hero-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ==========================================================
   FILTER SECTION (Member Pills & Search)
   ========================================================== */
.filter-section {
  background: var(--bg-card-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.filter-title {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-controls-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.search-input-wrap {
  position: relative;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-select {
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text-heading);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.member-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.member-pill-btn:hover {
  background: var(--bg-alt);
  color: var(--text-heading);
  border-color: rgba(99, 102, 241, 0.3);
}

.member-pill-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.member-pill-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
}

.member-pill-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--text-muted);
}

.member-pill-btn.active .member-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* ==========================================================
   VIEW NAVIGATION TOOLBAR & TABS
   ========================================================== */
.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.view-nav-buttons {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  gap: 4px;
}

.view-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.view-nav-btn:hover {
  color: var(--text-heading);
}

.view-nav-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

/* ==========================================================
   VIEW PANES & TABLES
   ========================================================== */
.view-pane {
  display: none;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.slide-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.slide-table thead th {
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.slide-table tbody tr {
  transition: var(--transition-smooth);
}

.slide-table tbody tr:hover {
  background-color: var(--bg-alt);
}

.slide-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.slide-table tbody tr:last-child td {
  border-bottom: none;
}

.slide-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge-part {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-intro {
  background: rgba(79, 70, 229, 0.12);
  color: #4F46E5;
}
.badge-tech {
  background: rgba(13, 148, 136, 0.12);
  color: #0D9488;
}
.badge-matrix {
  background: rgba(217, 119, 6, 0.12);
  color: #D97706;
}
.badge-summary {
  background: rgba(2, 132, 199, 0.12);
  color: #0284C7;
}

.assignee-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assignee-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.assignee-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-heading);
  display: block;
}

.assignee-role {
  font-size: 11.5px;
  color: var(--text-muted);
  display: block;
}

.slide-title-table {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 6px;
}

.slide-summary-box {
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.5;
}

.slide-summary-box div {
  margin-bottom: 2px;
}

/* ==========================================================
   3D CARD DECK GALLERY (CARDS VIEW)
   ========================================================== */
.deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.deck-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.deck-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-lg);
}

.deck-card-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.deck-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0F172A;
  overflow: hidden;
  position: relative;
}

.deck-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.deck-card:hover .deck-card-thumb img {
  transform: scale(1.04);
}

.deck-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  position: relative;
  overflow: hidden;
}

.deck-card-thumb-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
}

.deck-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.deck-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 8px;
}

.deck-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================
   MATRIX VIEW (6 CHUYÊN ĐỀ NGHIỆP VỤ)
   ========================================================== */
.matrix-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.matrix-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.matrix-tab-btn:hover {
  background: var(--bg-alt);
  color: var(--text-heading);
}

.matrix-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.matrix-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.matrix-badge-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================
   TEAM ROSTER GRID
   ========================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.team-member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.team-member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-md);
}

.member-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.member-card-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.member-topic-box {
  width: 100%;
  background: var(--bg-alt);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-body);
  text-align: left;
  line-height: 1.5;
  margin: 14px 0;
}

/* ==========================================================
   MODAL & PRESENTATION OVERLAYS
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.code-pre-box {
  background: #0F172A;
  color: #E2E8F0;
  padding: 16px;
  border-radius: var(--radius-md);
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Presentation Mode Overlay */
#presentation-overlay {
  position: fixed;
  inset: 0;
  background: #090D16;
  color: #F8FAFC;
  z-index: 2000;
  display: none;
  flex-direction: column;
}

#presentation-overlay.active {
  display: flex;
}

.pres-header {
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
}

.pres-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.pres-main {
  flex: 1;
  padding: 40px;
  display: flex;
  gap: 40px;
  overflow-y: auto;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.pres-slide-view {
  flex: 1.2;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.pres-notes-view {
  flex: 0.8;
  background: #1F2937;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.pres-footer {
  padding: 16px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: #0F172A;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pres-main {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-showcase {
    padding: 24px;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Hero Showcase Clean */
.hero-showcase-clean {
  background: var(--bg-card-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

.hero-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--text-heading);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

body.dark-theme .meta-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
