/* ==========================================================================
   EDUPULSE ONLINE EXAM SYSTEM - ULTRA-MODERN ENTERPRISE SAAS STYLING SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Inter:wght@400;500;600;700;800&family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-arabic: 'Noto Sans Arabic', 'Noto Naskh Arabic', 'Amiri', 'Tahoma', 'Arial', sans-serif;
  --font-main: 'Plus Jakarta Sans', 'Inter', var(--font-arabic), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', var(--font-arabic), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Primary Brand Palette */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  --primary-glow: rgba(79, 70, 229, 0.22);
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

  /* Modern Slate Neutrals */
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --dark-border: #334155;
  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #818cf8;
  
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-white: #ffffff;

  /* Status Colors */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --info: #3b82f6;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;

  /* Layout Constants */
  --sidebar-width: 272px;
  --header-height: 72px;
  
  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Tactile Multi-Layer Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 40px -8px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px -2px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 12px 28px -4px rgba(79, 70, 229, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);

  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--light-bg);
  background-image: radial-gradient(at 0% 0%, rgba(238, 242, 255, 0.6) 0px, transparent 50%),
                    radial-gradient(at 100% 0%, rgba(240, 253, 250, 0.6) 0px, transparent 50%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none;
}

input, button, select, textarea {
  font-family: inherit;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   UTILITY CLASSES & COMMON HELPERS
   ========================================================================== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-amber { color: #d97706; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.25rem !important; }
.flex-wrap { flex-wrap: wrap; }
.max-w-xl { max-width: 650px; margin: 0 auto; }
.max-w-lg { max-width: 750px; margin: 0 auto; }
.p-6 { padding: 1.5rem; }

/* Pulse Dots */
.pulse-dot, .dot-active, .dot-draft, .dot-stopped {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-active { background: #10b981; }
.dot-draft { background: #f59e0b; }
.dot-stopped { background: #94a3b8; }

.pulse-live {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
  margin-right: 2px;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   BUTTONS SYSTEM
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.38);
  filter: brightness(1.04);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: #334155;
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

.btn-warning {
  background: #fffbeb;
  color: #b45309;
  border: 1.5px solid #fde68a;
  font-weight: 700;
}

.btn-warning:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18);
}

.btn-light {
  background: #fff;
  color: var(--dark-bg);
  border: 1px solid var(--border-color);
  font-weight: 700;
}

.btn-light:hover {
  background: #f8fafc;
}

.btn-sm {
  padding: 6px 13px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* Clear button */
.btn-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-clear:hover {
  color: #475569;
}

/* Modern Table Action Icon Buttons */
.table-actions-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.btn-table-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-xs);
  outline: none;
}

.btn-table-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-table-icon.btn-edit {
  color: #2563eb;
  border-color: #dbeafe;
  background: #eff6ff;
}

.btn-table-icon.btn-edit:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-table-icon.btn-delete {
  color: #ef4444;
  border-color: #fee2e2;
  background: #fef2f2;
}

.btn-table-icon.btn-delete:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

/* Modern Security Status & Violations */
.security-viol-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.security-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.badge-viol-flagged {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.08);
}

.badge-viol-clean {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.security-reason-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.chip-viol-limit {
  color: #b91c1c;
  background: #fff1f2;
  border: 1px solid #ffe4e6;
}

.chip-time-expired {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.chip-normal-submit {
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

/* Modern Session Action Pills */
.btn-action-pill-modern {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  outline: none;
}

.btn-action-pill-modern:hover {
  transform: translateY(-1px);
}

.btn-pill-scorecard {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}

.btn-pill-scorecard i {
  color: #6366f1;
}

.btn-pill-scorecard:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: var(--shadow-sm);
}

.btn-pill-audit {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.btn-pill-audit:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-pill-reattend {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.btn-pill-reattend:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   BADGES SYSTEM
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-role { background: #e0e7ff; color: #4338ca; }
.badge-success { background: var(--success-bg); color: #047857; border: 1px solid var(--success-border); }
.badge-danger { background: var(--danger-bg); color: #b91c1c; border: 1px solid var(--danger-border); }
.badge-warning { background: var(--warning-bg); color: #b45309; border: 1px solid var(--warning-border); }
.badge-info { background: var(--info-bg); color: #1d4ed8; border: 1px solid var(--info-border); }
.badge-primary { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.badge-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

/* ==========================================================================
   ULTRA-MODERN CUSTOM DROPDOWN SYSTEM
   ========================================================================== */
/* CUSTOM DROPDOWN SYSTEM */
.custom-dropdown-container {
  position: relative;
  display: inline-block;
  z-index: 30;
  width: 100%;
}

.custom-dropdown-container.open {
  z-index: 999999 !important;
}

.custom-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  width: 100%;
  height: 40px;
  justify-content: space-between;
  user-select: none;
  box-sizing: border-box;
}

.custom-dropdown-trigger:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.custom-dropdown-trigger.open {
  border-color: var(--primary, #4f46e5);
  box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.14);
  background: #ffffff;
}

.custom-dropdown-trigger.disabled,
.custom-dropdown-trigger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: #e2e8f0;
  pointer-events: none;
}

.dropdown-trigger-icon {
  color: var(--primary, #4f46e5);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.dropdown-trigger-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.85rem;
}

.dropdown-trigger-arrow {
  font-size: 0.72rem;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.custom-dropdown-trigger.open .dropdown-trigger-arrow {
  transform: rotate(180deg);
  color: var(--primary, #4f46e5);
}

/* Floating Menu */
.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-width: 420px;
  width: max-content;
  background: #ffffff;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  box-shadow: 0 20px 45px -5px rgba(15, 23, 42, 0.22), 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 8px;
  z-index: 999999 !important;
  animation: dropdownSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.custom-dropdown-menu.align-right {
  left: auto !important;
  right: 0 !important;
}

.custom-dropdown-menu.align-top {
  top: auto !important;
  bottom: calc(100% + 6px) !important;
}

@keyframes dropdownSlideIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 0 2px;
}

.dropdown-search-box i {
  position: absolute;
  left: 12px;
  font-size: 0.8rem;
  color: #94a3b8;
  pointer-events: none;
}

.dropdown-search-box input {
  width: 100%;
  padding: 7px 10px 7px 30px;
  font-size: 0.82rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  outline: none;
  transition: var(--transition-fast, 0.2s ease);
  color: #0f172a;
  box-sizing: border-box;
}

.dropdown-search-box input:focus {
  border-color: var(--primary, #4f46e5);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.custom-dropdown-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.custom-dropdown-list::-webkit-scrollbar {
  width: 5px;
}

.custom-dropdown-list::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.custom-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: var(--transition-fast, 0.15s ease);
  user-select: none;
}

.custom-dropdown-item:hover {
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateX(2px);
}

.custom-dropdown-item.active {
  background: #eef2ff;
  color: #4338ca;
  font-weight: 700;
}

.custom-dropdown-item .item-icon {
  color: #6366f1;
  font-size: 0.85rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.custom-dropdown-item .item-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dropdown-item .item-check {
  color: #4f46e5;
  font-size: 0.82rem;
  margin-left: auto;
}

.custom-dropdown-empty {
  padding: 14px 12px;
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================================================
   1. LOGIN SCREEN CONTAINER
   ========================================================================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  background-image: 
    radial-gradient(at 0% 0%, rgba(238, 242, 255, 0.85) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(240, 253, 250, 0.85) 0px, transparent 50%),
    radial-gradient(at 50% 0%, rgba(245, 243, 255, 0.6) 0px, transparent 50%);
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
}

.login-center-box {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.login-card {
  width: 100%;
  max-width: 450px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.03);
  padding: 36px 32px;
  position: relative;
  z-index: 2;
}

.brand-header {
  text-align: center;
  margin-bottom: 24px;
}

.brand-logo-img-box {
  width: 92px;
  height: 92px;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 22px;
  padding: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(79, 70, 229, 0.18);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.brand-logo-img-box:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(79, 70, 229, 0.25);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  display: block;
}

.brand-university-arabic {
  font-family: 'Noto Naskh Arabic', 'Amiri', 'Noto Sans Arabic', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e3a8a;
  direction: rtl;
  line-height: 1.4;
  margin-bottom: 2px;
}

.brand-university-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #3b82f6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.brand-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.brand-subtitle,
.brand-header p {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.4;
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  background: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.footer-mini-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.role-selector {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 22px;
  gap: 4px;
}

.role-tab {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.role-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.alert-error {
  background: var(--danger-bg);
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ==========================================================================
   2. MAIN APPLICATION PORTAL & FLOATING SIDEBAR
   ========================================================================== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.app-layout {
  display: flex;
  gap: 24px;
  max-width: 1540px;
  margin: 0 auto;
  padding: 20px 24px 28px 24px;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

.main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content-container {
  flex: 1;
  width: 100%;
  min-width: 0;
  position: relative;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background: #ffffff;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  z-index: 100;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.sidebar-brand-box {
  padding: 24px 16px 18px 16px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.sidebar-logo-container {
  width: 62px;
  height: 62px;
  background: #ffffff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  padding: 6px;
  box-shadow: 0 10px 25px -4px rgba(99, 102, 241, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.sidebar-brand-box:hover .sidebar-logo-container {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 28px -4px rgba(99, 102, 241, 0.18), 0 6px 12px -2px rgba(0, 0, 0, 0.08);
}

.sidebar-university-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  display: block;
}

.sidebar-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 3px;
}

.sidebar-brand-sub {
  font-size: 0.74rem;
  font-weight: 700;
  color: #6366f1;
  margin-top: 0;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.sidebar-role-pill-wrapper {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.sidebar-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid #dbeafe;
  letter-spacing: 0.1px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
}

.nav-category {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 14px 12px 6px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  margin-bottom: 3px;
  position: relative;
  text-decoration: none !important;
  user-select: none;
}

.nav-item span {
  text-decoration: none !important;
}

.nav-item i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  text-decoration: none !important;
}

.nav-item:hover,
.nav-item:focus,
.nav-item:active {
  background: #f8fafc;
  color: var(--primary);
  transform: translateX(3px);
  text-decoration: none !important;
}

.nav-item.active {
  background: #eef2ff;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none !important;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3.5px;
  background: var(--primary-gradient);
  border-radius: 0 4px 4px 0;
}

.nav-item.text-danger {
  color: #ef4444;
  text-decoration: none !important;
}

.nav-item.text-danger i {
  color: #ef4444;
  text-decoration: none !important;
}

.nav-item.text-danger:hover {
  background: #fef2f2;
  color: #dc2626;
  text-decoration: none !important;
}

.sidebar-user-footer {
  padding: 14px 16px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.user-info {
  overflow: hidden;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-sub {
  font-size: 0.74rem;
  color: #64748b;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ==========================================================================
   TOP STICKY HEADER BAR
   ========================================================================== */
.top-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 20px;
  z-index: 90;
  transition: var(--transition);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.header-dhiu-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  display: block;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header-univ-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: 0.4px;
}

.header-portal-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #4f46e5;
  text-transform: uppercase;
}

.mobile-toggle {
  display: none;
  background: #f1f5f9;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 1.1rem;
  cursor: pointer;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-time {
  font-size: 0.85rem;
  font-weight: 700;
  background: #f8fafc;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  color: #475569;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  font-variant-numeric: tabular-nums;
}

.header-time i {
  color: var(--primary);
  font-size: 0.9rem;
}

.btn-logout-modern {
  background: #ffffff;
  border: 1.5px solid #fee2e2;
  color: #ef4444;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout-modern:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.16);
}

/* ==========================================================================
   HERO TITLE BANNER
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e40af 100%);
  color: #ffffff;
  padding: 24px 30px;
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(30, 27, 75, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text-col {
  position: relative;
  z-index: 2;
  max-width: 80%;
}

.hero-emblem-wrap {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  background: #ffffff;
  border-radius: 18px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.hero-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.hero-banner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.hero-banner p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.hero-watermark {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 96px;
  color: #ffffff;
  opacity: 0.12;
  pointer-events: none;
}

/* ==========================================================================
   MODERN EXAMS TOOLBAR & SEARCH SYSTEM
   ========================================================================== */
.exams-toolbar-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.exams-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1;
}

.exam-status-filters {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  gap: 3px;
}

.status-tab {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 9px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.status-tab:hover {
  color: #0f172a;
}

.status-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.tab-counter {
  background: rgba(148, 163, 184, 0.2);
  color: inherit;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
}

.status-tab.active .tab-counter {
  background: #eff6ff;
  color: var(--primary);
}

.toolbar-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 260px;
  flex: 1;
  max-width: 380px;
}

.toolbar-search-wrap i.fa-magnifying-glass {
  position: absolute;
  left: 14px;
  font-size: 0.85rem;
  color: #94a3b8;
  pointer-events: none;
}

.toolbar-search-wrap input {
  width: 100%;
  padding: 8px 34px 8px 38px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.86rem;
  color: #0f172a;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.toolbar-search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.toolbar-search-wrap .btn-clear {
  position: absolute;
  right: 10px;
}

.exams-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-create-exam {
  padding: 9px 20px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}

/* ==========================================================================
   ULTRA-MODERN ADMIN EXAM CARDS GRID
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
}

#exams-cards-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

.modern-exam-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e8edf5;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.modern-exam-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -6px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

/* Card Accent Bars (Top Line Gradient & Left Flush Stripe Connected at Corner) */
.modern-exam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
  z-index: 5;
}

.modern-exam-card-accent {
  width: 5px;
  height: 100%;
  margin: 0;
  border-radius: 0;
  flex-shrink: 0;
  background: linear-gradient(180deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
  z-index: 4;
}

.modern-exam-card.status-draft::before {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}
.modern-exam-card.status-draft .modern-exam-card-accent {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.modern-exam-card.status-stopped::before {
  background: linear-gradient(90deg, #64748b 0%, #475569 100%);
}
.modern-exam-card.status-stopped .modern-exam-card-accent {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

.modern-exam-card.status-archived::before {
  background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 100%);
}
.modern-exam-card.status-archived .modern-exam-card-accent {
  background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 100%);
}

/* 3-Column Horizontal Card Inner */
.horizontal-card-inner {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(280px, 1.05fr) 280px;
  gap: 24px;
  padding: 22px 26px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* LEFT COLUMN: Title, Status, Description, Selected Colleges */
.exam-horiz-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.exam-horiz-meta-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.exam-horiz-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 2px 0 0 0;
  word-break: break-word;
}

.exam-horiz-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Selected Colleges Row */
.exam-assigned-colleges-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.assigned-colleges-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.assigned-colleges-label i {
  color: #3b82f6;
  font-size: 0.76rem;
}

.assigned-colleges-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.exam-college-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.04);
}

.exam-college-tag i {
  color: #3b82f6;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.exam-college-tag.all {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}

.exam-college-tag.all i {
  color: #64748b;
}

/* MIDDLE COLUMN: Attended Summary Spotlight & 2x2 Mini Stats Grid */
.exam-horiz-center {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.exam-attended-highlight-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #eef2ff 100%);
  border: 1.5px solid #dbeafe;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.05);
}

.attended-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.1);
}

.attended-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.attended-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: 2px;
}

.attended-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.attended-number {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1e3a8a;
  line-height: 1;
}

.attended-unit {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3b82f6;
}

.attended-completed-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: auto;
}

/* Mini Stats Grid inside Horizontal Card */
.exam-horiz-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  padding: 10px;
}

.exam-horiz-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid #edf2f7;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
  min-width: 0;
}

.exam-horiz-stat-item .stat-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 0.78rem;
}

.exam-horiz-stat-item .stat-name {
  font-size: 0.62rem;
}

.exam-horiz-stat-item .stat-num {
  font-size: 0.88rem;
}

/* RIGHT COLUMN: Actions */
.exam-horiz-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.btn-edit-exam-horiz {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 11px 16px !important;
  border-radius: 12px !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.btn-edit-exam-horiz:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.42) !important;
}

/* Responsive adjustments */
@media (max-width: 1180px) {
  .horizontal-card-inner {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .exam-horiz-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }
  .btn-edit-exam-horiz {
    width: auto;
    flex: 1;
  }
  .exam-card-actions-row {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .modern-exam-card {
    flex-direction: column;
  }
  .modern-exam-card .modern-exam-card-accent {
    width: 100%;
    height: 4px;
  }
  .horizontal-card-inner {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }
  .exam-horiz-actions {
    flex-direction: column;
  }
}

.exam-card-inner {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 16px;
}

/* Card Header Meta */
.exam-card-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.exam-class-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f5ff;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #dbeafe;
  max-width: 62%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.05);
}

.exam-class-pill i {
  font-size: 0.78rem;
  color: #3b82f6;
  flex-shrink: 0;
}

.exam-class-pill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exam-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-active {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  box-shadow: 0 1px 3px rgba(4, 120, 87, 0.08);
}

.badge-active .pulse-live {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulseStatus 2s infinite;
}

.badge-draft {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-draft .dot-draft {
  width: 7px;
  height: 7px;
  background: #f59e0b;
  border-radius: 50%;
}

.badge-stopped {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.badge-stopped .dot-stopped {
  width: 7px;
  height: 7px;
  background: #64748b;
  border-radius: 50%;
}

.badge-archived {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* Card Body */
.exam-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.exam-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0 0 8px 0;
  word-break: break-word;
}

.exam-subchips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.exam-subchip {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chip-indigo {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.chip-emerald {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.chip-amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.chip-blue {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.chip-slate {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.exam-card-desc {
  font-size: 0.83rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mini Stats Grid inside Cards */
.exam-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 16px;
}

.exam-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid #edf2f7;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
  min-width: 0;
}

.stat-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-amber { background: #fffbeb; color: #d97706; }
.icon-emerald { background: #ecfdf5; color: #059669; }

.stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.1;
  margin-bottom: 2px;
}

.stat-num {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-num small {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

/* Card Action Footer */
.exam-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-edit-exam {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.32) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.btn-edit-exam:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45) !important;
}

/* Clean 2x2 Action Buttons Grid (No Truncation) */
.exam-card-actions-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.btn-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  width: 100%;
}

.btn-action-pill:hover {
  transform: translateY(-1px);
}

.btn-results-on {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.btn-results-on:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.15);
}

.btn-results-off {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.btn-results-off:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.15);
}

.btn-action-publish {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.btn-action-publish:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.15);
}

.btn-action-stop {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

.btn-action-stop:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-action-history {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.btn-action-history:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.15);
}

.btn-action-archive {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.btn-action-archive:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-action-republish {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.btn-action-republish:hover {
  background: #dbeafe;
}

.btn-action-delete {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.btn-action-delete:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

/* ==========================================================================
   ADMIN DASHBOARD: CREATED EXAMINATIONS HORIZONTAL CARDS
   ========================================================================== */
.dashboard-active-exams-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  width: 100% !important;
}

.dashboard-active-exam-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e8edf5;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-active-exam-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -6px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

.dashboard-active-exam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
  z-index: 5;
}

.dashboard-active-exam-card .active-exam-accent {
  width: 5px;
  height: 100%;
  margin: 0;
  border-radius: 0;
  flex-shrink: 0;
  background: linear-gradient(180deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
  z-index: 4;
}

.dashboard-active-exam-card.status-draft::before {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}
.dashboard-active-exam-card.status-draft .active-exam-accent {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.dashboard-active-exam-card.status-stopped::before {
  background: linear-gradient(90deg, #64748b 0%, #475569 100%);
}
.dashboard-active-exam-card.status-stopped .active-exam-accent {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

.active-exam-card-inner {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(280px, 1.05fr) 260px;
  gap: 24px;
  padding: 22px 26px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Header & Main details */
.active-exam-main-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.active-exam-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.active-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.active-status-badge.badge-live {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  box-shadow: 0 1px 3px rgba(4, 120, 87, 0.08);
}

.active-status-badge.badge-live .pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulseStatus 2s infinite;
}

.active-status-badge.badge-draft {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.active-status-badge.badge-stopped {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.active-exam-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 2px 0 0 0;
  word-break: break-word;
}

.active-exam-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Center Col: Attended Spotlight & 2x2 Meta Grid */
.active-exam-center-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.active-exam-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  padding: 10px;
}

.active-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid #edf2f7;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
  min-width: 0;
}

.active-meta-item .meta-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.active-meta-item .meta-icon.icon-blue { background: #eff6ff; color: #2563eb; }
.active-meta-item .meta-icon.icon-purple { background: #f5f3ff; color: #7c3aed; }
.active-meta-item .meta-icon.icon-amber { background: #fffbeb; color: #d97706; }
.active-meta-item .meta-icon.icon-emerald { background: #ecfdf5; color: #059669; }

.active-meta-item .meta-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.active-meta-item .meta-text .meta-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.1;
  margin-bottom: 2px;
}

.active-meta-item .meta-text .meta-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Col: Actions */
.active-exam-actions-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.btn-active-edit {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 11px 16px !important;
  border-radius: 12px !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.btn-active-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.42) !important;
}

.active-exam-actions-subrow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.btn-active-results {
  padding: 9px 12px !important;
  border-radius: 10px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  width: 100% !important;
}

.btn-active-results:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
  transform: translateY(-1px);
}

.btn-active-status {
  padding: 9px 12px !important;
  border-radius: 10px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  width: 100% !important;
}

.btn-active-status:hover {
  transform: translateY(-1px);
}

.btn-active-status.status-pause {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1.5px solid #fde68a !important;
}

.btn-active-status.status-pause:hover {
  background: #fef3c7 !important;
  border-color: #fcd34d !important;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.15) !important;
}

.btn-active-status.status-publish {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1.5px solid #a7f3d0 !important;
}

.btn-active-status.status-publish:hover {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.15) !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 1180px) {
  .active-exam-card-inner {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .active-exam-actions-col {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }
  .btn-active-edit {
    width: auto !important;
    flex: 1 !important;
  }
  .active-exam-actions-subrow {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .dashboard-active-exam-card {
    flex-direction: column;
  }
  .dashboard-active-exam-card .active-exam-accent {
    width: 100%;
    height: 4px;
  }
  .active-exam-card-inner {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }
  .active-exam-actions-col {
    flex-direction: column;
  }
}

/* Empty State Card */
.empty-state-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px dashed #cbd5e1;
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.empty-state-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.empty-state-card p {
  color: #64748b;
  font-size: 0.88rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ==========================================================================
   METRIC CARDS (DASHBOARD & ANALYTICS) - 5-COLUMN SINGLE ROW DESIGN
   ========================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.metric-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(79, 70, 229, 0.12), 0 3px 8px -2px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.metric-card:hover .metric-icon {
  transform: scale(1.08);
}

.bg-blue .metric-icon { background: #eff6ff; color: #2563eb; }
.bg-indigo .metric-icon { background: #eef2ff; color: #4f46e5; }
.bg-green .metric-icon { background: #ecfdf5; color: #059669; }
.bg-purple .metric-icon { background: #fdf4ff; color: #9333ea; }
.bg-amber .metric-icon { background: #fffbeb; color: #d97706; }

.metric-data {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.metric-value {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-label {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 3px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Results Summary 4-card grid */
#admin-results-summary-cards.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ==========================================================================
   DASHBOARD ACTIVE EXAMS SECTION & LIVE WIDGETS
   ========================================================================== */
.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.dashboard-active-exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.dashboard-active-exam-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.dashboard-active-exam-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.active-exam-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

/* Legacy active-exam rules removed in favor of modern 2x2 grid system above */

/* ==========================================================================
   LMS CARD & TABLE CONTAINER
   ========================================================================== */
.panel-card, .lms-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-card);
  overflow: visible;
  margin-top: 20px;
}

.panel-header, .lms-card-header {
  padding: 18px 24px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-header h3, .lms-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.lms-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lms-header-controls .lms-search-pill {
  width: 240px;
  min-width: 180px;
  flex-shrink: 0;
}

.lms-header-controls .custom-dropdown-container {
  width: 220px;
  min-width: 180px;
  flex-shrink: 0;
}

.lms-search-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 200px;
}

.lms-search-pill i {
  position: absolute;
  left: 14px;
  font-size: 0.85rem;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.lms-search-pill input {
  width: 100%;
  height: 40px;
  padding: 8px 14px 8px 38px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.lms-search-pill:hover input {
  border-color: #cbd5e1;
  background: #ffffff;
}

.lms-search-pill input:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.14);
}

.lms-search-pill:focus-within i {
  color: #6366f1;
}

.btn-clear-all-modern {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1.5px solid #fecaca !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.05) !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.btn-clear-all-modern:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28) !important;
  transform: translateY(-1px) !important;
}

/* MODERN FILTER PILL SELECT WRAPPER */
.filter-pill-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  height: 40px;
}

.filter-pill-select .filter-pill-icon {
  position: absolute;
  left: 12px;
  font-size: 0.8rem;
  color: #6366f1;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.2s ease, color 0.2s ease;
}

.filter-pill-select:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.filter-pill-select:hover .filter-pill-icon {
  color: #4f46e5;
  transform: scale(1.1);
}

.filter-pill-select:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.15);
  background: #ffffff;
}

.filter-pill-select:focus-within .filter-pill-icon {
  color: #4f46e5;
}

.filter-pill-select select.form-select-modern,
.filter-pill-select select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 8px 34px 8px 32px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  border-radius: 12px !important;
  height: 100% !important;
  width: 100% !important;
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236366f1' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 11px center !important;
  background-size: 13px 13px !important;
}

/* STANDALONE MODERN FORM SELECT */
select.form-select-modern,
.form-select-modern {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236366f1' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 13px 13px !important;
  padding: 9px 36px 9px 14px !important;
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  height: 40px !important;
  line-height: 1.2 !important;
}

select.form-select-modern:hover,
.form-select-modern:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-1px);
}

select.form-select-modern:focus,
.form-select-modern:focus {
  background-color: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.15) !important;
}

.form-select-modern option {
  background: #ffffff;
  color: #1e293b;
  font-weight: 500;
  padding: 10px 14px;
}

/* DATA TABLES & TABLE ENHANCEMENTS */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid #edf2f7;
  background: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  background: #f8fafc;
  padding: 13px 16px;
  font-weight: 700;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1.5px solid #edf2f7;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
  font-size: 0.86rem;
}

.data-table tbody tr {
  transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
  background-color: rgba(248, 250, 252, 0.9);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Table Badge & Typography Helpers */
.badge-username {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  color: #4f46e5;
  font-weight: 700;
  background: #eef2ff;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e0e7ff;
  font-size: 0.82rem;
  display: inline-block;
  letter-spacing: 0.2px;
}

.code-badge {
  background: #f1f5f9;
  color: #334155;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.81rem;
  border: 1px solid #e2e8f0;
  font-family: inherit;
}

/* ==========================================================================
   STUDENT DIRECTORY ULTRA-MODERN TABLE STYLES
   ========================================================================== */
.lms-header-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eff6ff;
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
  flex-shrink: 0;
}

.student-info-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-avatar-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  border: 1.5px solid #dbeafe;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
  flex-shrink: 0;
}

.student-details-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.student-name-text {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.student-handle-text {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.student-roll-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 10px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  font-size: 0.84rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.student-adm-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 10px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 800;
  font-size: 0.84rem;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.student-campus-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  color: #1e40af;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  max-width: 260px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.student-campus-tag i {
  color: #3b82f6;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.student-campus-tag span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-exams-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
}

.student-exams-badge.active-exams {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.student-exams-badge.zero-exams {
  background: #f8fafc;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

.student-avg-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
}

.student-avg-pill.pass {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.student-avg-pill.fail {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.student-avg-pill.zero {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.student-avg-pill.na {
  background: #f8fafc;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

.btn-outline-danger {
  background: #fff5f5 !important;
  color: #dc2626 !important;
  border: 1.5px solid #fecaca !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.btn-outline-danger:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   COLLEGE ADMINISTRATOR LOGINS ULTRA-MODERN TABLE STYLES
   ========================================================================== */
.college-logins-info-banner {
  background: linear-gradient(135deg, #f0f7ff 0%, #eff6ff 100%);
  border: 1.5px solid #dbeafe;
  padding: 14px 20px;
  margin: 16px 20px;
  border-radius: 16px;
  font-size: 0.86rem;
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.04);
}

.college-logins-info-banner .banner-text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.college-logins-info-banner .banner-info-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #dbeafe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.badge-formula-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 0.82rem;
  background: #ffffff;
  color: #1d4ed8;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
  display: inline-block;
}

.btn-copy-all-logins {
  background: #ffffff !important;
  color: #2563eb !important;
  border: 1.5px solid #bfdbfe !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  padding: 7px 14px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.btn-copy-all-logins:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
  transform: translateY(-1px) !important;
}

.college-code-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 10px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 8px;
  border: 1px solid #c7d2fe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.5px;
}

.student-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.student-count-pill i {
  color: #3b82f6;
  font-size: 0.78rem;
}

.credential-field-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.credential-field-box:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.credential-field-box i.field-icon {
  font-size: 0.8rem;
  color: #6366f1;
}

.credential-field-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.credential-field-box.username-field code {
  color: #4f46e5;
}

.credential-field-box.password-field code.text-visible {
  color: #059669;
  font-weight: 800;
}

.credential-field-box.password-field code.text-masked {
  color: #94a3b8;
  letter-spacing: 1px;
}

.cred-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-cred-action {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.btn-cred-action:hover {
  transform: translateY(-1px);
}

.btn-cred-action.btn-reveal:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.btn-cred-action.btn-edit {
  color: #d97706;
  background: #fffbeb;
  border-color: #fde68a;
}

.btn-cred-action.btn-edit:hover {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
}

.btn-cred-action.btn-copy {
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.btn-cred-action.btn-copy:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.college-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.college-status-pill.status-active {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.college-status-pill.status-active .pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulseStatus 2s infinite;
}

.college-status-pill.status-active:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  transform: translateY(-1px);
}

.college-status-pill.status-inactive {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.college-status-pill.status-inactive:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

/* Modern Action Buttons */
.table-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  padding: 0;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.action-btn.view:hover {
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.action-btn.edit:hover {
  color: #4f46e5;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.action-btn.key:hover {
  color: #d97706;
  background: #fffbeb;
  border-color: #fde68a;
}

.action-btn.deactivate:hover {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.action-btn.activate:hover {
  color: #059669;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

/* Score Progress Bar (Student Cards) */
.exam-progress-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 12px;
  margin-bottom: 6px;
}

.progress-bar-bg {
  height: 7px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
}

.progress-bar-fill.fill-pass {
  background: linear-gradient(90deg, #10b981, #059669);
}

.progress-bar-fill.fill-fail {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.progress-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #475569;
}

.score-pct-tag {
  font-weight: 800;
  font-size: 0.86rem;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-input-modern {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background-color: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-input-modern:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

/* ==========================================================================
   MODAL WINDOWS & BACKDROP
   ========================================================================== */
/* ==========================================================================
   MODAL WINDOWS & BACKDROP SYSTEM (ULTRA-MODERN SAAS)
   ========================================================================== */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  animation: modalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.95);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: slideUpModal 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content-wide {
  max-width: 880px !important;
  width: 95vw !important;
  max-height: 90vh !important;
  height: auto !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.modal-header {
  padding: 20px 26px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.modal-body {
  padding: 24px 26px;
}

.modal-footer {
  padding: 16px 26px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

/* Modern Header */
.modal-header-modern {
  padding: 22px 28px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.modal-header-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 2px 0;
}

.modal-header-text p {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
}

.modal-close-modern, .btn-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close-modern:hover, .btn-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}

/* Scrollable Body */
.modal-body-scrollable {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(90vh - 160px);
}

/* Section Cards inside Modal */
.modern-section-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.modern-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.modern-section-title i {
  color: var(--primary);
}

/* Multi-Class Checkboxes Grid */
.multi-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding: 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
}

.class-checkbox-chip {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 7px 10px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 0.81rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  margin: 0 !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}

.class-checkbox-chip input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  accent-color: var(--primary) !important;
  margin: 3px 0 0 0 !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

.class-checkbox-chip:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
  transform: translateY(-1px);
}

.class-checkbox-chip.selected {
  background: #f5f3ff !important;
  border-color: #a5b4fc !important;
  color: #3730a3 !important;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.08) !important;
}

/* ==========================================================================
   ATTENDED COLLEGE STYLES (GREEN CHIP & REPORT CONTROLS)
   ========================================================================== */
.class-checkbox-chip.attended-college {
  background: #f0fdf4 !important;
  border: 1.5px solid #86efac !important;
  color: #065f46 !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08) !important;
}

.class-checkbox-chip.attended-college:hover {
  background: #dcfce7 !important;
  border-color: #4ade80 !important;
  transform: translateY(-1px);
}

.class-checkbox-chip.attended-college.selected {
  background: #ecfdf5 !important;
  border: 1.5px solid #059669 !important;
  color: #064e3b !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15) !important;
}

.class-checkbox-chip.attended-college:not(.selected) {
  background: #f0fdf4 !important;
  border: 1.5px dashed #6ee7b7 !important;
  color: #047857 !important;
  opacity: 0.95;
}

.class-checkbox-chip.attended-college input[type="checkbox"] {
  accent-color: #059669 !important;
}

/* Chip Content Layout */
.chip-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.chip-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.chip-college-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.truncate-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-att-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.67rem;
  font-weight: 700;
  background: #059669;
  color: #ffffff;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.chip-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.chip-mini-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  flex-wrap: nowrap;
  overflow: hidden;
  min-width: 0;
}

.mini-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.67rem;
  line-height: 1.3;
  white-space: nowrap;
  font-weight: 600;
}
.mini-stat.stat-att { background: #dcfce7; color: #166534; }
.mini-stat.stat-abs { background: #fee2e2; color: #991b1b; }
.mini-stat.stat-not { background: #fef3c7; color: #92400e; }
.mini-stat.stat-all-done { background: #dbeafe; color: #1e40af; }

.btn-chip-report-minimal {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #ffffff;
  color: #059669;
  border: 1px solid #6ee7b7;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-chip-report-minimal:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  transform: scale(1.02);
}

/* Column Grids */
.grid-4-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Modern Toggle Card */
.modern-toggle-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  transition: var(--transition-fast) !important;
}

.modern-toggle-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: var(--shadow-xs) !important;
}

.modern-toggle-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modern-toggle-info h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.modern-toggle-info p {
  font-size: 0.76rem;
  color: #64748b;
  margin: 0;
}

.toggle-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Modern Dropzones */
.modern-dropzone {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 16px;
  transition: var(--transition-fast);
}

.modern-dropzone:hover {
  border-color: var(--primary);
  background: #f5f7ff;
}

.modern-dropzone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.modern-dropzone-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Modern Footer */
.modal-footer-modern {
  padding: 16px 28px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .app-layout {
    padding: 16px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    height: 100vh;
    border-radius: 0;
    z-index: 1000;
    box-shadow: var(--shadow-xl);
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
  }

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 640px) {
  .app-layout {
    padding: 10px;
  }

  .top-header {
    padding: 10px 14px;
    margin-bottom: 16px;
  }

  .header-time {
    display: none;
  }

  .hero-banner {
    padding: 20px 16px;
  }

  .hero-banner h2 {
    font-size: 1.3rem;
  }

  .hero-watermark {
    display: none;
  }

  .exams-toolbar-card {
    flex-direction: column;
    align-items: stretch;
  }

  .exam-status-filters {
    width: 100%;
    overflow-x: auto;
  }

  .toolbar-search-wrap {
    max-width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ==========================================================================
   FULLSCREEN CBT EXAM INTERFACE & PROCTORING STYLES
   ========================================================================== */
.exam-fullscreen-wrapper {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  background: #0f172a !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  user-select: none;
  -webkit-user-select: none;
}

.exam-fullscreen-wrapper.hidden {
  display: none !important;
}

.exam-modal-window {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #f8fafc !important;
}

.exam-header {
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.exam-title-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exam-title-badge i {
  font-size: 22px;
  color: var(--primary);
}

.exam-title-badge h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
}

.sub-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.secure-mode-pill {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25);
}

.exam-timer-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  color: #b45309;
}

.exam-timer-box i {
  font-size: 18px;
}

.timer-display {
  display: flex;
  flex-direction: column;
}

.timer-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-time {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: monospace;
}

.exam-body-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 240px;
  overflow: hidden;
}

.question-main-panel {
  padding: 20px 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
}

.batch-header-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 18px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.batch-info-pill {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.batch-info-pill i {
  color: var(--primary);
}

.batch-page-indicator {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  background: #ffffff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
}

.batch-questions-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 0;
}

.batch-question-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.batch-question-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.batch-q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.q-number-badge {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.q-marks-pill {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
}

.batch-question-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.55;
  margin-bottom: 18px;
}

.options-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.option-card {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  background: #ffffff;
  user-select: none;
}

.option-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.option-card.selected {
  border-color: var(--primary) !important;
  background: #eef2ff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.16);
}

.option-letter-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-right: 12px;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.option-card.selected .option-letter-badge {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.option-text-val {
  font-size: 0.94rem;
  font-weight: 600;
  color: #1e293b;
}

.question-palette-panel {
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  width: 240px;
}

.question-palette-panel h4 {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.palette-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
}

.palette-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 6px;
  justify-content: center;
  align-content: start;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 2px;
  margin-bottom: 14px;
}

.palette-btn, .pal-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.palette-btn:hover, .pal-btn:hover {
  border-color: #6366f1;
  background: #e0e7ff;
  color: #4338ca;
  transform: scale(1.06);
}

.palette-btn.answered, .pal-btn.answered {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  font-weight: 800;
}

.palette-btn.current, .pal-btn.current {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.35);
}

.palette-summary {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.palette-summary .summary-row {
  display: flex;
  justify-content: space-between;
  color: #64748b;
}

.palette-summary .summary-row strong {
  font-weight: 800;
  color: #0f172a;
}

/* ==========================================================================
   ULTRA-MODERN SAAS MODAL SYSTEM
   ========================================================================== */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  padding: 16px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  animation: modalBackdropFadeIn 0.2s ease-out;
}

@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal-content {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

.modal-content.modal-content-wide,
.modal-content.max-w-xl,
.modal-content.max-w-lg,
#modal-view-result .modal-content,
#modal-import-students-csv .modal-content,
#modal-import-questions-csv .modal-content {
  max-width: 840px !important;
  width: 95vw !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}

.modal-header,
.modal-header-modern {
  flex-shrink: 0 !important;
}

.modal-footer,
.modal-footer-modern {
  flex-shrink: 0 !important;
}

.modal-body,
.modal-body-scrollable,
#modal-result-content {
  overflow-y: auto !important;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(90vh - 130px);
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar,
.modal-body-scrollable::-webkit-scrollbar,
#modal-result-content::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track,
.modal-body-scrollable::-webkit-scrollbar-track,
#modal-result-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}

.modal-body::-webkit-scrollbar-thumb,
.modal-body-scrollable::-webkit-scrollbar-thumb,
#modal-result-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
  border: 2px solid #f1f5f9;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.modal-body-scrollable::-webkit-scrollbar-thumb:hover,
#modal-result-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.modal-header-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.modal-header-text h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px 0;
  letter-spacing: -0.02em;
}

.modal-header-text p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
}

.modal-close-modern {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.modal-close-modern:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: scale(1.05);
}

.modal-body-scrollable {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
}

.modern-section-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.modern-section-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.modal-footer-modern {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.form-input-modern, .form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.form-input-modern:focus, .form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-input-modern::placeholder, .form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.grid-2-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grid-4-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.multi-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.class-checkbox-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

.class-checkbox-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.class-checkbox-chip.selected {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

/* ==========================================================================
   MODERN STUDENT PORTAL & EDUCATION UI
   ========================================================================== */

/* 1. STUDENT HERO BANNER */
.student-hero-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e40af 100%);
  border-radius: 20px;
  padding: 28px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 25px -5px rgba(30, 27, 75, 0.25);
  position: relative;
  overflow: hidden;
}

.student-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.student-hero-content {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.student-hero-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.student-hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.student-hero-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid #1e1b4b;
}

.student-hero-text {
  display: flex;
  flex-direction: column;
}

.student-hero-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.student-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.student-hero-badge.college {
  background: rgba(99, 102, 241, 0.35);
  border-color: rgba(165, 180, 252, 0.4);
  color: #e0e7ff;
}

.student-hero-text h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.student-hero-text p {
  font-size: 0.86rem;
  color: #cbd5e1;
  margin: 0;
  max-width: 580px;
  line-height: 1.45;
}

.student-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

/* 2. STUDENT METRICS GRID */
.student-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.student-metric-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.student-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.student-metric-card .metric-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.student-metric-card .metric-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.student-metric-card .metric-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.student-metric-card .metric-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.student-metric-card .metric-chip {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.student-metric-card .metric-chip.blue { background: #eff6ff; color: #2563eb; }
.student-metric-card .metric-chip.emerald { background: #ecfdf5; color: #059669; }
.student-metric-card .metric-chip.purple { background: #f3e8ff; color: #7e22ce; }
.student-metric-card .metric-chip.amber { background: #fffbeb; color: #d97706; }

.student-metric-card .metric-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.student-metric-card .metric-subtext {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
}

.student-mini-progress {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.mini-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. ULTRA-MODERN HORIZONTAL STUDENT EXAM CARDS */
.student-horizontal-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.student-exam-card {
  background: #ffffff;
  border: 1.5px solid #e8edf5;
  border-radius: 20px;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: row;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.student-exam-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -6px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

/* Card Accent Bars (Top Line Gradient & Flush Left Stripe Connected at Corner) */
.student-exam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
  z-index: 5;
}

.student-exam-card-accent {
  width: 5px;
  height: 100%;
  margin: 0;
  border-radius: 0;
  flex-shrink: 0;
  background: linear-gradient(180deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
  z-index: 4;
}

.student-exam-card.is-passed::before {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}
.student-exam-card.is-passed .student-exam-card-accent {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.student-exam-card.is-failed::before {
  background: linear-gradient(90deg, #ef4444 0%, #f43f5e 100%);
}
.student-exam-card.is-failed .student-exam-card-accent {
  background: linear-gradient(180deg, #ef4444 0%, #f43f5e 100%);
}

.student-exam-card.is-pending::before {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}
.student-exam-card.is-pending .student-exam-card-accent {
  background: linear-gradient(180deg, #059669 0%, #10b981 100%);
}

/* 3-Column Horizontal Card Inner */
.student-exam-card-inner {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(280px, 1.05fr) 260px;
  gap: 24px;
  padding: 22px 26px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .student-exam-card-inner {
    grid-template-columns: 1fr 1fr;
  }
  .student-exam-action-col {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .student-exam-card {
    flex-direction: column;
  }
  .student-exam-card-accent {
    width: 100%;
    height: 3px;
  }
  .student-exam-card-inner {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }
  .student-exam-action-col {
    grid-column: span 1;
  }
}

/* Column 1: Main Details */
.student-exam-main-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.student-exam-top-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.student-exam-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.student-exam-logo-box {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.student-exam-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.student-campus-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f5ff;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid #dbeafe;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.05);
}

.student-campus-badge i {
  font-size: 0.78rem;
  color: #3b82f6;
  flex-shrink: 0;
}

.student-campus-badge .campus-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modern Status Badges */
.student-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.student-status-badge.badge-ready {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  box-shadow: 0 1px 3px rgba(4, 120, 87, 0.08);
}

.student-status-badge.badge-ready .status-pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.student-status-badge.badge-completed {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.student-status-badge.badge-completed.passed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.student-status-badge.badge-completed.failed {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.student-status-badge.badge-pending {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.student-exam-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.student-exam-card-desc {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Column 2: 2x2 Clean Modern Exam Meta Grid */
.student-exam-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 0;
}

.student-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid #edf2f7;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
  min-width: 0;
}

.student-meta-item .meta-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.student-meta-item .meta-icon.icon-blue {
  background: #eff6ff;
  color: #2563eb;
}

.student-meta-item .meta-icon.icon-purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.student-meta-item .meta-icon.icon-amber {
  background: #fffbeb;
  color: #d97706;
}

.student-meta-item .meta-icon.icon-emerald {
  background: #ecfdf5;
  color: #059669;
}

.student-meta-item .meta-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.student-meta-item .meta-text .meta-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.1;
  margin-bottom: 2px;
}

.student-meta-item .meta-text .meta-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modern Score & Evaluation Box */
.student-score-progress-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.student-score-progress-box.passed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.student-score-progress-box.failed {
  background: #fef2f2;
  border-color: #fecaca;
}

.student-score-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.student-score-numbers {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.student-score-numbers .score-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.student-score-numbers .score-number {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.student-score-numbers .score-total {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

.student-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}

.student-score-badge.badge-pass {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.student-score-badge.badge-fail {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.student-score-progress-box .progress-bar-bg {
  height: 7px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0;
}

.student-score-progress-box .progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.student-score-progress-box .progress-bar-fill.fill-pass {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.student-score-progress-box .progress-bar-fill.fill-fail {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Column 3: Action Buttons */
.student-exam-action-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.btn-start-assessment {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 13px 20px !important;
  border-radius: 12px !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.32) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.btn-start-assessment:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45) !important;
}

.btn-view-scorecard {
  background: #f0f5ff !important;
  color: #3b82f6 !important;
  border: 1.5px solid #c7d2fe !important;
  padding: 11px 18px !important;
  border-radius: 12px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.btn-view-scorecard:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3) !important;
  transform: translateY(-2px);
}

.btn-attended-pending {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border: 1.5px solid #bbf7d0 !important;
  padding: 11px 18px !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  opacity: 0.95 !important;
  cursor: not-allowed !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.btn-download-pdf-modern {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #2563eb !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  padding: 9px 14px !important;
  font-size: 0.84rem !important;
  border-radius: 11px !important;
  transition: all 0.2s ease !important;
}

.btn-download-pdf-modern:hover {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
  transform: translateY(-1px);
}

/* 4. STUDENT PAGE HEADER CARDS */
.student-page-header-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.student-page-header-card .page-header-text h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.student-page-header-card .page-header-text p {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
}

.student-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* 5. STUDENT PROFILE 2-COLUMN LAYOUT */
.student-profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .student-profile-layout {
    grid-template-columns: 1fr;
  }
}

.student-id-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.student-id-card-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  padding: 28px 20px 22px 20px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.student-id-avatar-wrap {
  position: relative;
  margin-bottom: 12px;
}

.student-id-avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  border: 3px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.student-id-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  border: 3px solid #1e1b4b;
}

.student-id-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 2px 0;
  color: #ffffff;
}

.student-id-username {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-bottom: 10px;
  font-family: monospace;
}

.student-id-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #e0e7ff;
}

.student-id-meta-list {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.student-id-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.student-id-meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.student-id-meta-item .meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.student-id-meta-item .meta-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.modern-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.field-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eff6ff;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.field-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 6px;
  font-weight: 500;
}

.student-profile-edit-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-body {
  padding: 24px 28px;
}

.panel-body.p-4 { padding: 16px 20px; }
.panel-body.p-5 { padding: 28px 32px; }
.panel-body.p-6 { padding: 36px 40px; }

.student-profile-edit-card .panel-body {
  padding: 28px 32px;
}

/* ==========================================================================
   ARABIC LANGUAGE, UNICODE & RTL SUPPORT SYSTEM
   ========================================================================== */
[dir="rtl"],
.rtl-content,
.arabic-text {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  line-height: 1.7;
  unicode-bidi: isolate;
}

[dir="ltr"],
.ltr-content {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

.bidi-text {
  unicode-bidi: plaintext;
}

/* Question Statement Styling in Tables & Views */
.table-q-statement {
  font-size: 0.95rem;
  line-height: 1.6;
}

.table-q-statement[dir="rtl"],
.table-q-statement.rtl-content {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  font-size: 1.02rem;
  line-height: 1.75;
}

.table-q-options[dir="rtl"],
.table-q-options.rtl-content {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
}

/* Batch Question Exam Taker Styling */
.batch-question-text[dir="rtl"],
.batch-question-text.rtl-content {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  font-size: 1.18rem;
  line-height: 1.8;
  font-weight: 700;
}

/* Option Cards in Student Exam */
.option-card[dir="rtl"],
.option-card.rtl-content {
  direction: rtl;
  text-align: right;
}

.option-card[dir="rtl"] .option-letter-badge,
.option-card.rtl-content .option-letter-badge {
  margin-right: 0;
  margin-left: 14px;
}

.option-card[dir="rtl"] .option-text-val,
.option-card.rtl-content .option-text-val {
  text-align: right;
  flex: 1;
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ==========================================================================
   DETAILED SCORECARD & QUESTION BREAKDOWN STYLES
   ========================================================================== */
.q-review-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 14px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.q-review-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* WRONG ANSWER: High-contrast RED MARKED BORDER & tint */
.q-review-item.wrong {
  border: 2px solid #ef4444 !important;
  border-left: 6px solid #dc2626 !important;
  background: #fff8f8 !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.12) !important;
}

.q-review-item.wrong[dir="rtl"],
.q-review-item.wrong.rtl-content {
  border-left: 2px solid #ef4444 !important;
  border-right: 6px solid #dc2626 !important;
}

/* CORRECT ANSWER: Green marked border & tint */
.q-review-item.correct {
  border: 1.5px solid #86efac !important;
  border-left: 6px solid #16a34a !important;
  background: #f0fdf4 !important;
}

.q-review-item.correct[dir="rtl"],
.q-review-item.correct.rtl-content {
  border-left: 1.5px solid #86efac !important;
  border-right: 6px solid #16a34a !important;
}

/* UNANSWERED: Amber marked border & tint */
.q-review-item.unans {
  border: 1.5px solid #fde68a !important;
  border-left: 6px solid #d97706 !important;
  background: #fffbeb !important;
}

.q-review-item.unans[dir="rtl"],
.q-review-item.unans.rtl-content {
  border-left: 1.5px solid #fde68a !important;
  border-right: 6px solid #d97706 !important;
}

.q-review-item .q-review-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.6;
}

/* Detailed Scorecard Breakdown RTL */
.q-review-item[dir="rtl"],
.q-review-item.rtl-content {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
}

.q-review-item[dir="rtl"] .q-review-title,
.q-review-item.rtl-content .q-review-title {
  direction: rtl;
  text-align: right;
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Input Fields with Auto Direction */
input[dir="auto"],
textarea[dir="auto"] {
  font-family: var(--font-main);
}

input[dir="auto"]:focus,
textarea[dir="auto"]:focus {
  line-height: 1.6;
}

/* ==========================================================================
   INSTITUTIONAL BRANDING & UNIVERSITY LOGO INTEGRATION
   ========================================================================== */

/* 1. Student Hero Emblem & ID Card Branding */
.student-hero-emblem {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  opacity: 0.16;
  pointer-events: none;
  background: #ffffff;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.student-hero-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.student-id-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.id-card-mini-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 50%;
  padding: 2px;
}

/* 2. Exam Cards & Exam Header Logo */
.exam-header-brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exam-card-mini-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 6px;
  padding: 2px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.exam-header-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 12px;
  padding: 4px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.modal-prestart-logo-box {
  width: 72px;
  height: 72px;
  background: #ffffff;
  border-radius: 20px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.18);
  border: 1.5px solid #e0e7ff;
}

.modal-prestart-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

/* 3. Official University Scorecard & Certificate */
.scorecard-institutional-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.scorecard-brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.scorecard-uni-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.scorecard-title-group {
  flex: 1;
}

.scorecard-arabic-name {
  font-family: 'Noto Naskh Arabic', 'Amiri', 'Noto Sans Arabic', serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: #1e3a8a;
  direction: rtl;
  line-height: 1.4;
  margin-bottom: 2px;
}

.scorecard-eng-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.25;
}

.scorecard-dept-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #4f46e5;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 3px;
}

.scorecard-student-meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.82rem;
  color: #334155;
}

.meta-strip-item strong {
  color: #0f172a;
}

.scorecard-cert-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1.5px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.scorecard-seal-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scorecard-seal-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.scorecard-signature-box {
  text-align: center;
}

.signature-line {
  width: 170px;
  border-bottom: 1.5px solid #0f172a;
  margin-bottom: 6px;
}

.signature-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 4. Global Portal Footer */
.app-global-footer {
  margin-top: 36px;
  padding: 22px 24px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-crest-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.footer-text-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-univ-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.2px;
}

.footer-sub-text {
  font-size: 0.78rem;
  color: #64748b;
}

.footer-copy {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* ==========================================================================
   5. COMPREHENSIVE RESPONSIVE SYSTEM (DESKTOP AS SOURCE OF TRUTH)
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. LARGE DESKTOP (≥ 1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .app-layout {
    max-width: 1560px;
    margin: 0 auto;
    padding: 24px 32px 36px 32px;
    gap: 28px;
  }

  .sidebar {
    width: 275px;
  }

  .metrics-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 22px;
  }
}

/* --------------------------------------------------------------------------
   B. STANDARD DESKTOP (1200px – 1439px)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) and (max-width: 1439px) {
  .app-layout {
    max-width: 100%;
    padding: 20px 24px 30px 24px;
    gap: 22px;
  }

  .sidebar {
    width: 255px;
  }

  .metrics-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .metric-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .metric-icon {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .metric-value {
    font-size: 1.5rem;
  }

  .metric-label {
    font-size: 0.74rem;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
  }
}

/* --------------------------------------------------------------------------
   C. LAPTOP / SMALL DESKTOP (992px – 1199px)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199px) {
  .app-layout {
    max-width: 100%;
    padding: 16px 18px 24px 18px;
    gap: 18px;
  }

  .sidebar {
    width: 235px;
  }

  .sidebar-brand-name {
    font-size: 0.84rem;
  }

  .sidebar-brand-sub {
    font-size: 0.68rem;
  }

  .nav-item {
    padding: 9px 12px;
    font-size: 0.85rem;
    gap: 10px;
  }

  .metrics-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-card {
    padding: 12px 12px;
    gap: 8px;
  }

  .metric-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
    border-radius: 10px;
  }

  .metric-value {
    font-size: 1.35rem;
  }

  .metric-label {
    font-size: 0.68rem;
  }

  .hero-banner {
    padding: 20px 24px;
  }

  .hero-banner h2 {
    font-size: 1.35rem;
  }

  .hero-banner p {
    font-size: 0.85rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   D. TABLET (768px – 991px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991px) {
  .app-layout {
    flex-direction: column;
    padding: 16px 18px 24px 18px;
    gap: 16px;
    max-width: 100%;
  }

  .mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    z-index: 1050 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: var(--shadow-xl) !important;
  }

  .sidebar.show {
    transform: translateX(0) !important;
  }

  .sidebar-overlay.show {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .top-header {
    margin-bottom: 16px;
    padding: 12px 18px;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .metric-card {
    padding: 14px 16px !important;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .exams-toolbar-card {
    flex-wrap: wrap;
    gap: 12px;
  }

  .toolbar-search-wrap {
    min-width: 200px;
    max-width: 100%;
    flex: 1;
  }

  .grid-4-cols {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .student-exam-meta-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .exam-body-grid {
    grid-template-columns: 1fr 200px !important;
  }
}

/* --------------------------------------------------------------------------
   E. MOBILE (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .app-layout {
    flex-direction: column;
    padding: 10px 12px 20px 12px;
    gap: 12px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 275px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    z-index: 1050 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  }

  .sidebar.show {
    transform: translateX(0) !important;
  }

  .sidebar-overlay.show {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .top-header {
    padding: 10px 14px;
    margin-bottom: 12px;
    gap: 8px;
    border-radius: 14px;
  }

  .header-left {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .header-brand-badge {
    padding: 3px 8px 3px 4px;
    gap: 6px;
    max-width: 160px;
  }

  .header-dhiu-logo {
    width: 26px;
    height: 26px;
  }

  .header-univ-name {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-portal-tag {
    font-size: 0.58rem;
  }

  .page-title {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;
  }

  .header-right {
    gap: 8px;
  }

  .header-time {
    padding: 4px 10px;
    font-size: 0.72rem;
    gap: 5px;
  }

  .header-time span {
    font-size: 0.72rem;
  }

  .btn-logout-modern {
    padding: 5px 12px;
    font-size: 0.75rem;
    gap: 5px;
  }

  /* Hero Banner */
  .hero-banner {
    padding: 16px 18px;
    border-radius: 16px;
    margin-bottom: 14px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .hero-text-col {
    max-width: 100%;
  }

  .hero-banner h2 {
    font-size: 1.25rem;
  }

  .hero-banner p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .hero-emblem-wrap {
    width: 56px;
    height: 56px;
    padding: 6px;
    border-radius: 14px;
    margin: 0 auto;
  }

  .hero-watermark {
    display: none;
  }

  /* Metrics Grid */
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .metric-card {
    padding: 12px 12px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }

  .metric-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
  }

  .metric-value {
    font-size: 1.25rem !important;
  }

  .metric-label {
    font-size: 0.68rem !important;
  }

  /* Toolbar */
  .exams-toolbar-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .exams-toolbar-left {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .exam-status-filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 3px;
    border-radius: 10px;
  }

  .status-tab {
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  .toolbar-search-wrap {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .exams-toolbar-right {
    width: 100%;
  }

  .btn-create-exam {
    width: 100%;
    justify-content: center;
  }

  /* Cards Grid */
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .modern-exam-card {
    border-radius: 16px;
  }

  .exam-card-inner {
    padding: 16px;
  }

  /* Panel Header */
  .panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 16px;
  }

  .panel-header-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .panel-body {
    padding: 14px 16px;
  }

  /* Tables */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 620px;
  }

  .data-table th, .data-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  /* Forms & Modal Grids */
  .grid-2-cols,
  .grid-3-cols,
  .grid-4-cols {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .modal-overlay {
    padding: 10px;
    align-items: flex-end;
  }

  .modal-content {
    border-radius: 20px 20px 14px 14px !important;
    max-height: 92vh !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .modal-header-modern {
    padding: 16px 18px;
  }

  .modal-body-scrollable {
    padding: 16px 18px;
    max-height: calc(92vh - 140px);
  }

  .modal-footer-modern {
    padding: 12px 18px;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .modal-footer-modern .btn {
    width: 100%;
    justify-content: center;
  }

  /* Student Dashboard */
  .student-hero-banner {
    padding: 18px 16px;
    border-radius: 16px;
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .student-hero-text h2 {
    font-size: 1.25rem;
  }

  .student-hero-text p {
    font-size: 0.8rem;
  }

  .student-hero-emblem {
    display: none;
  }

  .student-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .student-metric-card {
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  .student-metric-card .metric-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .student-metric-card .metric-value {
    font-size: 1.25rem;
  }

  .student-exam-meta-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding: 8px 10px !important;
  }

  /* Exam Taker Screen */
  .exam-header {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .exam-title-badge h3 {
    font-size: 0.95rem;
  }

  .exam-timer-box {
    padding: 4px 12px;
  }

  .exam-timer-box i {
    font-size: 15px;
  }

  .timer-time {
    font-size: 0.95rem;
  }

  .exam-body-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .question-main-panel {
    padding: 14px 16px !important;
  }

  .batch-question-card {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .batch-question-text {
    font-size: 0.96rem !important;
  }

  .question-palette-panel {
    width: 100% !important;
    border-left: none !important;
    border-top: 1.5px solid #e2e8f0 !important;
    padding: 14px !important;
    max-height: 220px !important;
  }

  .palette-grid {
    grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)) !important;
    max-height: 140px !important;
  }

  .exam-footer-bar {
    padding: 10px 14px;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .exam-footer-bar .btn {
    width: 100%;
    justify-content: center;
  }

  /* Login Screen Mobile */
  .login-wrapper {
    padding: 20px 12px;
  }

  .login-card {
    padding: 24px 18px !important;
    border-radius: 18px !important;
  }

  .brand-logo-img-box {
    width: 68px !important;
    height: 68px !important;
    margin-bottom: 10px !important;
  }

  .brand-university-arabic {
    font-size: 1rem !important;
  }

  .brand-university-title {
    font-size: 0.72rem !important;
  }

  .brand-header h2 {
    font-size: 1.15rem !important;
  }

  .brand-subtitle {
    font-size: 0.72rem !important;
  }

  .role-selector {
    margin-bottom: 16px !important;
  }

  .role-tab {
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
  }

  /* Scorecard & Footer */
  .scorecard-brand-row {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .scorecard-arabic-name {
    text-align: center;
    direction: ltr;
  }

  .scorecard-uni-logo {
    width: 58px;
    height: 58px;
  }

  .scorecard-cert-footer {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .signature-line {
    width: 140px;
  }

  .app-global-footer {
    padding: 16px 14px;
    margin-top: 24px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   F. EXTRA NARROW MOBILE (< 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .metric-card {
    padding: 10px 10px !important;
    gap: 8px !important;
  }

  .metric-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }

  .metric-value {
    font-size: 1.15rem !important;
  }

  .metric-label {
    font-size: 0.65rem !important;
  }

  .student-metrics-grid {
    grid-template-columns: 1fr !important;
  }

  .student-exam-meta-grid {
    grid-template-columns: 1fr !important;
  }
}

/* College Admin Badges & Portal Styles */
.badge-role-college {
  background: #064e3b;
  color: #a7f3d0;
  border: 1px solid #059669;
}

.badge-status-active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
}

.badge-status-inactive {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
}

.download-box-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-box-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08) !important;
}

/* ==========================================================================
   SUPPORT & CONTACT TICKET SYSTEM STYLES
   ========================================================================== */

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  text-transform: capitalize;
}

.badge-status.open {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge-status.in_progress {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.badge-status.waiting_for_student {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-status.resolved {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.badge-status.closed {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Priority Badges */
.badge-prio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-prio.urgent {
  background: #fee2e2;
  color: #dc2626;
  border: 1.5px solid #ef4444;
  animation: pulse-border 1.8s infinite;
}

.badge-prio.high {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-prio.normal {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.badge-prio.low {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Conversation Chat Bubbles */
.chat-msg-row {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.chat-msg-row.student-msg {
  justify-content: flex-start;
}

.chat-msg-row.admin-msg {
  justify-content: flex-start;
}

.chat-msg-row.internal-note {
  justify-content: center;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.chat-avatar.student {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
}

.chat-avatar.admin {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
}

.chat-avatar.note {
  background: #f59e0b;
  color: #ffffff;
}

.chat-bubble {
  max-width: 82%;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  position: relative;
}

.student-msg .chat-bubble {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-top-left-radius: 4px;
}

.admin-msg .chat-bubble {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-top-left-radius: 4px;
}

.internal-note .chat-bubble {
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  max-width: 90%;
  width: 100%;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.chat-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.chat-sender-name {
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-sender-role-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.student-role-pill {
  background: #e0f2fe;
  color: #0369a1;
}

.admin-role-pill {
  background: #dcfce7;
  color: #15803d;
}

.note-role-pill {
  background: #fef3c7;
  color: #b45309;
}

.chat-msg-time {
  color: #94a3b8;
  font-size: 0.74rem;
}

.chat-msg-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Chat Attachment Card */
.chat-attachment-card {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.2s ease;
  max-width: 100%;
}

.chat-attachment-card:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #6366f1;
}

.chat-attachment-img-preview {
  max-width: 240px;
  max-height: 180px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  margin-top: 8px;
  display: block;
}

/* Filter pills active */
.filter-pills-bar .btn-filter {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-pills-bar .btn-filter:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.filter-pills-bar .btn-filter.active {
  background: var(--primary, #4f46e5);
  color: #ffffff;
  border-color: var(--primary, #4f46e5);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

/* ==========================================================================
   6. COMPREHENSIVE PRINT STYLES
   ========================================================================== */
@media print {
  body {
    font-family: var(--font-main) !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .app-layout, .sidebar, .top-header, .btn-logout-modern, .result-actions-bar, .modal-close-modern, .btn-close, .modal-footer, #sidebar-overlay {
    display: none !important;
  }

  #modal-view-result {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
  }

  #modal-view-result .modal-content {
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .scorecard-institutional-header {
    border: 2px solid #0f172a !important;
    box-shadow: none !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .scorecard-uni-logo, .scorecard-seal-img {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .scorecard-uni-logo {
    width: 82px !important;
    height: 82px !important;
  }

  [dir="rtl"], .rtl-content, .arabic-text {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Noto Sans Arabic', 'Amiri', Tahoma, sans-serif !important;
  }

  /* Full-page Certificate Print Mode */
  body.printing-certificate * {
    visibility: hidden;
  }
  body.printing-certificate #modal-view-certificate,
  body.printing-certificate #modal-view-certificate .modal-content,
  body.printing-certificate #certificate-print-area,
  body.printing-certificate #certificate-print-area * {
    visibility: visible;
  }
  body.printing-certificate #modal-view-certificate {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }
  body.printing-certificate #certificate-print-area {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   7. EXAM COMPONENTS BUILDER & ORAL TEST STYLING
   ========================================================================== */
.component-config-row {
  display: grid;
  grid-template-columns: 140px 1fr 100px 90px 40px;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.component-config-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.component-config-row .form-input-modern {
  padding: 6px 10px;
  font-size: 0.84rem;
}

/* Inline Mark Entry Box */
.oral-mark-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.oral-mark-input {
  width: 75px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  transition: all 0.2s ease;
}

.oral-mark-input:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.badge-status-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.74rem;
}

.badge-status-entered {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.74rem;
}

.badge-status-verified {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.74rem;
}

/* ==========================================================================
   8. LUXURIOUS ISLAMIC GOLD OFFICIAL CERTIFICATE
   ========================================================================== */
.certificate-wrapper {
  background: #fdfbf7;
  border: 8px solid #c5a059;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12), inset 0 0 0 2px #d4af37;
  color: #1e293b;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.certificate-inner-frame {
  border: 2px solid #b8860b;
  border-radius: 6px;
  padding: 24px 30px;
  position: relative;
  background: radial-gradient(circle at center, #ffffff 0%, #fdfcf9 100%);
  box-shadow: inset 0 0 15px rgba(184, 134, 11, 0.08);
}

.cert-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #b8860b;
  border-style: solid;
}
.cert-corner.top-left { top: 6px; left: 6px; border-width: 3px 0 0 3px; }
.cert-corner.top-right { top: 6px; right: 6px; border-width: 3px 3px 0 0; }
.cert-corner.bottom-left { bottom: 6px; left: 6px; border-width: 0 0 3px 3px; }
.cert-corner.bottom-right { bottom: 6px; right: 6px; border-width: 0 3px 3px 0; }

.cert-bismillah {
  text-align: center;
  font-family: 'Amiri', 'Noto Sans Arabic', 'Traditional Arabic', serif;
  font-size: 1.35rem;
  color: #92400e;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cert-header {
  text-align: center;
  margin-bottom: 14px;
}

.cert-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 4px;
}

.cert-org-name {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #064e3b;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cert-subtitle {
  font-size: 0.76rem;
  font-weight: 700;
  color: #92400e;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.cert-title-badge {
  text-align: center;
  display: table;
  margin: 10px auto 16px auto;
  padding: 6px 28px;
  background: linear-gradient(135deg, #b8860b 0%, #d4af37 50%, #b8860b 100%);
  color: #ffffff;
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  border-radius: 30px;
  box-shadow: 0 3px 10px rgba(184, 134, 11, 0.35);
  text-transform: uppercase;
}

.cert-body {
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
}

.cert-intro {
  font-size: 0.88rem;
  color: #475569;
  font-style: italic;
  margin: 0 0 6px 0;
}

.cert-candidate-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 4px 0 8px 0;
  border-bottom: 1.5px solid #d4af37;
  display: inline-block;
  padding-bottom: 2px;
}

.cert-details {
  font-size: 0.88rem;
  color: #334155;
  margin: 0 0 6px 0;
}

.cert-exam-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #065f46;
  margin: 6px 0 8px 0;
}

.cert-performance {
  font-size: 0.9rem;
  color: #1e293b;
  margin: 0;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}

.cert-sig-block {
  text-align: center;
  width: 180px;
}

.cert-sig-line {
  width: 100%;
  height: 1.5px;
  background: #94a3b8;
  margin-bottom: 6px;
}

.cert-sig-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
}

.cert-sig-org {
  font-size: 0.68rem;
  color: #64748b;
}

.cert-seal-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-seal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 4px;
}

.cert-meta-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   SKELETON LOADERS FOR INSTANT RESPONSIVENESS & ZERO-FREEZE TRANSITIONS
   ========================================================================== */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: 6px;
  display: inline-block;
}

.skeleton-line {
  height: 14px;
  margin: 6px 0;
  width: 80%;
  border-radius: 4px;
}

.skeleton-line.short {
  width: 45%;
}

.skeleton-line.full {
  width: 100%;
}

.skeleton-pill {
  height: 24px;
  width: 70px;
  border-radius: 12px;
}

.skeleton-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.skeleton-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   2026 ENTERPRISE SAAS DASHBOARD & ORAL ASSESSMENT STYLING
   ========================================================================== */

/* Top Breadcrumbs & Modern Header */
.saas-top-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 2px;
}
.saas-top-breadcrumb .crumb-parent {
  color: #94a3b8;
}
.saas-top-breadcrumb .crumb-sep {
  font-size: 0.7rem;
  color: #cbd5e1;
}
.saas-top-breadcrumb .crumb-active {
  color: #2563eb;
  font-weight: 700;
}

.saas-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: 9999px;
}

/* Modern Minimal Page Header */
.saas-page-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
}

.saas-header-left {
  flex: 1;
  min-width: 0;
}

.saas-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.saas-eyebrow-badge .saas-dot-sep {
  color: #a5b4fc;
}

.saas-eyebrow-badge .saas-pill-subtle {
  color: #3730a3;
  font-weight: 700;
}

.saas-page-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 4px;
}

.saas-page-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.saas-header-right {
  display: flex;
  align-items: center;
}

.saas-header-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.saas-header-icon-box:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  transform: translateY(-2px);
}

/* Modern Statistics 4-Column KPI Grid */
.saas-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .saas-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .saas-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ORAL TEST & RECITATION: LIQUID KPI CARDS & GRADIENT ACCENTS
   ========================================================================== */
.saas-page-header {
  position: relative;
  overflow: hidden;
  background: #ffffff !important;
  border: 1.5px solid #e8edf5 !important;
  border-radius: 20px !important;
  padding: 22px 28px !important;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05) !important;
}

.saas-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #4f46e5 0%, #3b82f6 35%, #06b6d4 70%, #10b981 100%);
  z-index: 5;
}

/* Liquid Color Upper Small KPI Cards */
.saas-kpi-card {
  position: relative;
  border-radius: 18px;
  padding: 20px 22px;
  border: 1.5px solid #e8edf5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  min-height: 125px;
}

/* Floating liquid organic mesh orb in background */
.saas-kpi-card::after {
  content: '';
  position: absolute;
  top: -24px;
  right: -24px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.65;
  transition: all 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.saas-kpi-card:hover {
  transform: translateY(-4px);
}

.saas-kpi-card:hover::after {
  transform: scale(1.35) translate(-10px, 10px);
  opacity: 0.85;
}

.saas-kpi-card > * {
  position: relative;
  z-index: 1;
}

/* Card 1: Violet / Indigo Liquid */
.saas-kpi-card.kpi-indigo {
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 60%, #ede9fe 100%);
  border-color: #ddd6fe;
}
.saas-kpi-card.kpi-indigo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
}
.saas-kpi-card.kpi-indigo::after {
  background: radial-gradient(circle, #8b5cf6 0%, #c4b5fd 70%, transparent 100%);
}
.saas-kpi-card.kpi-indigo:hover {
  box-shadow: 0 16px 32px -6px rgba(99, 102, 241, 0.22);
  border-color: #c4b5fd;
}
.saas-kpi-card.kpi-indigo .saas-kpi-icon-wrap {
  background: #ffffff;
  color: #6366f1;
  border: 1px solid #ddd6fe;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.12);
}
.saas-kpi-card.kpi-indigo .saas-kpi-value {
  color: #4338ca;
}

/* Card 2: Ocean Blue / Cyan Liquid */
.saas-kpi-card.kpi-blue {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 60%, #e0f2fe 100%);
  border-color: #bae6fd;
}
.saas-kpi-card.kpi-blue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #0284c7, #0ea5e9, #38bdf8);
}
.saas-kpi-card.kpi-blue::after {
  background: radial-gradient(circle, #0ea5e9 0%, #7dd3fc 70%, transparent 100%);
}
.saas-kpi-card.kpi-blue:hover {
  box-shadow: 0 16px 32px -6px rgba(2, 132, 199, 0.22);
  border-color: #7dd3fc;
}
.saas-kpi-card.kpi-blue .saas-kpi-icon-wrap {
  background: #ffffff;
  color: #0284c7;
  border: 1px solid #bae6fd;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
}
.saas-kpi-card.kpi-blue .saas-kpi-value {
  color: #0369a1;
}

/* Card 3: Amber / Sunset Liquid */
.saas-kpi-card.kpi-amber {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 60%, #fef3c7 100%);
  border-color: #fde68a;
}
.saas-kpi-card.kpi-amber::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24);
}
.saas-kpi-card.kpi-amber::after {
  background: radial-gradient(circle, #f59e0b 0%, #fcd34d 70%, transparent 100%);
}
.saas-kpi-card.kpi-amber:hover {
  box-shadow: 0 16px 32px -6px rgba(217, 119, 6, 0.22);
  border-color: #fcd34d;
}
.saas-kpi-card.kpi-amber .saas-kpi-icon-wrap {
  background: #ffffff;
  color: #d97706;
  border: 1px solid #fde68a;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.12);
}
.saas-kpi-card.kpi-amber .saas-kpi-value {
  color: #b45309;
}

/* Card 4: Emerald / Mint Liquid */
.saas-kpi-card.kpi-emerald {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 60%, #dcfce7 100%);
  border-color: #bbf7d0;
}
.saas-kpi-card.kpi-emerald::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #059669, #10b981, #34d399);
}
.saas-kpi-card.kpi-emerald::after {
  background: radial-gradient(circle, #10b981 0%, #86efac 70%, transparent 100%);
}
.saas-kpi-card.kpi-emerald:hover {
  box-shadow: 0 16px 32px -6px rgba(5, 150, 105, 0.22);
  border-color: #86efac;
}
.saas-kpi-card.kpi-emerald .saas-kpi-icon-wrap {
  background: #ffffff;
  color: #059669;
  border: 1px solid #bbf7d0;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.12);
}
.saas-kpi-card.kpi-emerald .saas-kpi-value {
  color: #047857;
}

.saas-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.saas-kpi-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #475569;
}

.saas-kpi-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.saas-kpi-value {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.saas-kpi-caption {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

/* Modern Candidate Management Card */
.saas-card {
  background: #ffffff;
  border: 1.5px solid #e8edf5;
  border-radius: 20px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.saas-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #4f46e5 0%, #3b82f6 40%, #06b6d4 70%, #10b981 100%);
  z-index: 5;
}

.saas-card-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.saas-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.saas-title-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.saas-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.25;
}

.saas-card-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}

.saas-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #475569;
}

.saas-count-pill strong {
  color: #0f172a;
}

/* Modern Filter & Actions Toolbar */
.saas-toolbar-container {
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.saas-filter-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1.6fr;
  gap: 10px;
  align-items: center;
}

@media (max-width: 1024px) {
  .saas-filter-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .saas-filter-row {
    grid-template-columns: 1fr;
  }
}

.saas-select {
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.saas-select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.saas-search-pill {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.saas-search-pill i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 0.88rem;
  pointer-events: none;
}

.saas-search-input {
  width: 100%;
  height: 42px;
  padding: 8px 12px 8px 36px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.saas-search-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.saas-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-saas {
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
}

.btn-saas-primary {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4338ca;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25);
}

.btn-saas-primary:hover {
  background: #4338ca;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.btn-saas-outline {
  background: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-saas-outline:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn-saas-success {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.btn-saas-success:hover {
  background: #059669;
  color: #ffffff;
  border-color: #047857;
  transform: translateY(-1px);
}

/* Modern Status Badges */
.badge-status-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-status-entered {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-status-pending {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Inline Oral Mark Input */
.oral-mark-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.oral-mark-input {
  width: 68px;
  height: 34px;
  text-align: center;
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  transition: all 0.15s ease;
}

.oral-mark-input:focus {
  border-color: #4f46e5;
  background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* SaaS Empty State */
.saas-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.saas-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.saas-empty-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.saas-empty-desc {
  font-size: 0.84rem;
  color: #64748b;
  max-width: 420px;
  margin: 0 auto;
}

/* ======================================================== */
/* 2026 UNIVERSAL SAAS PAGINATION COMPONENT                 */
/* ======================================================== */
.saas-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.saas-pagination-info {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 500;
  font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
}

.saas-pagination-info strong {
  color: #0f172a;
  font-weight: 700;
}

.saas-pagination-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.saas-page-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  padding: 0;
  outline: none;
}

.saas-page-btn:hover:not(:disabled):not(.active) {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.saas-page-btn.active {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  cursor: default;
}

.saas-page-btn:disabled,
.saas-page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.saas-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 36px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ==========================================================================
   OFFICIAL DYNAMIC CERTIFICATE SYSTEM (EXACT 2048 x 1448 TEMPLATE OVERLAY)
   ========================================================================== */

.official-cert-canvas {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 2048 / 1448;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  background-color: #ffffff;
  user-select: text;
  -webkit-font-smoothing: antialiased;
  container-type: inline-size;
}

.cert-bg-template-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

/* 1. Dynamic Top-Left Certificate ID */
.cert-dynamic-top-id {
  position: absolute;
  left: 14.8%;
  top: 19.3%;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  font-size: clamp(10px, 1.35cqi, 27.5px);
  color: #1e293b;
  font-weight: 500;
  letter-spacing: 0.2px;
  z-index: 5;
  white-space: nowrap;
}

.cert-dynamic-top-id strong {
  font-weight: 800;
  color: #0f172a;
}

/* 2. Dynamic Main Body - Fixed 5-Line Coordinate Layout */
.cert-dynamic-body {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 48.0%;
  text-align: center;
  color: #334155;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cert-line {
  font-size: clamp(9px, 1.32cqi, 27px);
  line-height: 1.66;
  color: #334155;
  font-weight: 500;
  letter-spacing: 0.12px;
  white-space: nowrap;
  text-align: center;
  margin: 0;
  padding: 0;
}

.cert-line-gap {
  margin-top: clamp(6px, 0.85cqi, 17px);
}

.cert-dynamic-body strong {
  font-weight: 800;
  color: #0f172a;
}

.cert-field-name {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.35px;
  color: #0f172a;
}

/* 3. Dynamic Footer Grading Explanation */
.cert-dynamic-footer {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 8.8%;
  text-align: center;
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-style: italic;
  font-size: clamp(6px, 0.82cqi, 16.8px);
  color: #475569;
  line-height: 1.3;
  z-index: 5;
  white-space: nowrap;
}

/* ==========================================================================
   PRINT SPECIFIC RULES - ZERO MARGIN EDGE-TO-EDGE CERTIFICATE
   ========================================================================== */
@media print {
  @page {
    size: landscape;
    margin: 0mm !important;
  }

  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  body > *:not(#modal-view-certificate) {
    display: none !important;
  }

  body * {
    visibility: hidden !important;
  }

  .printing-certificate #modal-view-certificate,
  .printing-certificate #modal-view-certificate .modal-content,
  .printing-certificate #certificate-print-area,
  .printing-certificate #certificate-print-area * {
    visibility: visible !important;
  }

  .printing-certificate .modal-overlay {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
    z-index: 9999999 !important;
  }

  .printing-certificate .modal-content {
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
  }

  .printing-certificate .no-print {
    display: none !important;
  }

  .printing-certificate .official-cert-canvas {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: #ffffff !important;
  }

  .printing-certificate .cert-bg-template-img {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: fill !important;
    display: block !important;
  }
}

/* =============================================================
   PERMANENT EXAM HISTORY & ARCHIVE ENHANCEMENTS
   ============================================================= */
.badge-archived {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.exam-card-archived {
  border-color: #cbd5e1 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  opacity: 0.96;
}

.exam-card-archived:hover {
  border-color: #94a3b8 !important;
  box-shadow: 0 10px 25px -5px rgba(100, 116, 139, 0.15) !important;
}

.btn-action-history {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  transition: all 0.2s ease;
}

.btn-action-history:hover {
  background: #dbeafe !important;
  color: #1e40af !important;
  border-color: #93c5fd !important;
  transform: translateY(-1px);
}

.btn-action-archive {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  transition: all 0.2s ease;
}

.btn-action-archive:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px);
}

.dot-archived {
  background: #64748b;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.chip-blue {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.chip-slate {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.chip-emerald {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
}

/* ==========================================================================
   STUDENT DOCUMENT & DOWNLOAD CENTER STYLES (MATCHING REFERENCE DESIGN)
   ========================================================================== */

/* 1. TOP HEADER & SEARCH */
.downloads-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.downloads-header-title-block {
  flex: 1;
}

.downloads-main-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.downloads-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

.downloads-search-wrapper {
  position: relative;
  min-width: 260px;
  max-width: 320px;
  width: 100%;
}

.downloads-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
}

.downloads-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  font-size: 0.85rem;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.downloads-search-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* 2. MAIN 2-COLUMN LAYOUT */
.downloads-main-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

/* 3. CATEGORIES SIDEBAR */
.downloads-sidebar-card {
  background: #ffffff;
  border: 1.5px solid #f1f5f9;
  border-radius: 18px;
  padding: 18px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.downloads-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
  padding: 0 8px 14px 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.downloads-category-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.downloads-category-item {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.18s ease;
}

.downloads-category-item:hover {
  background: #f8fafc;
  color: #1e1b4b;
}

.downloads-category-item.active {
  background: #ede9fe;
  color: #4f46e5;
  font-weight: 800;
}

.downloads-category-item .category-arrow-icon {
  font-size: 0.72rem;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.downloads-category-item.active .category-arrow-icon {
  opacity: 1;
  color: #4f46e5;
}

.downloads-mobile-category-select {
  display: none;
  margin-bottom: 14px;
}

/* 4. DOCUMENT CARDS GRID */
.downloads-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.download-card {
  background: #ffffff;
  border: 1.5px solid #f1f5f9;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  position: relative;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
}

/* 5. FILE TYPE ICONS */
.download-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.download-icon-box.icon-pdf {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
}

.download-icon-box.icon-doc {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.download-icon-box.icon-xls {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.download-icon-box.icon-ppt {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
}

.download-icon-box.icon-zip {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #ede9fe;
}

.download-icon-box.icon-image {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fce7f3;
}

.download-icon-box.icon-folder {
  background: #ecfeff;
  color: #0891b2;
  border: 1px solid #cffafe;
}

.download-icon-box.icon-other {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* 6. CARD TEXT & METADATA */
.download-card-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.download-card-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0 0 16px 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.download-card-divider {
  border: 0;
  border-top: 1px solid #f1f5f9;
  margin: 0 0 12px 0;
}

.download-card-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

.download-card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-card-meta-item i {
  font-size: 0.76rem;
  color: #94a3b8;
}

.download-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 10px;
}

/* 7. DOWNLOAD BUTTON PILL (MATCHING SCREENSHOT) */
.download-btn-pill {
  display: inline-flex;
  align-items: center;
  background: #4f46e5;
  color: #ffffff !important;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.download-btn-pill:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.download-btn-label {
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.download-btn-size {
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  font-weight: 600;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* 8. EMPTY & LOADING STATES */
.downloads-empty-state, .downloads-loading-state {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 18px;
  padding: 48px 24px;
  text-align: center;
  color: #64748b;
}

.downloads-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #f1f5f9;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}

.downloads-empty-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.downloads-empty-subtext {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* 9. RESPONSIVE BREAKPOINTS */
@media (max-width: 900px) {
  .downloads-main-layout {
    grid-template-columns: 1fr;
  }

  .downloads-sidebar-card {
    padding: 12px;
  }

  .downloads-category-menu {
    display: none;
  }

  .downloads-mobile-category-select {
    display: block;
    margin-bottom: 0;
  }

  .downloads-sidebar-header {
    border-bottom: none;
    padding-bottom: 6px;
    margin-bottom: 6px;
  }
}

@media (max-width: 640px) {
  .downloads-cards-grid {
    grid-template-columns: 1fr;
  }

  .downloads-top-header {
    flex-direction: column;
    align-items: stretch;
  }

  .downloads-search-wrapper {
    max-width: 100%;
  }
}

/* ==========================================================================
   MODERN ATTENDANCE MANAGEMENT SUITE STYLES
   ========================================================================== */

.att-tab-container {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  border: 1px solid #e2e8f0;
}

.att-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 9px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.att-tab-btn:hover {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.6);
}

.att-tab-btn.active {
  background: #ffffff;
  color: #4f46e5;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.att-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.att-pill-present {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08);
}

.att-pill-present i {
  color: #10b981;
  font-size: 0.75rem;
}

.att-pill-absent {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.08);
}

.att-pill-absent i {
  color: #ef4444;
  font-size: 0.75rem;
}

.att-pill-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.08);
}

.att-pill-pending i {
  color: #f59e0b;
  font-size: 0.75rem;
}

.att-pill-complete {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid #059669;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
  font-weight: 800;
}

.att-pill-complete i {
  color: #ffffff;
  font-size: 0.75rem;
}

.att-pill-incomplete {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  box-shadow: 0 1px 2px rgba(225, 29, 72, 0.08);
  font-weight: 700;
}

.att-pill-incomplete i {
  color: #e11d48;
  font-size: 0.75rem;
}

.att-candidate-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.att-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.15);
  flex-shrink: 0;
}

.att-student-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.25;
}

.att-student-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.att-reg-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 700;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.att-college-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.att-college-chip i {
  color: #6366f1;
}

.att-college-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.att-table-header th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 13px 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.att-table-row {
  transition: background-color 0.15s ease;
}

.att-table-row:hover {
  background-color: #f8fafc !important;
}

.att-table-row td {
  padding: 12px 16px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

/* HISTORICAL RESULTS & ATTENDANCE HUB STYLING */
#view-admin-historical-results .data-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 12px 14px !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}

#view-admin-historical-results .data-table td {
  padding: 12px 14px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

#view-admin-historical-results .data-table tr:hover {
  background-color: #f8fafc;
}

@media (max-width: 768px) {
  #view-admin-historical-results .hero-banner {
    padding: 20px !important;
  }
}

/* ==========================================================================
   OFFICIAL DHIU COLLEGE EXAMINATION REPORT PDF & DOCUMENT STYLES
   ========================================================================== */
.official-report-page {
  width: 210mm;
  min-height: 297mm;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  margin: 0 auto 24px auto;
  padding: 30px 42px 20px 42px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #000000;
  page-break-after: always;
  break-after: page;
}

.rep-statement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5px;
  margin: 8px 0 10px 0;
}

.rep-statement-table th {
  background: #0f766e !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  padding: 6px 5px !important;
  border: 1px solid #0d9488 !important;
  text-align: center !important;
  font-size: 9px !important;
  letter-spacing: 0.3px !important;
}

.rep-statement-table td {
  padding: 5px 6px !important;
  border: 1px solid #cbd5e1 !important;
  vertical-align: middle !important;
  color: #000000;
}

.rep-statement-table tr:nth-child(even) td {
  background-color: #f8fafc;
}

.rep-status-badge {
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  body, html {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    height: auto !important;
  }
  .official-report-page {
    box-shadow: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    max-height: 297mm !important;
    padding: 30px 42px 20px 42px !important;
    page-break-after: always !important;
    break-after: page !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }
  .official-report-page:last-child {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
}

/* ==========================================================================
   COLLEGE EXAMINATION REPORTS: MODERN CONFIGURATION CARD & CALENDAR PICKERS
   ========================================================================== */
.college-report-config-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e8edf5;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  transition: all 0.25s ease;
}

.college-report-config-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #059669 0%, #10b981 40%, #3b82f6 80%, #6366f1 100%);
  z-index: 5;
}

.college-report-config-header {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #eef2f6;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.college-report-config-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.college-report-title-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #059669;
  border: 1.5px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.12);
  flex-shrink: 0;
}

.college-report-config-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.college-report-config-title p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.college-report-config-body {
  padding: 24px 26px;
}

/* Modern Form Field Grid Layouts */
.rep-form-grid-primary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.rep-form-grid-secondary {
  display: grid;
  grid-template-columns: minmax(170px, 1.25fr) minmax(200px, 1.45fr) minmax(170px, 1.25fr) minmax(120px, 0.85fr) minmax(120px, 0.85fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 1100px) {
  .rep-form-grid-primary {
    grid-template-columns: 1fr;
  }
  .rep-form-grid-secondary {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.rep-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rep-field-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.rep-field-label i {
  color: #059669;
  font-size: 0.84rem;
}

.rep-field-label .text-danger {
  color: #ef4444;
}

/* Calendar Input Group with Interactive Button */
.calendar-input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.calendar-input-group .form-input-modern {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
  font-weight: 700;
  font-size: 0.88rem;
  flex: 1;
  min-width: 0;
}

.btn-calendar-trigger {
  background: #f8fafc;
  color: #059669;
  border: 1.5px solid #cbd5e1;
  border-left: 1px solid #e2e8f0;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.btn-calendar-trigger:hover {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.15);
}

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

.hidden-date-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  bottom: 0;
  right: 0;
}

/* Signatories Details Box */
.rep-signatories-card {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 22px;
  transition: all 0.2s ease;
}

.rep-signatories-summary {
  font-weight: 800;
  font-size: 0.86rem;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.rep-signatories-summary::-webkit-details-marker {
  display: none;
}

/* Footer Action Toolbar */
.rep-config-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1.5px dashed #e2e8f0;
  flex-wrap: wrap;
}

.btn-rep-refresh {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 11px 20px !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.btn-rep-refresh:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.42) !important;
}

.btn-rep-save {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-rep-save:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}

.btn-rep-download-pdf {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 11px 20px !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.btn-rep-download-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.42) !important;
}

.btn-rep-send-admin {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 11px 22px !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.btn-rep-send-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45) !important;
}

/* Modal for Date & Year Pickers */
.year-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.btn-year-pill {
  background: #f8fafc;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-year-pill:hover,
.btn-year-pill.active {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.15);
  transform: translateY(-1px);
}