/* ═══════════════════════════════════════════
   STUDENT DASHBOARD — Light Theme + Dark Sidebar
   NexaBot Robotics Institute
   Tri-color: Cyan · Violet · Rose
   ═══════════════════════════════════════════ */


/* ── 1. Design Tokens ────────────────────── */

:root {
  /* Main content zone — light */
  --bg-body:       #F1F5F9;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-input:      #F1F5F9;

  /* Sidebar zone — deep cool indigo */
  --bg-sidebar:    #0A0B1A;
  --bg-sidebar-hover: rgba(167, 139, 250, 0.05);
  --sidebar-border: rgba(167, 139, 250, 0.06);

  /* Topbar — light frosted glass */
  --bg-topbar:     rgba(255, 255, 255, 0.82);

  /* Tri-color accent system — tuned for light bg */
  --cyan:          #0891B2;
  --cyan-light:    #22D3EE;
  --cyan-dim:      rgba(8, 145, 178, 0.07);
  --cyan-glow:     rgba(8, 145, 178, 0.2);
  --cyan-border:   rgba(8, 145, 178, 0.12);

  --violet:        #7C3AED;
  --violet-light:  #A78BFA;
  --violet-dim:    rgba(124, 58, 237, 0.06);
  --violet-glow:   rgba(124, 58, 237, 0.2);
  --violet-border: rgba(124, 58, 237, 0.12);

  --rose:          #E11D48;
  --rose-light:    #FB7185;
  --rose-dim:      rgba(225, 29, 72, 0.06);
  --rose-glow:     rgba(225, 29, 72, 0.2);
  --rose-border:   rgba(225, 29, 72, 0.1);

  --green:         #059669;
  --green-dim:     rgba(5, 150, 105, 0.06);

  /* Main content text — dark on light */
  --text-bright:   #0F172A;
  --text:          #334155;
  --text-muted:    #64748B;
  --text-faint:    #94A3B8;

  /* Sidebar text — light on dark (scoped below) */
  --sb-text:       rgba(255,255,255,0.55);
  --sb-text-bright: #F1F5F9;
  --sb-text-muted: rgba(255,255,255,0.35);
  --sb-text-faint: rgba(255,255,255,0.2);

  /* Borders */
  --border:        rgba(0, 0, 0, 0.06);
  --border-hover:  rgba(124, 58, 237, 0.15);

  /* Shadows — light theme */
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:     0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-lg:     0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-glow:   0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(124, 58, 237, 0.08);
  --shadow-btn:    0 0 15px rgba(6, 182, 212, 0.35), 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-card:   0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);

  /* Gradients */
  --gradient:      linear-gradient(135deg, #0891B2 0%, #7C3AED 50%, #E11D48 100%);
  --gradient-duo:  linear-gradient(135deg, #0891B2 0%, #7C3AED 100%);
  --gradient-warm: linear-gradient(135deg, #7C3AED 0%, #E11D48 100%);
  --gradient-line: linear-gradient(90deg, transparent 0%, rgba(8,145,178,0.12) 25%, rgba(124,58,237,0.12) 50%, rgba(225,29,72,0.12) 75%, transparent 100%);
  /* Sidebar-only gradient (bright for dark bg) */
  --gradient-sb:   linear-gradient(135deg, #22D3EE 0%, #A78BFA 100%);
  --gradient-line-sb: linear-gradient(90deg, transparent 0%, rgba(34,211,238,0.12) 25%, rgba(167,139,250,0.12) 50%, rgba(251,113,133,0.12) 75%, transparent 100%);

  /* Metrics */
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --sidebar-w:     260px;
  --sidebar-w-sm:  72px;
  --topbar-h:      60px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ── 2. Reset & Base ─────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Roboto Slab', 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-body);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  height: 100%;
  overflow-x: hidden;
}

.form-control,
.form-select,
.btn {
  font-family: inherit;
}

::selection { background: var(--violet); color: #fff; }
a { color: var(--violet); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #6D28D9; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ── 3. Utilities ────────────────────────── */

.text-cyan   { color: var(--cyan)   !important; }
.text-violet { color: var(--violet) !important; }
.text-rose   { color: var(--rose)   !important; }
.text-green  { color: var(--green)  !important; }


/* ── 4. Sidebar ──────────────────────────── */

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, #0A0B1A 0%, #0E0F24 100%);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: width 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
  transform: translateX(-100%);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px;
  border-bottom: 1px solid transparent;
  border-image: var(--gradient-line-sb) 1;
  min-height: var(--topbar-h);
  flex-shrink: 0;
}

.sidebar__logo {
  width: 36px; height: 36px;
  background: var(--gradient-sb);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #0A0B1A;
  flex-shrink: 0;
}

.sidebar__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sb-text-bright);
  letter-spacing: -0.3px;
}

.sidebar__sub {
  display: block;
  font-size: 0.6rem;
  color: var(--sb-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.sidebar__nav {
  flex: 1;
  padding: 10px 10px;
  overflow-y: auto;
}

.sidebar__nav::-webkit-scrollbar { width: 3px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: rgba(167,139,250,0.08); border-radius: 8px; }

.sidebar__label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--sb-text-muted);
  padding: 18px 12px 6px;
  font-weight: 600;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--sb-text);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s var(--ease);
  text-decoration: none;
  position: relative;
  margin-bottom: 1px;
}

.sidebar__link i:first-child {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar__link:hover {
  /* color: var(--sb-text-bright); */
  color: #2ECA7F;
  background: var(--bg-sidebar-hover);
}

.sidebar__link:hover i:first-child { color: #2ECA7F; }

.sidebar__link--active {
  color: var(--sb-text-bright);
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.18), rgba(34, 211, 238, 0.08));
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.18), 0 0 18px rgba(124, 58, 237, 0.16);
}

