/* ============================================
   ADWITIYA LMS — Design System & App Styles
   Extends the existing website design tokens
   ============================================ */

/* === LMS-Specific Design Tokens === */
:root {
  --lms-primary: #1A3A6B;
  --lms-primary-light: #2a5298;
  --lms-primary-dark: #0f2444;
  --lms-secondary: #0d9488;
  --lms-secondary-light: #14b8a6;
  --lms-accent: #F5A623;
  --lms-accent-light: #fbbf24;
  --lms-danger: #ef4444;
  --lms-danger-light: #fca5a5;
  --lms-warning: #f59e0b;
  --lms-success: #22c55e;
  --lms-info: #3b82f6;
  
  --lms-bg: #f0f4f8;
  --lms-bg-white: #ffffff;
  --lms-bg-card: #ffffff;
  --lms-bg-sidebar: #0f2444;
  --lms-bg-header: #ffffff;
  
  --lms-text: #1e293b;
  --lms-text-secondary: #64748b;
  --lms-text-muted: #94a3b8;
  --lms-text-inverse: #f8fafc;
  
  --lms-border: #e2e8f0;
  --lms-border-light: #f1f5f9;
  
  --lms-sidebar-width: 260px;
  --lms-sidebar-collapsed: 70px;
  --lms-header-height: 64px;
  
  --lms-radius-sm: 6px;
  --lms-radius: 10px;
  --lms-radius-lg: 16px;
  --lms-radius-xl: 20px;
  --lms-radius-full: 9999px;
  
  --lms-shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --lms-shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --lms-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --lms-shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --lms-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --lms-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --lms-transition-fast: all 0.15s ease;
}

/* === LMS App Container === */
.lms-app {
  display: flex;
  min-height: 100vh;
  background: var(--lms-bg);
  font-family: 'Poppins', sans-serif;
}

.lms-app * {
  box-sizing: border-box;
}

/* === Sidebar === */
.lms-sidebar {
  width: var(--lms-sidebar-width);
  background: linear-gradient(180deg, var(--lms-bg-sidebar) 0%, #162d50 100%);
  color: var(--lms-text-inverse);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: var(--lms-transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.lms-sidebar::-webkit-scrollbar {
  width: 4px;
}

.lms-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.lms-sidebar-brand {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.lms-sidebar-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.lms-sidebar-brand .brand-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--lms-text-inverse);
}

.lms-sidebar-brand .brand-text small {
  font-weight: 400;
  font-size: 0.65rem;
  color: var(--lms-text-muted);
  display: block;
  margin-top: 2px;
}

.lms-sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.lms-nav-section {
  margin-bottom: 8px;
}

.lms-nav-section-title {
  padding: 8px 20px 6px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}

.lms-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--lms-transition-fast);
  position: relative;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.lms-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.lms-nav-item.active {
  color: #fff;
  background: rgba(245, 166, 35, 0.15);
}

.lms-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--lms-accent);
  border-radius: 0 3px 3px 0;
}

.lms-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.lms-nav-item .nav-badge {
  margin-left: auto;
  background: var(--lms-danger);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: var(--lms-radius-full);
  font-weight: 600;
}

.lms-sidebar-footer {
  padding: 15px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.lms-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--lms-radius);
  transition: var(--lms-transition-fast);
}

.lms-user-info:hover {
  background: rgba(255,255,255,0.08);
}

.lms-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--lms-radius-full);
  background: linear-gradient(135deg, var(--lms-accent), #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--lms-primary-dark);
  flex-shrink: 0;
}

.lms-user-details {
  flex: 1;
  min-width: 0;
}

.lms-user-details .user-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lms-user-details .user-role {
  font-size: 0.68rem;
  color: var(--lms-accent);
  text-transform: capitalize;
}

/* === Main Content Area === */
.lms-main {
  flex: 1;
  margin-left: var(--lms-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: var(--lms-transition);
}

/* === Top Header === */
.lms-header {
  height: var(--lms-header-height);
  background: var(--lms-bg-header);
  border-bottom: 1px solid var(--lms-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--lms-shadow-xs);
}

.lms-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lms-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--lms-text);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--lms-radius-sm);
}

.lms-menu-toggle:hover {
  background: var(--lms-border-light);
}

.lms-page-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lms-text);
}

.lms-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--lms-text-muted);
}

.lms-breadcrumb a {
  color: var(--lms-text-secondary);
  text-decoration: none;
}

.lms-breadcrumb a:hover {
  color: var(--lms-primary);
}

.lms-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lms-header-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--lms-radius-sm);
  border: none;
  background: transparent;
  color: var(--lms-text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--lms-transition-fast);
}

.lms-header-btn:hover {
  background: var(--lms-border-light);
  color: var(--lms-text);
}

.lms-header-btn .notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--lms-danger);
  border-radius: 50%;
  border: 2px solid var(--lms-bg-header);
}

