/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Design tokens ── */
:root {
  /* Brand colours - Deep Ocean & Coral */
  --primary:       #185fa5;
  --primary-light: #e6f1fb;
  --primary-dark:  #0a192f;
  --accent:        #ff6b6b;
  --accent-light:  #ffe3e3;
  --accent-hover:  #fa5252;
  --red:           #fa5252;
  --red-light:     #ffe3e3;
  --blue:          #185fa5;
  --blue-light:    #e6f1fb;

  /* Neutrals */
  --bg-body: #f4f7fb;
  --gray:    #f8f9fa;
  --gray2:   #e9ecef;
  --gray3:   #868e96;
  --text:    #111827;
  --text2:   #374151;
  --text3:   #6b7280;
  --white:   #ffffff;
  --border:  #e5e7eb;

  /* Utilities */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow:    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(255, 107, 107, 0.4);
  --radius:    16px;
  --radius-sm: 10px;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* ── Base ── */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

/* ============================================================
     NAV BAR (Glassmorphism)
============================================================ */
nav {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary-dark);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(24, 95, 165, 0.3);
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text2);
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  background: none;
  font-family: inherit;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 60%;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ============================================================
     BUTTONS (Interactive & Modern)
============================================================ */
.btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-outline {
  background: white;
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { 
  background: var(--primary-light); 
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2071c2);
  color: white;
  box-shadow: 0 4px 12px rgba(24, 95, 165, 0.3);
}
.btn-primary:hover { 
  box-shadow: 0 6px 16px rgba(24, 95, 165, 0.4);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}
.btn-accent:hover { 
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--red);
  color: white;
}

.btn-sm { padding: 7px 16px; font-size: 13.5px; }

/* Hero buttons */
.btn-hero {
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Outfit', sans-serif;
}

.btn-hero:active {
  transform: scale(0.96);
}

.btn-hero-white {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.btn-hero-white:hover { 
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-3px);
}

/* ============================================================
     BADGES
============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-admin   { background: #1e1b4b; color: #a5b4fc; }
.badge-teacher { background: var(--primary-light); color: var(--primary); }
.badge-student { background: #e0e7ff; color: #3730a3; }
.badge-parent  { background: #fce7f3; color: #9d174d; }
.badge-pending { background: #ffedd5; color: #c2410c; }
.badge-active  { background: #dcfce7; color: #166534; }
.badge-done    { background: var(--primary-light); color: var(--primary); }

/* ============================================================
     USER CHIP (nav)
============================================================ */
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  background: var(--bg-body);
  border-radius: 30px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.user-info:hover {
  border-color: var(--primary);
  background: white;
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ============================================================
     PAGE VISIBILITY
============================================================ */
.page { 
  display: none; 
  min-height: calc(100vh - 70px); 
  animation: fadeIn 0.4s ease-out;
}
.page.active { display: block; }

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

/* ============================================================
     HOME – HERO (Dynamic Tech Focus)
============================================================ */
.hero {
  background: var(--primary-dark);
  color: white;
  padding: 60px 2rem 100px;
  text-align: left;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('hero.png') no-repeat center center;
  background-size: cover;
  opacity: 0.4;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark) 20%, transparent 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-overlay { background: linear-gradient(0deg, var(--primary-dark) 40%, rgba(10,25,47,0.7) 100%); }
  .hero-btns { justify-content: center; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 0 2.5rem;
  line-height: 1.7;
  color: #d1d5db;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Stats bar (Glassmorphism overlap) ── */
.stats-bar {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 1000px;
  margin: -50px auto 3rem;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.stat-item { text-align: center; }

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
     HOME – FEATURE SECTION
============================================================ */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-sub {
  color: var(--text3);
  margin-bottom: 4rem;
  text-align: center;
  font-size: 1.1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.fi-green  { background: var(--primary-light); color: var(--primary); }
.fi-orange { background: var(--accent-light);  color: var(--accent); }
.fi-blue   { background: #e0f2fe; color: #0284c7; }
.fi-red    { background: #fce7f3; color: #db2777; }

.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text); }
.feature-card p  { font-size: 14px; color: var(--text3); line-height: 1.7; }

/* ============================================================
     CLASS CARDS
============================================================ */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.class-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.class-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.class-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray2);
  background: linear-gradient(to bottom, #ffffff, #fafafa);
}

.class-card-body   { padding: 1.5rem; flex: 1; }

.class-card-footer {
  padding: 1.2rem 1.5rem;
  background: var(--gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.class-level {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-light);
  color: var(--accent-hover);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.class-name    { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.class-teacher { font-size: 13.5px; color: var(--text3); display: flex; align-items: center; gap: 6px;}

.class-info     { display: flex; flex-direction: column; gap: 10px; }
.class-info-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text2); font-weight: 500;}

.slots-bar {
  height: 8px;
  background: var(--gray2);
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}

.slots-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f59f00);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
     AUTH PAGES (login / register)
============================================================ */
.auth-wrap {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: url('hero.png') no-repeat center center;
  background-size: cover;
  position: relative;
}

.auth-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 25, 47, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 3rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
  animation: slideUp 0.5s ease-out;
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  text-align: center;
}

.auth-sub {
  font-size: 14px;
  color: var(--text3);
  margin-bottom: 2rem;
  text-align: center;
}

/* ── Form controls ── */
.form-group  { margin-bottom: 1.4rem; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.5rem;
}

.form-control, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.1);
}