.sidebar__link--active i:first-child { color: #A78BFA; }

.sidebar__link--active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, #22d3ee 0%, #7c3aed 100%);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
}

.sidebar__arrow {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0.35;
  transition: transform 0.25s var(--ease), opacity 0.15s var(--ease);
}

.sidebar__link:hover .sidebar__arrow { opacity: 0.7; }
.sidebar__link[aria-expanded="true"] .sidebar__arrow { transform: rotate(90deg); opacity: 0.8; }

/* Submenu */
.sidebar__submenu {
  list-style: none;
  padding: 2px 0 4px;
  margin: 0;
}

.sidebar__submenu a {
  display: block;
  padding: 7px 12px 7px 42px;
  font-size: 0.8rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
  transition: all 0.15s var(--ease);
}

.sidebar__submenu a::before {
  content: '';
  position: absolute;
  left: 24px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.15s var(--ease);
}

.sidebar__submenu a:hover { color: rgba(255,255,255,0.85); background: var(--bg-sidebar-hover); }
.sidebar__submenu a:hover::before { background: var(--violet); }

.sidebar__badge {
  margin-left: auto;
  background: #FB7185;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1.4;
  box-shadow: 0 0 8px rgba(251,113,133,0.3);
}

.sidebar__separator {
  height: 1px;
  margin: 8px 12px;
  background: var(--gradient-line-sb);
}

/* Sidebar footer */
.sidebar__footer {
  padding: 12px 10px;
  border-top: 1px solid transparent;
  border-image: var(--gradient-line-sb) 1;
  flex-shrink: 0;
}

.sidebar__user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.sidebar__user-card:hover { background: var(--bg-sidebar-hover); }