.lms-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--lms-radius-full);
  background: linear-gradient(135deg, var(--lms-primary), var(--lms-primary-light));
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 4px;
}

/* === Content Container === */
.lms-content {
  flex: 1;
  padding: 28px;
  max-width: 1400px;
  width: 100%;
}

/* === KPI / Stat Cards === */
.lms-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.lms-kpi-card {
  background: var(--lms-bg-card);
  border-radius: var(--lms-radius);
  padding: 22px;
  box-shadow: var(--lms-shadow-sm);
  transition: var(--lms-transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lms-border-light);
}

.lms-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lms-shadow);
}

.lms-kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  transform: translate(20px, -20px);
  opacity: 0.08;
}

.lms-kpi-card.kpi-blue::after { background: var(--lms-primary); }
.lms-kpi-card.kpi-teal::after { background: var(--lms-secondary); }
.lms-kpi-card.kpi-orange::after { background: var(--lms-accent); }
.lms-kpi-card.kpi-red::after { background: var(--lms-danger); }

.lms-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lms-kpi-label {
  font-size: 0.78rem;
  color: var(--lms-text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lms-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--lms-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.lms-kpi-icon.icon-blue { background: rgba(26,58,107,0.1); color: var(--lms-primary); }
.lms-kpi-icon.icon-teal { background: rgba(13,148,136,0.1); color: var(--lms-secondary); }
.lms-kpi-icon.icon-orange { background: rgba(245,166,35,0.1); color: var(--lms-accent); }
.lms-kpi-icon.icon-red { background: rgba(239,68,68,0.1); color: var(--lms-danger); }
.lms-kpi-icon.icon-green { background: rgba(34,197,94,0.1); color: var(--lms-success); }

.lms-kpi-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--lms-text);
  line-height: 1;
}

.lms-kpi-trend {
  margin-top: 8px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lms-kpi-trend.up { color: var(--lms-success); }
.lms-kpi-trend.down { color: var(--lms-danger); }

/* === Section Cards / Panels === */
.lms-panel {
  background: var(--lms-bg-card);
  border-radius: var(--lms-radius);
  box-shadow: var(--lms-shadow-sm);
  border: 1px solid var(--lms-border-light);
  margin-bottom: 24px;
  overflow: hidden;
}

.lms-panel-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--lms-border);
}

.lms-panel-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lms-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lms-panel-title i {
  color: var(--lms-primary);
}

.lms-panel-actions {
  display: flex;
  gap: 8px;
}

.lms-panel-body {
  padding: 22px;
}

/* === Data Tables === */
.lms-table-wrapper {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
}

.lms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.lms-table th {
  background: var(--lms-bg);
  color: var(--lms-text-secondary);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-bottom: 2px solid var(--lms-border);
}

.lms-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--lms-border-light);
  color: var(--lms-text);
  vertical-align: middle;
}

.lms-table tbody tr {
  transition: var(--lms-transition-fast);
}

.lms-table tbody tr:hover {
  background: rgba(26,58,107,0.02);
}

.lms-table tbody tr:last-child td {
  border-bottom: none;
}

/* === Badges === */
.lms-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--lms-radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.lms-badge-blue { background: rgba(59,130,246,0.1); color: #2563eb; }
.lms-badge-teal { background: rgba(13,148,136,0.1); color: #0d9488; }
.lms-badge-green { background: rgba(34,197,94,0.1); color: #16a34a; }
.lms-badge-orange { background: rgba(245,166,35,0.1); color: #d97706; }
.lms-badge-red { background: rgba(239,68,68,0.1); color: #dc2626; }
.lms-badge-gray { background: rgba(100,116,139,0.1); color: #64748b; }
.lms-badge-purple { background: rgba(139,92,246,0.1); color: #7c3aed; }

/* === Buttons === */
.lms-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--lms-radius);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: var(--lms-transition-fast);
  font-family: inherit;
  text-decoration: none;
}

.lms-btn-primary {
  background: var(--lms-primary);
  color: #fff;
}

.lms-btn-primary:hover {
  background: var(--lms-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--lms-shadow-sm);
}

.lms-btn-accent {
  background: var(--lms-accent);
  color: var(--lms-primary-dark);
}

.lms-btn-accent:hover {
  background: var(--lms-accent-light);
  transform: translateY(-1px);
}

.lms-btn-success {
  background: var(--lms-success);
  color: #fff;
}

.lms-btn-danger {
  background: var(--lms-danger);
  color: #fff;
}

.lms-btn-outline {
  background: transparent;
  border: 1.5px solid var(--lms-border);
  color: var(--lms-text-secondary);
}

.lms-btn-outline:hover {
  border-color: var(--lms-primary);
  color: var(--lms-primary);
  background: rgba(26,58,107,0.03);
}

.lms-btn-ghost {
  background: transparent;
  color: var(--lms-text-secondary);
  padding: 6px 12px;
}

.lms-btn-ghost:hover {
  background: var(--lms-border-light);
  color: var(--lms-text);
}

.lms-btn-sm {
  padding: 5px 12px;
  font-size: 0.78rem;
}

.lms-btn-lg {
  padding: 12px 28px;
  font-size: 0.95rem;
}

/* === Forms === */
.lms-form-group {
  margin-bottom: 18px;
}

.lms-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lms-text);
  margin-bottom: 6px;
}

.lms-form-input,
.lms-form-select,
.lms-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--lms-border);
  border-radius: var(--lms-radius);
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--lms-text);
  background: var(--lms-bg-white);
  transition: var(--lms-transition-fast);
}