.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* ── Role tabs (register page) ── */
.role-tabs {
  display: flex;
  background: var(--gray2);
  border-radius: var(--radius-sm);
  padding: 5px;
  margin-bottom: 1.8rem;
}

.role-tab {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  transition: all 0.2s ease;
  border: none;
  background: none;
  font-family: inherit;
}

.role-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.form-link          { color: var(--primary); text-decoration: none; font-weight: 700; }
.form-link:hover    { text-decoration: underline; color: var(--primary-dark); }

/* ── Alerts ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ============================================================
     DASHBOARD – LAYOUT
============================================================ */
.dash-wrap {
  display: flex;
  min-height: calc(100vh - 70px);
}

/* ── Sidebar ── */
.sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid var(--border);
  padding: 2rem 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-menu { list-style: none; flex: 1; }

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2rem;
  cursor: pointer;
  color: var(--text2);
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 0 4px 4px 0;
}

.sidebar-item:hover {
  background: var(--bg-body);
  color: var(--primary-dark);
}

.sidebar-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar-item.active::before { opacity: 1; }

.sidebar-item svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Content area ── */
.dash-content {
  flex: 1;
  padding: 2.5rem;
  background: var(--bg-body);
  overflow-y: auto;
}

.dash-section         { display: none; animation: fadeIn 0.4s ease-out; }
.dash-section.active  { display: block; }

.dash-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

/* ── Stat cards ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.stat-card-num   { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 8px;}
.stat-card-label { font-size: 13px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;}

/* ============================================================
     DATA TABLE
============================================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  background: var(--gray);
}

.data-table td {
  padding: 16px 20px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  font-weight: 500;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td      { background: var(--gray); }

/* ── Action buttons (inside table cells) ── */
.action-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  background: none;
}

.action-btn-primary { border-color: var(--primary-light); color: var(--primary); background: var(--primary-light); }
.action-btn-primary:hover { background: var(--primary); color: white; border-color: var(--primary); }

.action-btn-danger  { border-color: var(--red-light); color: var(--red); background: var(--red-light); }
.action-btn-danger:hover { background: var(--red); color: white; border-color: var(--red); }

.action-btn-accent  { border-color: var(--accent-light); color: var(--accent); background: var(--accent-light); }
.action-btn-accent:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* ============================================================
     FORM CARDS
============================================================ */
.form-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--primary-dark);
}

/* File Upload custom */
.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-body);
  transition: all 0.2s ease;
}

.file-upload:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.file-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* ============================================================
     MODAL
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  animation: fadeInModal 0.3s forwards;
}

@keyframes fadeInModal {
  to { opacity: 1; }
}

.modal {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  animation: slideUpModal 0.3s forwards;
}

@keyframes slideUpModal {
  to { transform: translateY(0); }
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--primary-dark);
}

.modal-close {
  float: right;
  background: var(--gray);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.modal-close:hover { background: var(--red-light); color: var(--red); }

/* ============================================================
     TAB BAR
============================================================ */
.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  gap: 20px;
}

.tab-btn {
  padding: 12px 4px;
  border: none;
  background: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  position: relative;
  transition: 0.2s;
  font-family: inherit;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-btn:hover { color: var(--primary); }

.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { transform: scaleX(1); }

/* ============================================================
     SCHEDULE GRID
============================================================ */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.schedule-day {
  display: flex;
  flex-direction: column;
  min-width: 80px;
}

.schedule-day-label {
  text-align: center;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray2);
  margin-bottom: 12px;
  color: var(--text);
}

.schedule-slot {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 4px;
  text-align: center;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text2);
  font-weight: 600;
  margin-bottom: 8px;
}

.schedule-slot:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.schedule-slot.booked {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

/* ============================================================
     DASHBOARD WIDGETS (Recent Activity & Interviews)
============================================================ */
.notif {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.notif:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.notif-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.notif-text h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.notif-text p {
  font-size: 13px;
  color: var(--text3);
  margin: 0;
}

.interview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: white;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.interview-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.interview-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.interview-info p {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
  margin: 0;
}

/* ============================================================
   ABOUT PAGE (GIỚI THIỆU)
============================================================ */
.about-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  border-radius: 0 0 40px 40px;
  margin-bottom: 3rem;
}
.about-hero-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.about-hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.about-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.about-story {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.story-text h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}
.story-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text2);
  margin-bottom: 1rem;
}
.story-image .image-placeholder {
  background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
  border-radius: 20px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 600;
  text-align: center;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.mv-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}
