/* ============================================================
   EDUVERSE LMS - VIBRANT COLORFUL THEME
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Primary Gradient Palette */
  --primary:        #6366f1;
  --primary-dark:   #4f46e5;
  --primary-light:  #a5b4fc;
  --secondary:      #ec4899;
  --secondary-dark: #db2777;
  --accent:         #f59e0b;
  --accent2:        #10b981;
  --accent3:        #3b82f6;
  --accent4:        #ef4444;

  /* Gradient Combos */
  --grad-primary:   linear-gradient(135deg, #6366f1, #ec4899);
  --grad-secondary: linear-gradient(135deg, #f59e0b, #ef4444);
  --grad-cool:      linear-gradient(135deg, #3b82f6, #10b981);
  --grad-warm:      linear-gradient(135deg, #ec4899, #f59e0b);
  --grad-violet:    linear-gradient(135deg, #8b5cf6, #6366f1);
  --grad-sunset:    linear-gradient(135deg, #f59e0b, #ec4899, #6366f1);

  /* Surface Colors */
  --bg:             #f0f2ff;
  --bg-card:        #ffffff;
  --bg-sidebar:     #0f0c29;
  --bg-sidebar2:    #302b63;
  --sidebar-width:  270px;
  --topbar-height:  70px;

  /* Text Colors */
  --text:           #1e1b4b;
  --text-muted:     #6b7280;
  --text-light:     #9ca3af;
  --text-white:     #ffffff;
  --text-sidebar:   rgba(255,255,255,0.85);

  /* Border & Shadows */
  --border:         #e5e7eb;
  --border-light:   #f3f4f6;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow:         0 4px 20px rgba(99,102,241,.12);
  --shadow-lg:      0 10px 40px rgba(99,102,241,.2);
  --shadow-xl:      0 20px 60px rgba(99,102,241,.25);

  /* Radii */
  --r-sm:  8px;
  --r:     14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full: 9999px;

  /* Font */
  --font:         'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; color: var(--text); }

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* ============================================================
   LAYOUT
   ============================================================ */
.lms-wrapper { display: flex; min-height: 100vh; }

/* SIDEBAR */
.lms-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  transition: var(--transition);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.lms-sidebar::-webkit-scrollbar { width: 4px; }
.lms-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.sidebar-brand {
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-icon {
  width: 44px; height: 44px;
  background: var(--grad-primary);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  box-shadow: 0 4px 15px rgba(99,102,241,.5);
}

.brand-text {
  display: flex; flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.brand-tagline {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: .5px;
}

/* Sidebar Nav */
.sidebar-nav { padding: 16px 0; }

.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.3);
  padding: 16px 20px 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.sidebar-link.active {
  color: #fff;
  background: rgba(99,102,241,.25);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--grad-primary);
  border-radius: 0 3px 3px 0;
}

.sidebar-link i {
  font-size: 18px;
  width: 22px;
  flex-shrink: 0;
  opacity: .85;
}

.sidebar-link .badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--r-full);
}

.sidebar-link .arrow {
  margin-left: auto;
  font-size: 12px;
  transition: var(--transition);
}

.sidebar-link[aria-expanded="true"] .arrow { transform: rotate(90deg); }

.sidebar-submenu {
  background: rgba(0,0,0,.15);
}

.sidebar-submenu .sidebar-link {
  padding-left: 52px;
  font-size: 13.5px;
}

/* User Profile in Sidebar */
.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.sidebar-user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.2);
}

.sidebar-user-info { flex: 1; overflow: hidden; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,.45); }

/* MAIN CONTENT */
.lms-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: var(--transition);
}