.lms-form-input:focus,
.lms-form-select:focus,
.lms-form-textarea:focus {
  outline: none;
  border-color: var(--lms-primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}

.lms-form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* === Login Page === */
.lms-login-container {
  display: flex;
  min-height: 100vh;
  background: var(--lms-bg);
}

.lms-login-brand {
  flex: 1;
  background: linear-gradient(135deg, var(--lms-primary-dark) 0%, var(--lms-primary) 50%, var(--lms-primary-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.lms-login-brand::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(245,166,35,0.08);
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

.lms-login-brand::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(13,148,136,0.1);
  border-radius: 50%;
  bottom: -80px;
  left: -80px;
}

.lms-login-brand img {
  height: 72px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.lms-login-brand h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 12px;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lms-login-brand p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  max-width: 400px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.lms-login-features {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.lms-login-feature {
  text-align: center;
}

.lms-login-feature i {
  font-size: 1.5rem;
  color: var(--lms-accent);
  margin-bottom: 8px;
  display: block;
}

.lms-login-feature span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.lms-login-form-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  max-width: 520px;
}

.lms-login-card {
  width: 100%;
  max-width: 420px;
}

.lms-login-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  color: var(--lms-text);
  margin-bottom: 6px;
}

.lms-login-card p {
  color: var(--lms-text-secondary);
  margin-bottom: 30px;
  font-size: 0.92rem;
}

.lms-login-card .lms-form-input {
  padding: 12px 16px;
  font-size: 0.92rem;
}

.lms-login-card .lms-btn {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 0.95rem;
  margin-top: 8px;
}

.lms-demo-logins {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--lms-border);
}

.lms-demo-logins h4 {
  font-size: 0.8rem;
  color: var(--lms-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}

.lms-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lms-demo-btn {
  padding: 10px 14px;
  border: 1.5px solid var(--lms-border);
  border-radius: var(--lms-radius);
  background: var(--lms-bg-white);
  cursor: pointer;
  transition: var(--lms-transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--lms-text-secondary);
  font-family: inherit;
}

.lms-demo-btn:hover {
  border-color: var(--lms-primary);
  background: rgba(26,58,107,0.03);
  color: var(--lms-primary);
}

.lms-demo-btn i {
  font-size: 0.9rem;
}

/* === Dashboard Grid Layouts === */
.lms-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lms-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lms-grid-7-3 {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 24px;
}

/* === Schedule / Class Cards === */
.lms-schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--lms-border-light);
}

.lms-schedule-item:last-child {
  border-bottom: none;
}

.lms-schedule-time {
  min-width: 65px;
  text-align: center;
}

.lms-schedule-time .time {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--lms-text);
}

.lms-schedule-time .period {
  font-size: 0.7rem;
  color: var(--lms-text-muted);
}

.lms-schedule-bar {
  width: 3px;
  height: 42px;
  border-radius: 2px;
  flex-shrink: 0;
}

.lms-schedule-bar.bar-blue { background: var(--lms-primary); }
.lms-schedule-bar.bar-teal { background: var(--lms-secondary); }
.lms-schedule-bar.bar-orange { background: var(--lms-accent); }
.lms-schedule-bar.bar-red { background: var(--lms-danger); }

.lms-schedule-info h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lms-text);
  margin-bottom: 2px;
}

.lms-schedule-info p {
  font-size: 0.78rem;
  color: var(--lms-text-muted);
}

/* === Announcement Items === */
.lms-announcement-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--lms-border-light);
}

.lms-announcement-item:last-child {
  border-bottom: none;
}

.lms-announcement-item h4 {
  font-size: 0.88rem;
  color: var(--lms-text);
  margin-bottom: 4px;
}

.lms-announcement-item p {
  font-size: 0.8rem;
  color: var(--lms-text-secondary);
  line-height: 1.5;
}