.sidebar__user-avatar {
  width: 34px; height: 34px;
  background: var(--gradient-sb);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar__user-name { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.sidebar__user-role { font-size: 0.66rem; color: var(--sb-text-muted); }
.sidebar__user-expand { margin-left: auto; color: var(--sb-text-faint); font-size: 0.7rem; }

/* Collapsed */
.sidebar.collapsed { width: var(--sidebar-w-sm); }
.sidebar.collapsed .sidebar__brand-text,
.sidebar.collapsed .sidebar__link span,
.sidebar.collapsed .sidebar__badge,
.sidebar.collapsed .sidebar__arrow,
.sidebar.collapsed .sidebar__label,
.sidebar.collapsed .sidebar__user-info,
.sidebar.collapsed .sidebar__user-expand { opacity: 0; pointer-events: none; width: 0; overflow: hidden; }
.sidebar.collapsed .sidebar__brand { padding: 18px 18px; justify-content: center; }
.sidebar.collapsed .sidebar__link { justify-content: center; padding: 9px; }
.sidebar.collapsed .sidebar__user-card { justify-content: center; }

.sidebar.collapsed .sidebar__link[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%; transform: translateY(-50%);
  background: #0F172A;
  color: #F1F5F9;
  font-size: 0.76rem; font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  z-index: 1050;
  pointer-events: none;
}


/* ── 5. Main Wrapper ─────────────────────── */

.main-wrapper {
  position: relative;
  margin-left: 0;
  min-height: 100vh;
  background: linear-gradient(145deg, #F1F5F9 0%, #EEF2F7 40%, #F8FAFC 100%);
  background-attachment: fixed;
  transition: margin-left 0.3s var(--ease);
  overflow: hidden;
}

.sidebar.mobile-open {
  transform: translateX(0);
  box-shadow: 4px 0 30px rgba(10,11,26,0.6);
}

.main-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(145deg, rgba(241, 245, 249, 0.52), rgba(248, 250, 252, 0.48)),
    url("../images/coding-and-robotics.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.main-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 14%, rgba(8, 145, 178, 0.1), transparent 35%),
    radial-gradient(circle at 88% 16%, rgba(124, 58, 237, 0.08), transparent 38%),
    radial-gradient(circle at 72% 85%, rgba(225, 29, 72, 0.06), transparent 34%);
  pointer-events: none;
  z-index: 0;
}

.main-wrapper > * {
  /* position: relative; */
  z-index: 1;
}


/* ── 6. Topbar ───────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #0f172a 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1030;
}

.topbar__left { display: flex; align-items: center; gap: 14px; }

.topbar__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.topbar__menu-link {
  color: rgba(226, 232, 240, 0.72);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}

.topbar__menu-link:hover {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.12);
}

.topbar__menu-link--active {
  color: #fff;
  background: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.3), 0 0 28px rgba(124, 58, 237, 0.2);
}

.topbar__toggle {
  display: none;
  width: 36px; height: 36px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: rgba(241, 245, 249, 0.9);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.15s var(--ease);
}

.topbar__toggle:hover { color: #22d3ee; background: rgba(34, 211, 238, 0.12); }

.topbar__search { position: relative; }

.topbar__search i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: rgba(148, 163, 184, 0.9); font-size: 0.88rem; pointer-events: none;
}

.topbar__search input {
  width: 300px;
  padding: 8px 14px 8px 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-sm);
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.82rem; font-weight: 450;
  transition: all 0.2s var(--ease);
  outline: none;
}

.topbar__search input::placeholder { color: rgba(148, 163, 184, 0.9); }
.topbar__search input:focus { border-color: rgba(34, 211, 238, 0.55); background: rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14); }

.topbar__right { display: flex; align-items: center; gap: 4px; }

.topbar__icon-btn {
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: rgba(226, 232, 240, 0.8);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.15s var(--ease);
}

.topbar__icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #f8fafc; }
.topbar__icon-btn:active { transform: scale(0.95); }

.topbar__badge-count {
  position: absolute;
  top: 3px; right: 2px;
  min-width: 16px; height: 16px;
  background: var(--rose);
  border-radius: 10px;
  font-size: 0.6rem; font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid #0f172a;
  line-height: 1;
}

/* Topbar avatar */
.topbar__avatar {
  width: 34px; height: 34px;
  background: var(--gradient-duo);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700; font-size: 0.7rem;
  color: #fff;
  cursor: pointer;
  margin-left: 8px;
  flex-shrink: 0;
  transition: opacity 0.15s var(--ease);
}

.topbar__avatar:hover { opacity: 0.85; }


/* ── 7. Dropdown Panels ──────────────────── */

.topbar__dropdown-panel {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
  min-width: 320px;
  animation: dropdown-in 0.15s var(--ease);
}

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

.dd-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dd-header h6 { font-size: 0.84rem; font-weight: 650; margin: 0; color: var(--text-bright); }
.dd-header a { font-size: 0.74rem; font-weight: 600; color: var(--violet); }

.dd-body { max-height: 300px; overflow-y: auto; }
.dd-body::-webkit-scrollbar { width: 4px; }
.dd-body::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }

.dd-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  transition: background 0.1s var(--ease);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.dd-item:hover { background: rgba(0,0,0,0.03); }
.dd-item:not(:last-child) { border-bottom: 1px solid var(--border); }

.dd-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.dd-icon--cyan   { background: var(--cyan-dim);   color: var(--cyan);   }
.dd-icon--violet { background: var(--violet-dim); color: var(--violet); }
.dd-icon--green  { background: var(--green-dim);  color: var(--green);  }
.dd-icon--rose   { background: var(--rose-dim);   color: var(--rose);   }

.dd-icon--avatar {
  background: var(--gradient-duo);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
}

.dd-icon--avatar-v { background: var(--gradient-warm); }

.dd-content { min-width: 0; flex: 1; }
.dd-title { font-size: 0.82rem; font-weight: 500; color: var(--text); line-height: 1.35; }
.dd-title strong { font-weight: 600; color: var(--text-bright); }
.dd-time { font-size: 0.7rem; color: var(--text-faint); margin-top: 2px; }

.dd-footer { padding: 10px 16px; border-top: 1px solid var(--border); text-align: center; }
.dd-footer a { font-size: 0.78rem; font-weight: 600; color: var(--violet); }

/* Profile dropdown */
.topbar__profile-panel { min-width: 220px !important; }

.profile-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.profile-header__av {
  width: 48px; height: 48px;
  background: var(--gradient-duo);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700; font-size: 1rem;
  color: #fff;
  margin: 0 auto 8px;
}

.profile-header__name { font-size: 0.88rem; font-weight: 650; color: var(--text-bright); }
.profile-header__email { font-size: 0.72rem; color: var(--text-faint); }

.profile-menu { padding: 6px; }

.profile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.1s var(--ease);
}

.profile-menu a i { font-size: 1rem; width: 18px; text-align: center; color: var(--text-faint); }
.profile-menu a:hover { background: rgba(124,58,237,0.04); color: var(--text-bright); }
.profile-menu a:hover i { color: var(--violet); }

.profile-menu__sep { height: 1px; background: var(--gradient-line); margin: 4px 6px; }
.profile-menu__danger { color: var(--rose) !important; }
.profile-menu__danger i { color: var(--rose) !important; }
.profile-menu__danger:hover { background: var(--rose-dim) !important; }


/* ── 8. Content Area ─────────────────────── */

.content { padding: 24px 28px; max-width: 1400px; }


/* ── 9. Page Header ──────────────────────── */

.page-header {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.page-header h1 {
  font-size: 1.4rem;
  font-weight: 750;
  color: var(--text-bright);
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.page-header p { color: var(--text-muted); font-size: 0.86rem; margin-top: 4px; }

.page-header__actions { display: flex; gap: 10px; flex-shrink: 0; }


/* ── 10. Glow Buttons ────────────────────── */

.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--gradient-duo);
  color: #fff;
  font-size: 0.82rem; font-weight: 650;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
  line-height: 1.4;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(6,182,212,0.5), 0 0 40px rgba(167,139,250,0.2);
  filter: brightness(1.1);
  color: #fff;
}

.btn-glow:active { transform: translateY(0); box-shadow: 0 0 10px rgba(6,182,212,0.3); }

.btn-outline-glow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: transparent;
  color: var(--rose);
  font-size: 0.82rem; font-weight: 600;
  font-family: inherit;
  border: 1.5px solid var(--rose-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  line-height: 1.4;
}

.btn-outline-glow:hover {
  background: var(--rose-dim);
  border-color: rgba(251,113,133,0.3);
  color: var(--rose);
  box-shadow: 0 0 15px rgba(251,113,133,0.12);
  transform: translateY(-1px);
}

.btn-panel-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.76rem; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.btn-panel-filter:hover { border-color: var(--violet-border); color: var(--text); }
.btn-panel-filter i { font-size: 0.65rem; }


/* ── 11. Stat Cards ──────────────────────── */

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -35%;
  right: -15%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0) 70%);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.78;
  pointer-events: none;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-line);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.stat-card:hover { box-shadow: var(--shadow-glow); transform: translateY(-6px); border-color: var(--border-hover); }