/* TOPBAR */
.lms-topbar {
  height: var(--topbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

.topbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}

.topbar-search {
  flex: 1;
  max-width: 400px;
}

.topbar-search .input-group .form-control {
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: var(--r-full) 0 0 var(--r-full);
  padding-left: 18px;
  font-size: 14px;
}

.topbar-search .input-group .btn {
  background: var(--grad-primary);
  border: none;
  border-radius: 0 var(--r-full) var(--r-full) 0;
  color: #fff;
  padding: 0 18px;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

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

.topbar-badge {
  position: absolute;
  top: 5px; right: 5px;
  width: 16px; height: 16px;
  background: var(--secondary);
  border-radius: 50%;
  font-size: 9px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid var(--bg-card);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition);
}

.topbar-user:hover { background: var(--border-light); }

.topbar-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.topbar-user-info { display: flex; flex-direction: column; }
.topbar-user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.topbar-user-role { font-size: 11px; color: var(--text-muted); }

/* PAGE CONTENT */
.lms-content { padding: 28px; flex: 1; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.card-body { padding: 24px; }

/* STAT CARDS */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.stat-card.purple::before  { background: var(--grad-primary); }
.stat-card.pink::before    { background: var(--grad-warm); }
.stat-card.green::before   { background: var(--grad-cool); }
.stat-card.orange::before  { background: var(--grad-secondary); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.stat-icon.purple { background: rgba(99,102,241,.12); color: var(--primary); }
.stat-icon.pink   { background: rgba(236,72,153,.12); color: var(--secondary); }
.stat-icon.green  { background: rgba(16,185,129,.12); color: var(--accent2); }
.stat-icon.orange { background: rgba(245,158,11,.12); color: var(--accent); }
.stat-icon.blue   { background: rgba(59,130,246,.12); color: var(--accent3); }

.stat-value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

.stat-change.up   { color: var(--accent2); }
.stat-change.down { color: var(--accent4); }

/* ============================================================
   GRADIENT HEADERS
   ============================================================ */
.page-header {
  background: var(--grad-primary);
  border-radius: var(--r-xl);
  padding: 32px 36px;
  color: #fff;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.page-header p { color: rgba(255,255,255,.75); font-size: 15px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r-full);
  padding: 9px 22px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99,102,241,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #db2777);
  box-shadow: 0 6px 20px rgba(99,102,241,.5);
  transform: translateY(-1px);
  color: #fff;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16,185,129,.3);
}
.btn-success:hover { opacity: .9; transform: translateY(-1px); color: #fff; }

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245,158,11,.3);
}
.btn-warning:hover { opacity: .9; transform: translateY(-1px); color: #fff; }

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239,68,68,.3);
}
.btn-danger:hover { opacity: .9; transform: translateY(-1px); color: #fff; }

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-primary:hover {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
}

.btn-light {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-light:hover { background: var(--border-light); }

.btn-sm { padding: 6px 14px; font-size: 12.5px; }
.btn-lg { padding: 12px 30px; font-size: 16px; }
.btn-icon { width: 38px; height: 38px; padding: 0; justify-content: center; }
.btn-icon.sm { width: 32px; height: 32px; font-size: 13px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-card);
  transition: var(--transition);
  font-family: var(--font);
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
  background: var(--bg-card);
}

.form-control.is-invalid { border-color: var(--accent4); }
.invalid-feedback { font-size: 12px; color: var(--accent4); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-full);
}

.badge-purple { background: rgba(99,102,241,.12); color: var(--primary); }
.badge-pink   { background: rgba(236,72,153,.12); color: var(--secondary); }
.badge-green  { background: rgba(16,185,129,.12); color: var(--accent2); }
.badge-orange { background: rgba(245,158,11,.12); color: var(--accent); }
.badge-blue   { background: rgba(59,130,246,.12); color: var(--accent3); }
.badge-red    { background: rgba(239,68,68,.12); color: var(--accent4); }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-lg);
}

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

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

.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  vertical-align: middle;
}

.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: rgba(99,102,241,.03); }
.table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   COURSE CARDS
   ============================================================ */
.course-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.course-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border-light);
}

.course-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.course-card:hover .course-thumbnail img { transform: scale(1.05); }

.course-level {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  backdrop-filter: blur(8px);
}

.course-level.beginner     { background: rgba(16,185,129,.85); color: #fff; }
.course-level.intermediate { background: rgba(245,158,11,.85); color: #fff; }
.course-level.advanced     { background: rgba(239,68,68,.85); color: #fff; }

.course-price-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  backdrop-filter: blur(8px);
}

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

.course-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--primary);
  margin-bottom: 6px;
}