.lms-announcement-meta {
  font-size: 0.72rem;
  color: var(--lms-text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === Progress Bars === */
.lms-progress {
  height: 6px;
  background: var(--lms-border);
  border-radius: var(--lms-radius-full);
  overflow: hidden;
}

.lms-progress-bar {
  height: 100%;
  border-radius: var(--lms-radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lms-progress-bar.bar-blue { background: var(--lms-primary); }
.lms-progress-bar.bar-teal { background: var(--lms-secondary); }
.lms-progress-bar.bar-orange { background: var(--lms-accent); }
.lms-progress-bar.bar-green { background: var(--lms-success); }
.lms-progress-bar.bar-red { background: var(--lms-danger); }

/* === Test Attempt Interface === */
.lms-test-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  height: calc(100vh - var(--lms-header-height) - 56px);
}

.lms-test-timer {
  background: var(--lms-primary);
  color: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--lms-radius) var(--lms-radius) 0 0;
}

.lms-test-timer .timer-value {
  font-family: 'Montserrat', monospace;
  font-size: 1.4rem;
  font-weight: 700;
}

.lms-question-panel {
  background: var(--lms-bg-card);
  border-radius: var(--lms-radius);
  box-shadow: var(--lms-shadow-sm);
  padding: 28px;
  overflow-y: auto;
}

.lms-question-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--lms-text);
  margin-bottom: 24px;
}

.lms-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--lms-border);
  border-radius: var(--lms-radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--lms-transition-fast);
}

.lms-option:hover {
  border-color: var(--lms-primary-light);
  background: rgba(26,58,107,0.02);
}

.lms-option.selected {
  border-color: var(--lms-primary);
  background: rgba(26,58,107,0.05);
}

.lms-option.correct {
  border-color: var(--lms-success);
  background: rgba(34,197,94,0.08);
}

.lms-option.incorrect {
  border-color: var(--lms-danger);
  background: rgba(239,68,68,0.05);
}

.lms-option-marker {
  width: 32px;
  height: 32px;
  border-radius: var(--lms-radius-full);
  border: 2px solid var(--lms-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--lms-text-secondary);
  flex-shrink: 0;
  transition: var(--lms-transition-fast);
}

.lms-option.selected .lms-option-marker {
  background: var(--lms-primary);
  border-color: var(--lms-primary);
  color: #fff;
}

.lms-option-text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.5;
}

.lms-question-nav {
  background: var(--lms-bg-card);
  border-radius: var(--lms-radius);
  box-shadow: var(--lms-shadow-sm);
  padding: 20px;
  overflow-y: auto;
}