.stat-card:hover::before { transform: translateY(6px) scale(1.08); opacity: 1; }
.stat-card:hover::after { opacity: 1; }

.stat-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stat-card__icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-card__icon--cyan   { background: var(--cyan-dim);   color: var(--cyan);   }
.stat-card__icon--purple { background: var(--violet-dim); color: var(--violet); }
.stat-card__icon--green  { background: var(--green-dim);  color: var(--green);  }
.stat-card__icon--rose   { background: var(--rose-dim);   color: var(--rose);   }

.stat-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

.stat-card__trend--up  { background: var(--green-dim); color: var(--green); }
.stat-card__trend--new { background: var(--rose-dim);  color: var(--rose);  }

.stat-card__label { font-size: 15px; color: #1a2d62; font-weight: 500; margin-bottom: 4px; }

.stat-card__value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.8px;
  line-height: 1.2;
  font-family: 'Roboto Slab', 'Times New Roman', serif;
}

.stat-card__sub { font-size: 0.7rem; color: var(--text-faint); margin-top: 6px; }


/* ── 12. Card Panel ──────────────────────── */

.card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
}

.card-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.02), rgba(8, 145, 178, 0.02));
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.card-panel:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.14);
}

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

.card-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid transparent;
  border-image: var(--gradient-line) 1;
}

.card-panel__head h2 {
  font-size: 18px; font-weight: 650;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.1px;
  margin: 0;
}

.card-panel__head h2 i {
  background: var(--gradient-duo);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1rem;
}

