/* ═══════════════════════════════════════════════════════════
   LMSAdvisor — Admin + Auth Stylesheet
   Design tokens → premium dark sidebar + clean content area
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --primary:        #1a56db;
  --primary-dark:   #1648c0;
  --primary-light:  #ebf2ff;
  --success:        #0e9f6e;
  --warning:        #e3a008;
  --danger:         #e02424;

  --sidebar-bg:     #0f172a;
  --sidebar-hover:  rgba(255,255,255,.07);
  --sidebar-active: rgba(59,130,246,.18);
  --sidebar-width:  240px;

  --topbar-h:       60px;
  --topbar-bg:      #ffffff;
  --topbar-border:  #e2e8f0;

  --content-bg:     #f1f5f9;
  --card-bg:        #ffffff;
  --border-color:   #e2e8f0;

  --text-primary:   #1e293b;
  --text-muted:     #64748b;
  --text-sidebar:   rgba(255,255,255,.75);

  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:      0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 24px rgba(0,0,0,.12);

  --radius:         10px;
  --radius-sm:      6px;
  --font:           'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset / base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN LAYOUT
   ═══════════════════════════════════════════════════════════ */
.admin-body {
  background: var(--content-bg);
  display: flex;
}

/* ── Admin Sidebar — reference-style icon sidebar ────────────── */
.adm-sidebar {
  width: 220px;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1000;
  overflow: hidden;
  transition: transform .25s ease, width .25s ease;
  border-right: 1.5px solid rgba(255,255,255,.06);
  box-shadow: 2px 0 16px rgba(0,0,0,.15);
}

/* Brand */
.adm-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.adm-brand-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99,102,241,.4);
}
.adm-brand-name { font-size: 15.5px; font-weight: 800; color: #fff; letter-spacing: -.2px; }

/* Nav */
.adm-nav {
  flex: 1;
  padding: 10px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-nav::-webkit-scrollbar { width: 3px; }
.adm-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.adm-nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-sidebar);
  text-decoration: none !important;
  font-size: 13.5px; font-weight: 500;
  border: none; background: transparent;
  cursor: pointer; width: 100%;
  transition: background .15s, color .15s;
  white-space: nowrap;
  position: relative;
}
.adm-nav-btn i { font-size: 17px; flex-shrink: 0; width: 20px; text-align: center; }
.adm-nav-btn:hover { background: var(--sidebar-hover); color: #fff; }
.adm-nav-btn.active {
  background: rgba(99,102,241,.2);
  color: #a5b4fc !important;
  font-weight: 600;
}
.adm-nav-btn.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px; background: #6366f1;
  border-radius: 0 3px 3px 0;
}

/* Bottom user row */
.adm-sidebar-bottom {
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 10px;
}
.adm-user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 8px;
}
.adm-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.adm-user-info { flex: 1; min-width: 0; }
.adm-user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-user-role { font-size: 11px; color: rgba(255,255,255,.4); }
.adm-logout:hover { color: #f87171 !important; }

/* Main area shifts right */
.admin-main {
  margin-left: 220px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.admin-topbar {
  height: var(--topbar-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: sticky; top: 0; z-index: 500;
  box-shadow: var(--shadow-sm);
}

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

.topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.topbar-icon-btn {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.topbar-icon-btn:hover { background: var(--content-bg); color: var(--primary); }

.badge-dot {
  width: 7px; height: 7px;
  background: var(--danger);
  border-radius: 50%;
  position: absolute; top: 6px; right: 6px;
  border: 2px solid #fff;
}

.topbar-divider {
  width: 1px; height: 24px;
  background: var(--border-color);
  margin: 0 4px;
}

.topbar-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background .15s;
  color: var(--text-primary);
}
.topbar-user-btn:hover { background: var(--content-bg); }
.topbar-user-btn::after { display: none; } /* Remove default BS caret */
.topbar-user-btn .dropdown-toggle::after { display: inline-block; }

.topbar-avatar {
  width: 32px; height: 32px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

.topbar-username { font-size: 13px; font-weight: 600; }

.topbar-dropdown {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  min-width: 160px;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.admin-breadcrumb {
  padding: 10px 20px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb { font-size: 12.5px; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-muted); }

/* ── Content ────────────────────────────────────────────────── */
.admin-content {
  flex: 1;
  padding: 24px 20px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.admin-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 14px;
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
}

/* ── Stat cards ─────────────────────────────────────────────── */
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }

.stat-icon { font-size: 28px; flex-shrink: 0; }
.stat-body { flex: 1; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-badge { font-size: 10.5px; font-weight: 600; }

/* ── Cards ──────────────────────────────────────────────────── */
.lms-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--card-bg);
}

.lms-card-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 18px;
  font-size: 14px;
}

/* ── Tables ─────────────────────────────────────────────────── */
.lms-table {
  font-size: 13.5px;
}
.lms-table thead th {
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--border-color);
  padding: 10px 16px;
  position: sticky; top: 0;
}
.lms-table tbody tr:nth-child(even) { background: #fafbfc; }
.lms-table tbody tr:hover { background: #eff6ff; }
.lms-table tbody td { padding: 10px 16px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }

/* ═══════════════════════════════════════════════════════════
   AUTH LAYOUT
   ═══════════════════════════════════════════════════════════ */
.auth-body { padding: 16px; }

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  margin: 0 auto 20px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.auth-subtitle {
  font-size: 13.5px;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-floating label { font-size: 13.5px; color: var(--text-muted); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }

.password-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 15px;
  z-index: 10;
}

.btn-login {
  background: var(--primary);
  border: none;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: background .15s, transform .1s;
}
.btn-login:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }

.auth-phase-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 18px;
  padding: 10px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
}

.auth-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ═══════════════════════════════════════════════════════════
   STUDENT LAYOUT (mirrors admin but with indigo accent)
   ═══════════════════════════════════════════════════════════ */
.student-body {
  background: var(--content-bg);
  display: flex;
}

.student-sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: #1e293b;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: transform .25s ease;
}