.lms-question-nav h4 {
  font-size: 0.82rem;
  color: var(--lms-text-secondary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lms-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.lms-nav-dot {
  width: 36px;
  height: 36px;
  border-radius: var(--lms-radius-sm);
  border: 1.5px solid var(--lms-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--lms-transition-fast);
  background: var(--lms-bg-white);
  color: var(--lms-text-secondary);
}

.lms-nav-dot:hover { border-color: var(--lms-primary); }
.lms-nav-dot.current { background: var(--lms-primary); color: #fff; border-color: var(--lms-primary); }
.lms-nav-dot.answered { background: var(--lms-success); color: #fff; border-color: var(--lms-success); }
.lms-nav-dot.marked { background: var(--lms-warning); color: #fff; border-color: var(--lms-warning); }
.lms-nav-dot.review { background: var(--lms-info); color: #fff; border-color: var(--lms-info); }

.lms-nav-legend {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lms-nav-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--lms-text-muted);
}

.lms-nav-legend-item .dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* === Content Library Cards === */
.lms-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.lms-content-card {
  background: var(--lms-bg-card);
  border-radius: var(--lms-radius);
  box-shadow: var(--lms-shadow-sm);
  border: 1px solid var(--lms-border-light);
  padding: 20px;
  transition: var(--lms-transition);
  cursor: pointer;
}

.lms-content-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lms-shadow);
  border-color: var(--lms-primary-light);
}

.lms-content-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--lms-radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.lms-content-type-badge.type-notes { background: rgba(59,130,246,0.1); color: #2563eb; }
.lms-content-type-badge.type-video { background: rgba(239,68,68,0.1); color: #dc2626; }
.lms-content-type-badge.type-pdf { background: rgba(245,166,35,0.1); color: #d97706; }
.lms-content-type-badge.type-formula { background: rgba(139,92,246,0.1); color: #7c3aed; }
.lms-content-type-badge.type-practice { background: rgba(34,197,94,0.1); color: #16a34a; }

.lms-content-card h4 {
  font-size: 0.95rem;
  color: var(--lms-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.lms-content-card p {
  font-size: 0.8rem;
  color: var(--lms-text-secondary);
  margin-bottom: 12px;
}

.lms-content-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--lms-text-muted);
}

/* === Modal / Drawer === */
.lms-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--lms-transition);
}

.lms-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.lms-modal {
  background: var(--lms-bg-card);
  border-radius: var(--lms-radius-lg);
  box-shadow: var(--lms-shadow-lg);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: var(--lms-transition);
}

.lms-modal-overlay.visible .lms-modal {
  transform: scale(1) translateY(0);
}

.lms-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--lms-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lms-modal-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: var(--lms-text);
  margin: 0;
}

.lms-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--lms-border-light);
  border-radius: var(--lms-radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lms-text-secondary);
  font-size: 1rem;
  transition: var(--lms-transition-fast);
}

.lms-modal-close:hover {
  background: var(--lms-danger-light);
  color: var(--lms-danger);
}

.lms-modal-body {
  padding: 24px;
}

.lms-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--lms-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* === Toast Notifications === */
.lms-toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lms-toast {
  background: var(--lms-bg-card);
  border-radius: var(--lms-radius);
  box-shadow: var(--lms-shadow-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 420px;
  animation: lmsSlideIn 0.3s ease;
  border-left: 4px solid;
}

.lms-toast.toast-success { border-left-color: var(--lms-success); }
.lms-toast.toast-error { border-left-color: var(--lms-danger); }
.lms-toast.toast-warning { border-left-color: var(--lms-warning); }
.lms-toast.toast-info { border-left-color: var(--lms-info); }

.lms-toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.lms-toast.toast-success .lms-toast-icon { color: var(--lms-success); }
.lms-toast.toast-error .lms-toast-icon { color: var(--lms-danger); }
.lms-toast.toast-warning .lms-toast-icon { color: var(--lms-warning); }
.lms-toast.toast-info .lms-toast-icon { color: var(--lms-info); }

.lms-toast-content {
  flex: 1;
}

.lms-toast-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--lms-text);
}

.lms-toast-message {
  font-size: 0.78rem;
  color: var(--lms-text-secondary);
  margin-top: 2px;
}

.lms-toast-close {
  background: none;
  border: none;
  color: var(--lms-text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
}

/* === Empty State === */
.lms-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--lms-text-muted);
}

.lms-empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.lms-empty-state h3 {
  font-size: 1.1rem;
  color: var(--lms-text-secondary);
  margin-bottom: 8px;
}

.lms-empty-state p {
  font-size: 0.88rem;
  margin-bottom: 20px;
}

/* === Filter Bar === */
.lms-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lms-search-input {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid var(--lms-border);
  border-radius: var(--lms-radius);
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--lms-bg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 12px center no-repeat;
  transition: var(--lms-transition-fast);
}

.lms-search-input:focus {
  outline: none;
  border-color: var(--lms-primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}

.lms-filter-chip {
  padding: 7px 14px;
  border: 1.5px solid var(--lms-border);
  border-radius: var(--lms-radius-full);
  background: var(--lms-bg-white);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--lms-text-secondary);
  cursor: pointer;
  transition: var(--lms-transition-fast);
  white-space: nowrap;
  font-family: inherit;
}

.lms-filter-chip:hover,
.lms-filter-chip.active {
  background: var(--lms-primary);
  color: #fff;
  border-color: var(--lms-primary);
}

/* === Content Viewer / Notes === */
.lms-content-viewer {
  background: var(--lms-bg-card);
  border-radius: var(--lms-radius);
  box-shadow: var(--lms-shadow-sm);
  padding: 36px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.lms-content-viewer h1,
.lms-content-viewer h2,
.lms-content-viewer h3,
.lms-content-viewer h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--lms-primary);
  margin: 24px 0 12px;
}

.lms-content-viewer h2 { font-size: 1.4rem; border-bottom: 2px solid var(--lms-accent); padding-bottom: 8px; }
.lms-content-viewer h3 { font-size: 1.15rem; }
.lms-content-viewer h4 { font-size: 1rem; }

.lms-content-viewer p { margin-bottom: 12px; color: var(--lms-text); }

.lms-content-viewer table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.88rem;
}

.lms-content-viewer th {
  background: var(--lms-primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}

.lms-content-viewer td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--lms-border);
}

.lms-content-viewer ul,
.lms-content-viewer ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.lms-content-viewer li {
  margin-bottom: 6px;
}

.lms-content-viewer strong {
  color: var(--lms-primary);
}

/* === Tabs === */
.lms-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--lms-border);
  margin-bottom: 24px;
}

.lms-tab {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lms-text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
  transition: var(--lms-transition-fast);
  font-family: inherit;
}

.lms-tab:hover {
  color: var(--lms-primary);
}

.lms-tab.active {
  color: var(--lms-primary);
}

.lms-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lms-primary);
}

/* === Attendance Grid === */
.lms-attendance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--lms-border-light);
}

.lms-attendance-row:last-child {
  border-bottom: none;
}