.card-panel__link { font-size: 0.78rem; font-weight: 600; color: var(--violet); }
.card-panel__link:hover { color: #6D28D9; }
.card-panel__body { padding: 22px; }


/* ── 13. Charts ──────────────────────────── */

.chart-container { position: relative; height: 280px; width: 100%; }
.chart-container--donut { height: 250px; max-width: 250px; margin: 0 auto; }


/* ── 14. Progress List ───────────────────── */

.progress-list { padding: 4px 0; }

.progress-item { padding: 16px 22px; transition: background 0.15s var(--ease); }
.progress-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.progress-item:hover { background: rgba(0,0,0,0.015); }

.progress-item__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.progress-item__icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.progress-item__icon--cyan   { background: var(--cyan-dim);   color: var(--cyan);   }
.progress-item__icon--purple { background: var(--violet-dim); color: var(--violet); }
.progress-item__icon--green  { background: var(--green-dim);  color: var(--green);  }
.progress-item__icon--rose   { background: var(--rose-dim);   color: var(--rose);   }
.progress-item__icon--violet { background: var(--violet-dim); color: var(--violet); }

.progress-item__info { flex: 1; min-width: 0; }
.progress-item__info h3 { font-size: 0.86rem; font-weight: 600; color: var(--text-bright); margin-bottom: 1px; }
.progress-item__info span { font-size: 0.74rem; color: var(--text-faint); }

.progress-item__pct {
  font-size: 0.88rem; font-weight: 700;
  color: var(--text-bright);
  font-family: 'Roboto Slab', 'Times New Roman', serif;
  flex-shrink: 0;
}

.progress-bar-wrap { height: 5px; background: rgba(0,0,0,0.05); border-radius: 5px; overflow: hidden; }

.progress-bar-fill {
  height: 100%;
  width: var(--progress, 0%);
  border-radius: 5px;
  transition: width 1.2s var(--ease);
}

.progress-bar-fill--cyan   { background: linear-gradient(90deg, #0891B2, #22D3EE); }
.progress-bar-fill--purple { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.progress-bar-fill--green  { background: linear-gradient(90deg, #059669, #34D399); }
.progress-bar-fill--rose   { background: linear-gradient(90deg, #E11D48, #FB7185); }


/* ── 15. Activity Feed ───────────────────── */

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}

.activity-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.activity-item:hover .activity-icon { transform: scale(1.05); }

.activity-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.activity-icon--cyan   { background: var(--cyan-dim);   color: var(--cyan);   }
.activity-icon--violet { background: var(--violet-dim); color: var(--violet); }
.activity-icon--green  { background: var(--green-dim);  color: var(--green);  }
.activity-icon--rose   { background: var(--rose-dim);   color: var(--rose);   }

.activity-text { font-size: 0.82rem; font-weight: 450; line-height: 1.45; color: var(--text); }
.activity-text strong { font-weight: 600; color: var(--text-bright); }
.activity-time { font-size: 0.68rem; color: var(--text-faint); margin-top: 2px; }


/* ── 16. Schedule List ───────────────────── */

.schedule-list { padding: 4px 0; }

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 22px;
  transition: background 0.15s var(--ease);
}

.schedule-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.schedule-item:hover { background: rgba(0,0,0,0.015); }

.schedule-item__time { display: flex; flex-direction: column; align-items: center; min-width: 44px; flex-shrink: 0; }

.schedule-item__hour {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-bright);
  font-family: 'Roboto Slab', 'Times New Roman', serif;
  line-height: 1.2;
}

.schedule-item__ampm { font-size: 0.6rem; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; }

.schedule-item__bar {
  width: 3px; min-height: 44px;
  border-radius: 3px;
  flex-shrink: 0;
  align-self: stretch;
}

.schedule-item__bar--cyan   { background: var(--cyan);   }
.schedule-item__bar--purple { background: var(--violet); }
.schedule-item__bar--green  { background: var(--green);  }
.schedule-item__bar--rose   { background: var(--rose);   }

.schedule-item__info { flex: 1; min-width: 0; }
.schedule-item__info h3 { font-size: 0.86rem; font-weight: 600; color: var(--text-bright); margin-bottom: 3px; }

.schedule-item__info span {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.74rem; color: var(--text-faint); margin-bottom: 1px;
}

.schedule-item__info span i { font-size: 0.78rem; }

.schedule-item__badge {
  font-size: 0.66rem; font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--violet-dim);
  color: var(--violet);
  flex-shrink: 0;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 2px;
}

.schedule-item__badge--live {
  background: var(--green-dim);
  color: var(--green);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }


/* ── 17. Data Table ──────────────────────── */

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

.data-table thead th {
  padding: 12px 20px;
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: #F8FAFC;
}

.data-table tbody tr { transition: background 0.15s var(--ease); cursor: pointer; }
.data-table tbody tr:hover { background: rgba(0,0,0,0.015); }

.data-table tbody td {
  padding: 12px 20px;
  font-size: 0.835rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: middle;
}

.data-table__title { display: flex; align-items: center; gap: 10px; font-weight: 550; color: var(--text-bright); }
.data-table__title i { font-size: 1.05rem; }


/* ── 18. Badge Pills ─────────────────────── */

.badge-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.badge-pill--success { background: var(--green-dim);  color: var(--green);  }
.badge-pill--warning { background: var(--rose-dim);   color: var(--rose);   }
.badge-pill--info    { background: var(--violet-dim); color: var(--violet); }


/* ── 19. Fade Animations ─────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.05s; }
.fade-up:nth-child(3) { transition-delay: 0.1s; }
.fade-up:nth-child(4) { transition-delay: 0.15s; }


/* ── 20. Sidebar Overlay ─────────────────── */

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,11,26,0.35);
  backdrop-filter: blur(4px);
  z-index: 1035;
}

.sidebar-overlay.active { display: block; animation: fade-in 0.2s var(--ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }


/* ── 21. Bootstrap Overrides ─────────────── */

.dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  min-width: 160px;
  animation: dropdown-in 0.15s var(--ease);
}

.dropdown-item {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--text);
  transition: background 0.1s var(--ease);
}

.dropdown-item:hover, .dropdown-item:focus {
  background: rgba(124,58,237,0.04);
  color: var(--text-bright);
}


/* ═══════════════════════════════════════════
   22. RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1199.98px) {
  .topbar__search input { width: 220px; }
  .stat-card__value { font-size: 1.4rem; }
  .topbar__dropdown-panel { min-width: 290px; }
  .topbar__menu-link { padding: 7px 9px; font-size: 0.78rem; }
}

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); width: var(--sidebar-w); }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: 4px 0 30px rgba(10,11,26,0.6); }
  .main-wrapper { margin-left: 0; }
  .topbar__toggle { display: flex; }
  .topbar__menu { display: none; }
  .topbar__search input { width: 180px; }
  .content { padding: 20px 16px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .topbar__right { gap: 2px; }
  .chart-container { height: 240px; }
}

@media (max-width: 767.98px) {
  .topbar__search { display: none; }
  .topbar { padding: 0 14px; height: 56px; }
  .content { padding: 18px 14px; }
  .page-header h1 { font-size: 1.2rem; }
  .page-header__actions { width: 100%; }
  .page-header__actions .btn-glow,
  .page-header__actions .btn-outline-glow,
  .student-course-details-page .page-header__actions .btn_one,
  .student-course-details-page .page-header__actions .btn_two,
  .student-course-details-page .page-header__actions .student-course-details__btn-direct,
  .student-course-details-page .page-header__actions .student-course-details__cart-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.78rem;
    padding: 8px 14px;
  }
  .stat-card { padding: 18px; }
  .stat-card__value { font-size: 1.3rem; }
  .stat-card__icon { width: 38px; height: 38px; font-size: 1rem; }
  .card-panel__head { padding: 14px 16px; }
  .card-panel__body { padding: 16px; }
  .progress-item { padding: 14px 16px; }
  .schedule-item { padding: 14px 16px; }
  .data-table thead th, .data-table tbody td { padding: 10px 14px; }
  .card-panel:hover,
  .stat-card:hover { transform: translateY(-2px); }
  .chart-container { height: 220px; }
  .topbar__dropdown-panel { min-width: 280px; }
}

@media (max-width: 575.98px) {
  .topbar { padding: 0 12px; height: 52px; }
  .content { padding: 14px 12px; }
  .page-header h1 { font-size: 1.1rem; }
  .page-header__actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .page-header__actions .btn-glow,
  .page-header__actions .btn-outline-glow,
  .student-course-details-page .page-header__actions .btn_one,
  .student-course-details-page .page-header__actions .btn_two,
  .student-course-details-page .page-header__actions .student-course-details__btn-direct,
  .student-course-details-page .page-header__actions .student-course-details__cart-btn {
    width: 100%;
    justify-content: center;
  }
  .stat-card { padding: 16px; }
  .stat-card__value { font-size: 1.2rem; }
  .chart-container { height: 200px; }
  .chart-container--donut { height: 180px; }
  .topbar__dropdown-panel { min-width: calc(100vw - 24px); max-width: 340px; right: -12px; }
  .topbar__profile-panel { min-width: 200px !important; }
  .topbar__icon-btn { width: 34px; height: 34px; font-size: 1rem; }
  .topbar__badge-count { min-width: 14px; height: 14px; font-size: 0.55rem; }
  .topbar__avatar { width: 30px; height: 30px; font-size: 0.6rem; margin-left: 4px; }
}

@media (max-width: 375px) {
  .content { padding: 12px 10px; }
  .topbar { padding: 0 10px; }
  .page-header h1 { font-size: 1rem; }
  .stat-card__icon { width: 34px; height: 34px; font-size: 0.9rem; }
  .stat-card__value { font-size: 1.1rem; }
  .stat-card__sub { display: none; }
  .topbar__icon-btn { width: 30px; height: 30px; }
  .topbar__avatar { width: 28px; height: 28px; }
}

/* ── Catalog-style cart toasts (course catalog + course details) ── */

.catalog-notify-wrap {
  position: fixed;
  top: 100px;
  right: 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.catalog-notify {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  width: fit-content;
  background: #ffffff;
  color: #1a2d62;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(26, 45, 98, 0.16);
  border-left: 4px solid #1a2d62;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.2s ease;
}

.catalog-notify.show {
  opacity: 1;
  transform: translateY(0);
}

.catalog-notify__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.catalog-notify--success {
  border-left-color: #22c55e;
}

.catalog-notify--success .catalog-notify__icon {
  background: #22c55e;
}

.catalog-notify--error {
  border-left-color: #1a2d62;
}

.catalog-notify--error .catalog-notify__icon {
  background: #1a2d62;
}

/* ── Student course details: template blues (#1a2d62), greens (#2eca7f), greys, white ── */

.student-course-details-page .page-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 10px 36px rgba(26, 45, 98, 0.07);
  border-left: 4px solid #1a2d62;
}

.student-course-details-page .page-header h1 {
  color: #1a2d62;
}

.student-course-details-page .page-header p {
  color: #64748b;
}

.student-course-details-page .page-header__actions {
  flex-wrap: wrap;
}

/* Template .btn_one / .btn_two + blue direct-checkout pill (same hover mechanic as .btn_one) */
.student-course-details-page .page-header__actions .btn_one,
.student-course-details-page .page-header__actions .student-course-details__cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.35;
}