.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.mv-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.mv-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.mv-card p {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .about-story {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   GUIDE PAGE (HƯỚNG DẪN)
============================================================ */
.guide-hero {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 0 0 30px 30px;
  margin-bottom: 2rem;
}
.guide-hero-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.guide-hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}
.guide-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.guide-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.guide-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.guide-tab-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.guide-tab-btn.active {
  color: white;
  background: var(--primary);
}
.guide-section {
  display: none;
  animation: fadeIn 0.4s ease;
}
.guide-section.active {
  display: block;
}
.guide-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 2rem;
}
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.guide-step {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  border: 1px solid var(--border);
}
.step-num {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.step-content p {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.5;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
}
.faq-item summary {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  outline: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-answer {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.5;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
}
.guide-cta {
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  padding: 3rem;
  border-radius: 20px;
  margin-top: 4rem;
}
.guide-cta h3 {
  font-size: 1.5rem;
  color: #166534;
  margin-bottom: 1rem;
}
.guide-cta p {
  color: #15803d;
  margin-bottom: 1.5rem;
}

/* ============================================================
   DEMO ACCOUNTS UI
============================================================ */
.demo-accounts-box {
  background-color: #dcfce7;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 1.5rem;
  color: #166534;
  font-size: 0.9rem;
  border: 1px solid #bbf7d0;
  transition: all 0.3s ease;
}
.demo-accounts-box[open] {
  background-color: #f0fdf4;
}
.demo-title {
  font-weight: 500;
  cursor: pointer;
  outline: none;
  list-style: none;
  text-align: center;
  display: block;
  user-select: none;
  line-height: 1.5;
}
.demo-title::-webkit-details-marker {
  display: none;
}
.demo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 12px;
  border-top: 1px dashed #bbf7d0;
  padding-top: 12px;
}
.demo-item {
  background: white;
  padding: 6px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #dcfce7;
}
.demo-item span {
  font-weight: 700;
  display: block;
  font-size: 0.8rem;
  color: #15803d;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background-color: #fcfcfc;
  border-top: 1px solid #eaeaea;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 2rem;
}
.site-footer .footer-left {
  font-weight: 400;
}
.site-footer .footer-right {
  display: flex;
  gap: 1.5rem;
}
.site-footer .footer-right a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer .footer-right a:hover {
  color: #10b981;
}

@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem;
  }
  .site-footer .footer-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* ============================================================
   CONTACT PAGE
============================================================ */
#page-contact {
  background-color: #f4f7f6;
  padding-bottom: 5rem;
}
.contact-hero {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  padding: 6rem 1rem 10rem 1rem;
  text-align: center;
  color: white;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}
.contact-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.contact-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}
.contact-wrap {
  max-width: 1000px;
  margin: -6rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}
.contact-cards {
  display: flex;
  gap: 2.5rem;
}
.contact-card {
  background: white;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  flex: 1;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
}
.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
.contact-icon {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}
.contact-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  filter: blur(15px);
  opacity: 0.6;
  z-index: -1;
  top: 5px;
}
.contact-icon svg {
  width: 34px;
  height: 34px;
}
.icon-fb {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}
.icon-bug {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: white;
}
.contact-card h3 {
  font-size: 1.4rem;
  color: #1f2937;
  margin-bottom: 1.2rem;
  font-weight: 800;
}
.contact-card p {
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  flex: 1;
}
.contact-btn-fb {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.9rem 2rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}
.contact-btn-fb:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
  color: white;
}
.contact-btn-outline {
  background-color: white;
  color: #e11d48;
  border: 2px solid #ffe4e6;
  border-radius: 50px;
  padding: 0.85rem 2rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
  transition: all 0.3s;
}
.contact-btn-outline:hover {
  background-color: #fff1f2;
  border-color: #fda4af;
  transform: translateY(-2px);
}
.contact-email {
  color: #9ca3af;
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 4rem 1rem 8rem 1rem;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
  }
  .contact-hero h1 { font-size: 2.2rem; }
  .contact-cards {
    flex-direction: column;
    gap: 1.5rem;
  }
  .contact-wrap { margin-top: -4rem; }
}

/* ============================================================
   LEGAL PAGES (TERMS & PRIVACY)
============================================================ */
.legal-wrap {
  max-width: 800px;
  margin: 4rem auto;
  background: white;
  border-radius: 12px;
  padding: 3rem 4rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.legal-wrap h1 {
  font-size: 2.2rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
  text-align: center;
}
.legal-date {
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 3rem;
}
.legal-content h2 {
  font-size: 1.3rem;
  color: #374151;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 0.5rem;
}
.legal-content p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.legal-content ul {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.legal-content li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .legal-wrap {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--gray3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text2); }