.lms-attendance-student {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.lms-attendance-toggle {
  display: flex;
  gap: 6px;
}

.lms-toggle-btn {
  padding: 5px 14px;
  border: 1.5px solid var(--lms-border);
  border-radius: var(--lms-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--lms-bg-white);
  transition: var(--lms-transition-fast);
  font-family: inherit;
}

.lms-toggle-btn.present.active { background: var(--lms-success); color: #fff; border-color: var(--lms-success); }
.lms-toggle-btn.absent.active { background: var(--lms-danger); color: #fff; border-color: var(--lms-danger); }
.lms-toggle-btn.late.active { background: var(--lms-warning); color: #fff; border-color: var(--lms-warning); }

/* === Animations === */
@keyframes lmsSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes lmsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lmsPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.lms-animate-in {
  animation: lmsFadeIn 0.4s ease;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .lms-grid-2, .lms-grid-3, .lms-grid-7-3 {
    grid-template-columns: 1fr;
  }
  
  .lms-test-container {
    grid-template-columns: 1fr;
    height: auto;
  }
}

@media (max-width: 768px) {
  .lms-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  
  .lms-sidebar.open {
    transform: translateX(0);
  }
  
  .lms-main {
    margin-left: 0;
  }
  
  .lms-menu-toggle {
    display: flex;
  }
  
  .lms-content {
    padding: 16px;
  }
  
  .lms-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .lms-kpi-card {
    padding: 16px;
  }
  
  .lms-kpi-value {
    font-size: 1.4rem;
  }
  
  .lms-login-container {
    flex-direction: column;
  }
  
  .lms-login-brand {
    padding: 40px 20px;
  }
  
  .lms-login-brand h1 {
    font-size: 1.4rem;
  }
  
  .lms-login-features {
    display: none;
  }
  
  .lms-login-form-area {
    max-width: 100%;
    padding: 30px 20px;
  }
  
  .lms-demo-grid {
    grid-template-columns: 1fr;
  }
  
  .lms-content-grid {
    grid-template-columns: 1fr;
  }
  
  .lms-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .lms-header {
    padding: 0 16px;
  }
  
  .lms-page-title {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .lms-kpi-grid {
    grid-template-columns: 1fr;
  }
  
  .lms-nav-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* === Sidebar overlay for mobile === */
.lms-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
}

.lms-sidebar-overlay.visible {
  display: block;
}

/* === Print styles === */
@media print {
  .lms-sidebar,
  .lms-header,
  .lms-sidebar-overlay {
    display: none !important;
  }
  
  .lms-main {
    margin-left: 0 !important;
  }
}

/* === Interactive Study Console & Split Screen === */
.lms-console-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  min-height: calc(100vh - 130px);
}

.lms-console-main {
  background: var(--lms-bg-card);
  border-radius: var(--lms-radius);
  box-shadow: var(--lms-shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lms-border-light);
}

.lms-console-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lms-console-outline-panel {
  background: var(--lms-bg-card);
  border-radius: var(--lms-radius);
  box-shadow: var(--lms-shadow-sm);
  border: 1px solid var(--lms-border-light);
  padding: 20px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.lms-outline-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--lms-border);
}

.lms-outline-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lms-primary);
  margin-bottom: 8px;
}

.lms-outline-progress-text {
  font-size: 0.75rem;
  color: var(--lms-text-secondary);
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.lms-outline-section {
  margin-bottom: 16px;
}

.lms-outline-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lms-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  padding-left: 4px;
}

.lms-outline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--lms-radius-sm);
  background: var(--lms-bg);
  margin-bottom: 6px;
  cursor: pointer;
  transition: var(--lms-transition-fast);
  border: 1px solid transparent;
}

.lms-outline-item:hover {
  background: rgba(26,58,107,0.03);
  border-color: rgba(26,58,107,0.1);
}

.lms-outline-item.active {
  background: rgba(26,58,107,0.06);
  border-color: var(--lms-primary);
  color: var(--lms-primary);
  font-weight: 600;
}

.lms-outline-item-icon {
  font-size: 0.95rem;
  color: var(--lms-text-secondary);
  width: 20px;
  text-align: center;
}

.lms-outline-item.active .lms-outline-item-icon {
  color: var(--lms-primary);
}

.lms-outline-item-details {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.3;
}

.lms-outline-item-meta {
  font-size: 0.68rem;
  color: var(--lms-text-muted);
  margin-top: 2px;
}

.lms-outline-item-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.lms-badge-completed {
  background: rgba(34,197,94,0.12);
  color: var(--lms-success);
}

.lms-badge-pending {
  background: var(--lms-border);
  color: var(--lms-text-muted);
}

/* === Custom HTML5 Player === */
.lms-video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: var(--lms-radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.lms-video-container iframe,
.lms-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.lms-video-details {
  padding: 12px 4px;
  border-bottom: 1px solid var(--lms-border-light);
  margin-bottom: 16px;
}

.lms-video-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lms-text);
  margin-bottom: 6px;
}

.lms-video-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--lms-text-secondary);
}

.lms-video-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 4px;
}

.lms-speed-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--lms-text-secondary);
}

.lms-speed-select {
  padding: 4px 8px;
  border-radius: var(--lms-radius-sm);
  border: 1.5px solid var(--lms-border);
  background: var(--lms-bg-white);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

/* === Slide Deck Viewer === */
.lms-slideshow-container {
  background: #f8fafc;
  border: 2px solid var(--lms-border);
  border-radius: var(--lms-radius);
  padding: 24px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
}

.lms-slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--lms-text);
}

.lms-slide-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lms-primary);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--lms-border-light);
  padding-bottom: 8px;
}