.student-course-details-page .page-header__actions .student-course-details__cart-btn--in-cart {
  background: #22c55e;
  font-size: 15px;
  padding: 10px 26px;
  color: #fff;
  border-radius: 100px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
  transition: background 0.2s ease, transform 0.15s ease;
}

.student-course-details-page .page-header__actions .student-course-details__cart-btn--in-cart:hover {
  background: #16a34a;
  color: #fff;
}

.student-course-details-page .page-header__actions a.btn_two {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: #fff;
}

.student-course-details-page .student-course-details__btn-direct {
  background: #1a2d62;
  font-size: 15px;
  padding: 10px 26px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  line-height: 1.35;
  position: relative;
  z-index: 0;
  -webkit-transition-property: color;
  transition-property: color;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  box-shadow: 0 4px 16px rgba(26, 45, 98, 0.22);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.student-course-details-page .student-course-details__btn-direct::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2eca7f;
  border-radius: 100px;
  -webkit-transform: scaleY(0);
  transform: scaleY(0);
  -webkit-transform-origin: 50% 0;
  transform-origin: 50% 0;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}

.student-course-details-page .student-course-details__btn-direct:hover,
.student-course-details-page .student-course-details__btn-direct:focus {
  color: #fff;
}

.student-course-details-page .student-course-details__btn-direct:hover::before,
.student-course-details-page .student-course-details__btn-direct:focus::before {
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
}