.course-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.course-teacher { display: flex; align-items: center; gap: 6px; }
.course-teacher img { width: 22px; height: 22px; border-radius: 50%; }

.course-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-rating { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.course-students { font-size: 12px; color: var(--text-muted); }

/* Progress Bar */
.progress {
  height: 6px;
  background: var(--border-light);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar {
  background: var(--grad-primary);
  height: 100%;
  border-radius: var(--r-full);
  transition: width .6s ease;
}

.progress-bar.green  { background: var(--grad-cool); }
.progress-bar.orange { background: var(--grad-warm); }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid #fff; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.avatar-placeholder {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #fff;
  background: var(--grad-primary);
  flex-shrink: 0;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-content {
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-header {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  padding: 20px 28px;
}

.modal-title { font-family: var(--font-heading); font-weight: 700; color: #fff; }
.modal-header .btn-close { filter: invert(1) brightness(2); }
.modal-body { padding: 28px; }
.modal-footer { border-top: 1px solid var(--border-light); padding: 16px 28px; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  border: none;
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid;
}

.alert-success { background: rgba(16,185,129,.08); color: #065f46; border-left-color: var(--accent2); }
.alert-danger   { background: rgba(239,68,68,.08);  color: #991b1b; border-left-color: var(--accent4); }
.alert-warning  { background: rgba(245,158,11,.08); color: #92400e; border-left-color: var(--accent); }
.alert-info     { background: rgba(59,130,246,.08); color: #1e40af; border-left-color: var(--accent3); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary   { background: var(--grad-primary) !important; }
.bg-gradient-secondary { background: var(--grad-secondary) !important; }
.bg-gradient-cool      { background: var(--grad-cool) !important; }
.bg-gradient-warm      { background: var(--grad-warm) !important; }

.text-muted-sm { font-size: 12px; color: var(--text-muted); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.rounded-xl  { border-radius: var(--r-xl) !important; }
.rounded-lg  { border-radius: var(--r-lg) !important; }
.rounded-full{ border-radius: var(--r-full) !important; }

.shadow-colored { box-shadow: var(--shadow-lg); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  width: 80px; height: 80px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--primary);
  margin: 0 auto 20px;
}

.empty-state h5 { font-size: 16px; color: var(--text); margin-bottom: 6px; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   LOGIN / AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: rgba(99,102,241,.2);
  border-radius: 50%;
  top: -150px; left: -150px;
  filter: blur(60px);
}

.auth-left::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(236,72,153,.15);
  border-radius: 50%;
  bottom: -100px; right: -100px;
  filter: blur(60px);
}

.auth-right {
  width: 480px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
}

.auth-logo {
  width: 60px; height: 60px;
  background: var(--grad-primary);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(99,102,241,.4);
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }

/* ============================================================
   NOTIFICATIONS DROPDOWN
   ============================================================ */
.notifications-dropdown {
  width: 380px;
  max-height: 500px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.notification-item:hover { background: rgba(99,102,241,.04); }
.notification-item.unread { background: rgba(99,102,241,.05); }

.notification-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.notification-content { flex: 1; overflow: hidden; }
.notification-title { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.notification-text { font-size: 12px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notification-time { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .lms-sidebar { transform: translateX(-100%); }
  .lms-sidebar.open { transform: translateX(0); }
  .lms-main { margin-left: 0; }
  .topbar-toggle { display: flex !important; }
}

@media (max-width: 768px) {
  .lms-content { padding: 16px; }
  .auth-left { display: none; }
  .auth-right { width: 100%; padding: 40px 24px; }
  .page-header { padding: 24px; }
  .page-header h1 { font-size: 22px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

@keyframes spin { to { transform: rotate(360deg); } }

.fade-in-up { animation: fadeInUp .4s ease both; }
.delay-1    { animation-delay: .1s; }
.delay-2    { animation-delay: .2s; }
.delay-3    { animation-delay: .3s; }
.delay-4    { animation-delay: .4s; }

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border-light) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--r);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Floating Labels */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
  color: var(--primary);
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.show { display: block; }