.student-sidebar .nav-item.active {
  background: rgba(99,102,241,.18);
  color: #818cf8;
  border-left-color: #6366f1;
}

.student-sidebar .brand-logo { background: #6366f1; }

.student-main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.student-topbar {
  height: var(--topbar-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: sticky; top: 0; z-index: 500;
  box-shadow: var(--shadow-sm);
}

.student-content { flex: 1; padding: 24px 20px; }
.student-footer { text-align: center; font-size: 12px; color: var(--text-muted); padding: 14px; border-top: 1px solid var(--border-color); background: var(--card-bg); }

/* Student stat cards */
.student-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.student-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.student-stat-icon { font-size: 28px; margin-bottom: 8px; }
.student-stat-value { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.student-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   DARK THEME
   ═══════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --content-bg:   #0f172a;
  --card-bg:      #1e293b;
  --border-color: #334155;
  --topbar-bg:    #1e293b;
  --topbar-border:#334155;
  --text-primary: #f1f5f9;
  --text-muted:   #94a3b8;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — collapse sidebar on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Admin sidebar mobile */
  .adm-sidebar {
    transform: translateX(-100%);
    z-index: 1050;
  }
  .adm-sidebar.mobile-open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0 !important;
  }
  .topbar-toggle { display: flex !important; }

  .auth-card { padding: 28px 20px; }
}

/* ═══════════════════════════════════════════════════════════
   BOOTSTRAP OVERRIDES
   ═══════════════════════════════════════════════════════════ */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

/* ═══════════════════════════════════════════════════════════
   IMPERSONATION BANNER
   ═══════════════════════════════════════════════════════════ */
.impersonation-banner {
  background: linear-gradient(90deg, #7c3aed, #6d28d9);
  color: #fff;
  font-size: 13px;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  position: sticky;
  top: var(--topbar-h);
  z-index: 490;
  box-shadow: 0 2px 8px rgba(109,40,217,.3);
}

.impersonation-banner .btn-warning {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════
   QUILL EDITOR — Fix overlap / consistent sizing
   ═══════════════════════════════════════════════════════════ */
.ql-toolbar.ql-snow {
  border: 1px solid var(--border-color) !important;
  border-bottom: none !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  background: #f8fafc;
  padding: 6px 10px !important;
  font-family: var(--font) !important;
}
.ql-container.ql-snow {
  border: 1px solid var(--border-color) !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
  font-family: var(--font) !important;
  font-size: 14px !important;
}
.ql-editor {
  min-height: 160px !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: var(--text-primary) !important;
}
.ql-editor.ql-blank::before {
  font-style: normal !important;
  color: var(--text-muted) !important;
  font-size: 14px !important;
}
/* Fix Quill toolbar buttons size */
.ql-toolbar .ql-formats button {
  width: 24px !important;
  height: 24px !important;
}
.ql-snow .ql-picker-label {
  font-size: 13px !important;
}

/* ═══════════════════════════════════════════════════════════
   STUDENT COURSE CARD — Start button
   ═══════════════════════════════════════════════════════════ */
.course-card {
  border-radius: var(--radius) !important;
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.course-card .course-thumb {
  height: 150px;
  object-fit: cover;
  width: 100%;
  display: block;
}
.course-card .course-thumb-placeholder {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#6366f1,#1a56db);
}
.course-card .course-body { padding: 14px 16px 10px; }
.course-card .course-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-card .course-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.course-card .course-footer {
  padding: 10px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.btn-start-course {
  background: linear-gradient(135deg,#6366f1,#1a56db);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .15s, transform .1s;
}
.btn-start-course:hover { opacity: .9; transform: translateY(-1px); }
.btn-start-course.completed {
  background: linear-gradient(135deg,#0e9f6e,#059669);
}

/* ═══════════════════════════════════════════════════════════
   STUDENT BOTTOM NAV (PWA app-like)
   ═══════════════════════════════════════════════════════════ */
.student-bottom-nav {
  display: none; /* shown only on mobile/PWA */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  padding: 0;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0px); /* iPhone notch */
}
.student-bottom-nav .nav-items {
  display: flex;
  height: 100%;
}
.student-bottom-nav .nav-item-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 500;
  padding: 8px 4px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color .15s;
  position: relative;
}
.student-bottom-nav .nav-item-btn i {
  font-size: 20px;
  line-height: 1;
}
.student-bottom-nav .nav-item-btn.active,
.student-bottom-nav .nav-item-btn:hover {
  color: #6366f1;
}
.student-bottom-nav .nav-item-btn.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: #6366f1;
  border-radius: 0 0 4px 4px;
}
/* Active icon — filled version */
.student-bottom-nav .nav-item-btn.active i { font-weight: 900; }

/* Show bottom nav on small screens OR standalone PWA */
@media (max-width: 768px) {
  .student-bottom-nav { display: block; }
  .student-main { padding-bottom: 72px; }
  /* Hide sidebar on mobile — use bottom nav instead */
  .student-sidebar { transform: translateX(-100%); }
  .student-main  { margin-left: 0 !important; }
}
@media all and (display-mode: standalone) {
  .student-bottom-nav { display: block; }
  .student-main { padding-bottom: 72px; }
  .student-sidebar { transform: translateX(-100%) !important; }
  .student-main  { margin-left: 0 !important; }
}

/* LOGIN PAGE — split layout */
.login-split {
  min-height: 100vh;
  display: flex;
  width: 100%;
  max-width: 100%;
}
.login-split-left {
  flex: 1;
  background: linear-gradient(145deg,#0f172a 0%,#1e1b4b 50%,#312e81 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.login-split-left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(99,102,241,.15);
  top: -80px; right: -80px;
}
.login-split-left::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(99,102,241,.1);
  bottom: -60px; left: -60px;
}
.login-split-right {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #fff;
}
.login-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}
.login-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-size: 15px;
  margin-bottom: 18px;
}
.login-feature-list li i {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .login-split { flex-direction: column; }
  .login-split-left { display: none; }
  .login-split-right { width: 100%; min-height: 100vh; padding: 32px 20px; background: linear-gradient(135deg,#1e293b,#0f172a); }
  .login-split-right .login-form-card { background: #fff; border-radius: 20px; padding: 32px 24px; width: 100%; max-width: 420px; }
}

/* ── Student sidebar collapsed state (desktop hamburger) ────────────────── */
.student-sidebar.collapsed {
  width: 0;
  overflow: hidden;
  min-width: 0;
}
.student-main.sidebar-collapsed {
  margin-left: 0 !important;
}
/* Smooth transition */
.student-sidebar {
  transition: width .25s ease, transform .25s ease;
}
.student-main {
  transition: margin-left .25s ease;
}

/* Student topbar always show hamburger */
.student-topbar .topbar-toggle {
  display: flex !important;
}

/* ── Notification bell ────────────────────────────────────────────────────── */
.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  background: #e02424;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  padding: 0 3px;
  pointer-events: none;
}
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background .1s;
}
.notif-item:hover { background: var(--content-bg); }
.notif-item.unread { background: #ebf2ff; }
.notif-item.unread:hover { background: #dbeafe; }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6366f1; flex-shrink: 0; margin-top: 5px;
}
.notif-read-dot { width: 8px; height: 8px; flex-shrink: 0; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.notif-body  { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.notif-time  { font-size: 11px; color: var(--text-muted); flex-shrink: 0; margin-top: 2px; white-space: nowrap; }

/* ── Admin footer ─────────────────────────────────────────────────────────── */
.admin-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}
.admin-footer a { color: var(--text-muted); text-decoration: none; }
.admin-footer a:hover { color: var(--primary); }

/* ── Admin sidebar mobile responsive ─────────────────────────── */
@media (max-width: 991px) {
  .adm-sidebar {
    transform: translateX(-100%);
    z-index: 1050;
  }
  .adm-sidebar.mobile-open { transform: translateX(0); }
  .admin-main { margin-left: 0 !important; }
  .topbar-toggle { display: flex !important; }
}