.lms-slide-body {
  font-size: 0.92rem;
  line-height: 1.6;
}

.lms-slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--lms-border-light);
}

/* === Chapter Completion Banner === */
.lms-completion-banner {
  padding: 14px;
  border-radius: var(--lms-radius);
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--lms-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.lms-completion-banner.pink {
  background: #ffe4e6;
  color: var(--lms-danger);
  border: 1.5px dashed var(--lms-danger);
}

.lms-completion-banner.pink:hover {
  background: #fecdd3;
}

.lms-completion-banner.green {
  background: #dcfce7;
  color: var(--lms-success);
  border: 1.5px solid var(--lms-success);
  cursor: default;
}

/* === Test Guidelines Box === */
.lms-guidelines-box {
  padding: 24px;
  background: var(--lms-bg-white);
  border-radius: var(--lms-radius);
}

.lms-guidelines-box h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lms-primary);
  margin-bottom: 8px;
}

.lms-guidelines-box p {
  color: var(--lms-text-secondary);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.lms-guidelines-list {
  margin: 20px 0;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--lms-text);
  line-height: 1.8;
}

.lms-guidelines-list li {
  margin-bottom: 10px;
}

/* === Test Review Dashboard === */
.lms-review-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.lms-review-card {
  background: var(--lms-bg-card);
  border-radius: var(--lms-radius-lg);
  box-shadow: var(--lms-shadow-sm);
  border: 1.5px solid var(--lms-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lms-review-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lms-text);
  margin-bottom: 12px;
}

.lms-review-chart-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}

.lms-review-card-details {
  width: 100%;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lms-review-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--lms-text-secondary);
}

.lms-review-detail-val {
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* === Answer Review Panel === */
.lms-review-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  height: calc(100vh - 130px);
}

.lms-review-sidebar {
  background: var(--lms-bg-card);
  border-radius: var(--lms-radius);
  border: 1px solid var(--lms-border-light);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--lms-shadow-sm);
}

.lms-review-summary-card {
  padding: 16px;
  background: var(--lms-bg);
  border-radius: var(--lms-radius);
  border-left: 4px solid var(--lms-primary);
}

.lms-review-main {
  background: var(--lms-bg-card);
  border-radius: var(--lms-radius);
  border: 1px solid var(--lms-border-light);
  padding: 24px;
  overflow-y: auto;
  box-shadow: var(--lms-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lms-review-filter-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--lms-radius);
  border: 1.5px solid var(--lms-border);
  background: var(--lms-bg-white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lms-text-secondary);
  cursor: pointer;
  transition: var(--lms-transition-fast);
}

.lms-review-filter-btn:hover {
  background: rgba(26,58,107,0.02);
}

.lms-review-filter-btn.active {
  border-color: var(--lms-primary);
  background: rgba(26,58,107,0.04);
  color: var(--lms-primary);
}

.lms-review-question-card {
  border: 1.5px solid var(--lms-border);
  border-radius: var(--lms-radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--lms-transition-fast);
  flex-shrink: 0;
}

.lms-review-question-card.collapsed .lms-review-question-body {
  display: none !important;
}

.lms-review-question-card.collapsed .lms-review-question-header {
  border-bottom: none;
}

.lms-review-question-card .chevron-icon {
  transition: transform 0.2s ease;
}

.lms-review-question-card:not(.collapsed) .chevron-icon {
  transform: rotate(90deg);
}

.lms-review-question-header {
  padding: 14px 20px;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--lms-text);
  border-bottom: 1.5px solid var(--lms-border);
}

.lms-review-question-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lms-review-explanation {
  margin-top: 18px;
}

.lms-review-explanation h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lms-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lms-review-explanation h5 i {
  color: var(--lms-accent);
}

/* Structured explanation sections */
.lms-structured-explanation {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.explanation-section {
  background: var(--lms-bg-white);
  border-radius: var(--lms-radius);
  border: 1px solid var(--lms-border);
  box-shadow: var(--lms-shadow-xs);
  transition: var(--lms-transition);
  overflow: hidden;
  padding: 14px 18px;
}

.explanation-section:hover {
  transform: translateY(-1px);
  box-shadow: var(--lms-shadow-sm);
}

.explanation-section.section-correct {
  border-left: 4px solid var(--lms-success);
  background: rgba(34, 197, 94, 0.015);
}

.explanation-section.section-wrong {
  border-left: 4px solid var(--lms-danger);
  background: rgba(239, 68, 68, 0.015);
}

.explanation-section.section-trend {
  border-left: 4px solid var(--lms-info);
  background: rgba(59, 130, 246, 0.015);
}

.explanation-section .section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.explanation-section .section-icon {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explanation-section.section-correct .section-icon {
  color: var(--lms-success);
}

.explanation-section.section-wrong .section-icon {
  color: var(--lms-danger);
}

.explanation-section.section-trend .section-icon {
  color: var(--lms-info);
}

.explanation-section .section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lms-primary-light);
  letter-spacing: 0.01em;
}