.student-course-details-page .card-panel--course-details {
  background: #fff;
  border-color: rgba(26, 45, 98, 0.1);
}

.student-course-details-page .card-panel--course-details .card-panel__head {
  background: #2eca7f;
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.student-course-details-page .card-panel--course-details .card-panel__head h2,
.student-course-details-page .card-panel--course-details .card-panel__head h2 i {
  color: #fff;
}

.student-course-details-page .student-course-details__panel-body {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.student-course-details-page .student-course-details__title {
  color: #1a2d62;
  font-weight: 700;
}

.student-course-details-page .student-course-details__overview-meta strong {
  color: #64748b;
  font-weight: 600;
}

.student-course-details-page .student-course-details__overview-meta .student-course-details__meta-value {
  color: #2eca7f;
  font-weight: 700;
}

.student-course-details-page .course-structure-list {
  padding: 0;
}

.student-course-details-page .course-structure-module {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.student-course-details-page .course-structure-module:last-child {
  margin-bottom: 0;
}

.student-course-details-page .course-structure-module-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #eef2f7;
}

.student-course-details-page .course-structure-module-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1a2d62;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.student-course-details-page .course-structure-module-meta {
  flex: 1;
  min-width: 0;
}

.student-course-details-page .course-structure-module-title {
  display: block;
  font-weight: 700;
  color: #1a2d62;
  font-size: 1rem;
}

.student-course-details-page .course-structure-module-count {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.student-course-details-page .course-structure-module-body {
  padding: 10px 12px 14px 16px;
  background: #fafbfc;
}

.student-course-details-page .course-structure-lessons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.student-course-details-page .course-structure-lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  border-left: 3px solid #2eca7f;
}

.student-course-details-page .course-structure-lesson:last-child {
  margin-bottom: 0;
}

.student-course-details-page .course-structure-lesson-type {
  color: #2eca7f;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.student-course-details-page .course-structure-lesson-order {
  flex-shrink: 0;
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #e8f7ef;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.student-course-details-page .course-structure-lesson-title {
  flex: 1;
  font-size: 0.9rem;
  color: #334155;
  min-width: 0;
}

.student-dashboard-page .card-panel .list-group-item {
  border-color: rgba(15, 23, 42, 0.08);
}

.student-dashboard-page .student-dashboard-page__attendance-kpis {
  color: #1a2d62;
}

.student-dashboard-page .student-dashboard-page__payments-table tbody td {
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.student-dashboard-page .row.g-3 {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1rem;
}

.student-dashboard-page .student-dashboard-page__card {
  height: 100%;
}

.student-dashboard-page .student-dashboard-page__card--small {
  height: 360px;
}

.student-dashboard-page .student-dashboard-page__card--medium {
  height: 420px;
}

.student-dashboard-page .student-dashboard-page__card--tall {
  height: 460px;
}

.student-dashboard-page .student-dashboard-page__card--chart {
  height: 380px;
}

.student-dashboard-page .student-dashboard-page__scroll-body {
  overflow: auto;
}

.student-dashboard-page .student-dashboard-page__card--small .student-dashboard-page__scroll-body {
  max-height: 290px;
}

.student-dashboard-page .student-dashboard-page__card--medium .student-dashboard-page__scroll-body {
  max-height: 350px;
}

.student-dashboard-page .student-dashboard-page__card--tall .student-dashboard-page__scroll-body {
  max-height: 390px;
}

.student-dashboard-page .student-dashboard-page__card--medium .table-responsive {
  max-height: 350px;
  overflow: auto;
}

.student-dashboard-page .student-dashboard-page__card--accent-blue .card-panel__head {
  background: #1a2d62 !important;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.student-dashboard-page .student-dashboard-page__card--accent-blue .card-panel__head h2,
.student-dashboard-page .student-dashboard-page__card--accent-blue .card-panel__head h2 i {
  color: #fff !important;
}

.student-dashboard-page .student-dashboard-page__card--accent-blue .card-panel__head h2 i {
  -webkit-text-fill-color: #fff !important;
}

.student-dashboard-page .stat-card {
  border-top: 3px solid #2eca7f;
}

.student-dashboard-page .stat-card:nth-child(odd) {
  border-top-color: #1a2d62;
}

.student-dashboard-page .student-dashboard-page__scroll-body,
.student-dashboard-page .student-dashboard-page__card--medium .table-responsive {
  scrollbar-width: thin;
  scrollbar-color: #1a2d62 #e2e8f0;
  scroll-behavior: smooth;
}

.student-dashboard-page .student-dashboard-page__scroll-body::-webkit-scrollbar,
.student-dashboard-page .student-dashboard-page__card--medium .table-responsive::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.student-dashboard-page .student-dashboard-page__scroll-body::-webkit-scrollbar-track,
.student-dashboard-page .student-dashboard-page__card--medium .table-responsive::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #eff6ff 0%, #e2e8f0 100%);
  border-radius: 999px;
}

.student-dashboard-page .student-dashboard-page__scroll-body::-webkit-scrollbar-thumb,
.student-dashboard-page .student-dashboard-page__card--medium .table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1a2d62 0%, #2eca7f 100%);
  border-radius: 999px;
  border: 2px solid #e2e8f0;
}

.student-dashboard-page .student-dashboard-page__scroll-body::-webkit-scrollbar-thumb:hover,
.student-dashboard-page .student-dashboard-page__card--medium .table-responsive::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #12337c 0%, #22c55e 100%);
}

@media (max-width: 1199.98px) {
  .student-dashboard-page .student-dashboard-page__card--small,
  .student-dashboard-page .student-dashboard-page__card--medium,
  .student-dashboard-page .student-dashboard-page__card--tall,
  .student-dashboard-page .student-dashboard-page__card--chart {
    height: 380px;
  }
  .student-dashboard-page .student-dashboard-page__card .student-dashboard-page__scroll-body {
    max-height: 310px;
  }
}

@media (max-width: 767.98px) {
  .student-dashboard-page .student-dashboard-page__card--small,
  .student-dashboard-page .student-dashboard-page__card--medium,
  .student-dashboard-page .student-dashboard-page__card--tall,
  .student-dashboard-page .student-dashboard-page__card--chart {
    height: auto;
    min-height: 0;
  }
  .student-dashboard-page .student-dashboard-page__card .student-dashboard-page__scroll-body,
  .student-dashboard-page .student-dashboard-page__card--medium .table-responsive {
    max-height: none;
    overflow: visible;
  }
}

/* ── Student cart table (modules/student/cart.php) — theme green header, white text ── */
/* Match Bootstrap 5.3+ cell selector specificity: .table > :not(caption) > * > * */
.table.student-cart-table > :not(caption) > thead > tr > th {
  --bs-table-bg: var(--green);
  --bs-table-color: #fff;
  --bs-table-border-color: rgba(255, 255, 255, 0.28);
  background-color: var(--green) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em;
}

.student-cart-table .student-cart-thumb {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
}