.explanation-section .section-body {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--lms-text);
}

.explanation-section .section-body strong {
  font-weight: 600;
  color: var(--lms-primary-dark);
}

/* Fallback/standard styling */
.lms-standard-explanation {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--lms-text);
  padding: 14px 18px;
  background: rgba(34, 197, 94, 0.03);
  border-left: 4px solid var(--lms-success);
  border-radius: var(--lms-radius);
  margin-top: 12px;
}

.lms-standard-explanation strong {
  font-weight: 600;
  color: var(--lms-primary-dark);
}

/* === Accordion Outline Styles === */
.lms-accordion-section {
  border: 1px solid var(--lms-border);
  border-radius: var(--lms-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--lms-bg-card);
}

.lms-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--lms-border-light);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lms-text);
  cursor: pointer;
  transition: var(--lms-transition-fast);
}

.lms-accordion-header:hover {
  background: var(--lms-border);
}

.lms-accordion-header.active-chapter {
  border-left: 3.5px solid var(--lms-primary);
  color: var(--lms-primary);
  background: rgba(26,58,107,0.03);
}

.lms-accordion-arrow {
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  color: var(--lms-text-secondary);
}

.lms-accordion-section.collapsed .lms-accordion-arrow {
  transform: rotate(-90deg);
}

.lms-accordion-body {
  padding: 8px;
  background: var(--lms-bg-white);
  transition: max-height 0.2s ease;
}

.lms-accordion-section.collapsed .lms-accordion-body {
  display: none;
}

/* === Content Manager Styles === */
.lms-content-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.lms-content-manager-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--lms-border);
  margin-bottom: 24px;
}
.lms-content-manager-tab {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--lms-text-secondary);
  cursor: pointer;
  transition: var(--lms-transition-fast);
  margin-bottom: -2px;
}
.lms-content-manager-tab:hover {
  color: var(--lms-primary);
}
.lms-content-manager-tab.active {
  color: var(--lms-primary);
  border-bottom-color: var(--lms-primary);
}
.lms-file-dropzone {
  border: 2px dashed var(--lms-border);
  border-radius: var(--lms-radius);
  padding: 30px;
  text-align: center;
  background: var(--lms-bg-white);
  cursor: pointer;
  transition: var(--lms-transition-fast);
  margin-bottom: 18px;
}
.lms-file-dropzone:hover {
  border-color: var(--lms-primary);
  background: rgba(26, 58, 107, 0.02);
}
.lms-file-dropzone i {
  font-size: 2rem;
  color: var(--lms-text-secondary);
  margin-bottom: 12px;
}
.lms-file-dropzone .dropzone-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lms-text);
}
.lms-file-dropzone .dropzone-subtext {
  font-size: 0.78rem;
  color: var(--lms-text-muted);
  margin-top: 4px;
}
.lms-content-list-section {
  margin-bottom: 20px;
}
.lms-content-list-section-header {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lms-primary);
  padding: 8px 12px;
  background: var(--lms-border-light);
  border-radius: var(--lms-radius-sm);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lms-content-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--lms-border);
  border-radius: var(--lms-radius-sm);
  background: var(--lms-bg-white);
  margin-bottom: 8px;
  transition: var(--lms-transition-fast);
}
.lms-content-row:hover {
  box-shadow: var(--lms-shadow-xs);
  border-color: var(--lms-text-muted);
}
.lms-content-row-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.lms-content-row-icon {
  font-size: 1.1rem;
  color: var(--lms-primary);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.lms-content-row-details {
  min-width: 0;
  flex: 1;
}
.lms-content-row-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lms-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lms-content-row-meta {
  font-size: 0.75rem;
  color: var(--lms-text-secondary);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lms-content-row-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

/* === Fees Module additions === */
.lms-receipt-stamp {
  border: 4px double #16a34a;
  color: #16a34a;
  font-weight: 800;
  padding: 8px 16px;
  font-size: 1.6rem;
  text-transform: uppercase;
  transform: rotate(-12deg);
  position: absolute;
  top: 30px;
  right: 40px;
  border-radius: 6px;
  opacity: 0.85;
  user-select: none;
  letter-spacing: 2px;
  font-family: 'Montserrat', sans-serif;
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  /* Hide all app wrapper elements except the visible modal content */
  .lms-sidebar, 
  .lms-header, 
  .lms-tabs, 
  .lms-kpi-grid, 
  .lms-panel, 
  .lms-alert, 
  .receipt-no-print, 
  .lms-modal-close,
  .lms-modal-footer button:not(.print-btn-main) {
    display: none !important;
  }
  .lms-modal-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: #fff !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
  }
  .lms-modal-overlay .lms-modal {
    transform: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: 100% !important;
    overflow: visible !important;
    background: #fff !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .lms-modal-header, .lms-modal-footer {
    border: none !important;
    padding: 0 !important;
  }
  .lms-modal-body {
    padding: 0 !important;
  }
}




