/* ==========================================================================
   CSS DESIGN SYSTEM: EXAMS HUNT
   ========================================================================== */

/* --- Custom Variables & CSS Tokens --- */
:root {
  /* Modern Dashboard Theme (Light Mode) */
  --primary: #4f46e5;         /* Indigo */
  --primary-hover: #4338ca;
  --secondary: #0ea5e9;       /* Sky Blue */
  --accent: #f59e0b;          /* Amber */
  --dark: #0f172a;            /* Slate 900 */
  --dark-soft: #1e293b;       /* Slate 800 */
  --light: #f8fafc;           /* Slate 50 */
  --white: #ffffff;
  --border: #e2e8f0;          /* Slate 200 */
  --text: #334155;            /* Slate 700 */
  --text-muted: #64748b;      /* Slate 500 */
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Font Scaling */
  --exam-font-scale: 1.0;
  
  /* Layout Spacings */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Animations */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Resets & Typography --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* --- Common Utilities --- */
.d-none { display: none !important; }
.text-center { text-align: center !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.w-full { width: 100% !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.cursor-pointer { cursor: pointer !important; }
.flex-row { display: flex; flex-direction: row; }
.gap-2 { gap: 0.5rem; }
.font-code { font-family: monospace, Courier, sans-serif; }

/* ==========================================================================
   NAVIGATION & MAIN HEADER
   ========================================================================== */
.main-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Design - Exams Hunt */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.logo-exams {
  color: #1e3a8a; /* Deep blue */
  font-style: italic;
  letter-spacing: -0.5px;
}
.logo-hunt {
  color: #eab308; /* Yellow */
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  transform: rotate(-3deg) translateY(-2px);
  display: inline-block;
}
.logo-dot {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: #334155;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: rgba(79, 70, 229, 0.08);
}

/* User Profile Header */
.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.user-name-span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}
.btn-secondary:hover {
  background-color: #0284c7;
  transform: translateY(-1px);
}
.btn-danger {
  background-color: var(--danger);
  color: var(--white);
}
.btn-danger:hover {
  background-color: #dc2626;
}
.btn-success {
  background-color: var(--success);
  color: var(--white);
}
.btn-success:hover {
  background-color: #059669;
}
.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: var(--text-muted);
}
.btn-google {
  background-color: var(--white);
  color: var(--dark-soft);
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.btn-google:hover {
  background-color: var(--light);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   LANDING HERO VIEW
   ========================================================================== */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Large Hero Logo */
.hero-logo {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-exams-lg {
  color: #1e3a8a;
  font-style: italic;
  letter-spacing: -1px;
}
.logo-hunt-lg {
  color: #eab308;
  font-family: 'Caveat', cursive;
  font-size: 3.6rem;
  transform: rotate(-3deg) translateY(-4px);
}
.logo-dot-lg {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  color: #334155;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--dark) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 5rem;
}

/* Feature Cards Grid */
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}
.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.1);
  border-color: rgba(79, 70, 229, 0.2);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* ==========================================================================
   CANDIDATE DASHBOARD
   ========================================================================== */
.dashboard-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

/* Sidebar Profile Card */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
}
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}
.profile-avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
}
.dash-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border);
}
.online-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--success);
  border: 3px solid var(--white);
}
.profile-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.profile-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.meta-item {
  display: flex;
  flex-direction: column;
}
.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.meta-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

/* Dashboard Main Tabs & Lists */
.dashboard-main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}
.dashboard-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.dash-tab {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.dash-tab:hover {
  color: var(--primary);
}
.dash-tab.active {
  color: var(--primary);
}
.dash-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.section-title-bar {
  margin-bottom: 1.5rem;
}
.section-title-bar h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Available Exams Cards Grid */
.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.exam-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--white);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.exam-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.exam-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark-soft);
}
.exam-card-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  padding: 0.75rem;
  background-color: var(--light);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}
.exam-detail-row {
  display: flex;
  flex-direction: column;
}
.exam-detail-row span:first-child {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.exam-detail-row span:last-child {
  font-weight: 600;
  color: var(--dark);
}
.exam-card .btn {
  margin-top: auto;
}

/* Tables Styling */
.results-table-container {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data-table th, .data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-weight: 700;
  color: var(--text);
  background-color: var(--light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.data-table tbody tr {
  transition: var(--transition);
}
.data-table tbody tr:hover {
  background-color: rgba(248, 250, 252, 0.8);
}
.data-table td {
  font-size: 0.95rem;
  color: var(--dark-soft);
}

/* ==========================================================================
   RETRO EXAM PORTAL REPLICA (TCS iON layout)
   ========================================================================== */
.exam-mode-view {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  background-color: #F4F6F9 !important;
  color: #333333 !important;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999; /* Fullscreen overlay */
  overflow: hidden;
  font-size: calc(14px * var(--exam-font-scale));
}

/* Top bar style matching reference image */
.exam-top-row {
  background-color: #E6ECF5;
  border-bottom: 2px solid #B0C4DE;
  padding: 4px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.zoom-controls {
  display: flex;
  gap: 4px;
}
.btn-exam-action {
  background-color: #004D99;
  color: white;
  border: 1px solid #000;
  padding: 4px 12px;
  font-weight: bold;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-exam-action:hover {
  background-color: #003366;
}

.exam-header-title {
  text-align: center;
}
.exam-header-title span {
  font-weight: bold;
  font-size: 15px;
  color: #000;
}
.candidate-roll {
  font-size: 11px;
  font-weight: bold;
  color: #333;
  margin-top: 2px;
}

.exam-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle-btn {
  background: transparent;
  border: 1px solid #99b3cc;
  width: 28px;
  height: 28px;
  cursor: pointer;
  border-radius: 4px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.theme-toggle-btn svg {
  width: 14px;
  height: 14px;
}
.theme-toggle-btn:hover {
  background-color: #cbd5e1;
}
.btn-exam-pause {
  background-color: #FFFFFF;
  border: 1px solid #A0A0A0;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}
.pause-icon {
  font-size: 10px;
  margin-right: 2px;
}

/* Orange/yellow timer box in screenshot */
.timer-block {
  background-color: #FFE680;
  border: 1px solid #D4B200;
  padding: 2px 6px;
  border-radius: 3px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.timer-label {
  font-size: 9px;
  font-weight: bold;
  color: #000000;
  text-transform: uppercase;
}
.timer-value {
  font-size: 14px;
  font-weight: bold;
  color: #CC0000;
}
.exam-candidate-avatar {
  width: 32px;
  height: 36px;
  background-color: #D3D3D3;
  border: 1px solid #A0A0A0;
  overflow: hidden;
}
.exam-avatar-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Red-labeled symbols and instructions row */
.exam-sub-bar {
  background-color: #F1F1F1;
  border-bottom: 1px solid #D0D0D0;
  padding: 4px 10px;
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}
.sub-bar-btn {
  background: none;
  border: none;
  font-weight: bold;
  font-size: 12px;
  color: #CC0000;
  cursor: pointer;
  padding: 2px 5px;
}
.sub-bar-btn:hover {
  text-decoration: underline;
}

/* Section tabs (PART-A, B, C, D) */
.exam-sections-bar {
  background-color: #FFFFFF;
  border-bottom: 1px solid #C0C0C0;
  padding: 6px 10px;
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.btn-section-tab {
  background-color: #406080;
  color: white;
  border: none;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px 3px 0 0;
}
.btn-section-tab.active {
  background-color: #051A30; /* Dark highlight */
}

/* Middle action buttons above question in screenshot */
.exam-actions-bar {
  background-color: #F1F1F1;
  border-bottom: 1px solid #D3D3D3;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
}
.left-actions, .right-actions {
  display: flex;
  gap: 6px;
}
.btn-exam-blue {
  background-color: #0F4C81;
  color: white;
  border: 1px solid #000;
  padding: 5px 12px;
  font-weight: bold;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-exam-blue:hover {
  background-color: #072F54;
}
.btn-exam-blue.highlight {
  background-color: #CC0000;
}
.btn-exam-blue.highlight:hover {
  background-color: #990000;
}

/* Main Split View: Question Area & Navigation palette */
.exam-workspace {
  display: grid;
  grid-template-columns: 1fr 280px;
  flex-grow: 1;
  overflow: hidden;
  background-color: #FFFFFF;
}

/* Left Area: Scrollable Question pane */
.exam-question-panel {
  display: flex;
  flex-direction: column;
  border-right: 2px solid #A0A0A0;
  overflow: hidden;
  height: 100%;
}
.question-header {
  background-color: #F4F6F9;
  border-bottom: 1px solid #D0D0D0;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  font-size: 12px;
}
.question-number-label {
  font-weight: bold;
  color: #000;
}
.red-alert-text {
  color: #CC0000;
  font-weight: bold;
}
.question-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-dropdown {
  padding: 2px 4px;
  font-size: 11px;
  border: 1px solid #7F9DB9;
}
.btn-exam-save {
  background-color: #007ACC;
  color: white;
  border: none;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
}
.btn-exam-report {
  background-color: #CC0000;
  color: white;
  border: none;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
}

/* Question scroll container */
.question-scroller {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
}
.question-text {
  font-size: calc(14px * var(--exam-font-scale));
  font-weight: bold;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.6;
}
.question-options-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #E0E0E0;
}
.option-row {
  display: flex;
  align-items: center;
  padding: 10px 5px;
  border-bottom: 1px solid #E0E0E0;
  cursor: pointer;
  transition: background-color 0.2s;
}
.option-row:hover {
  background-color: #F5F7FA;
}
.option-radio {
  margin-right: 12px;
  transform: scale(1.1);
  cursor: pointer;
}
.option-content {
  font-size: calc(13px * var(--exam-font-scale));
  color: #333;
}

.question-footer {
  background-color: #F1F1F1;
  border-top: 1px solid #D0D0D0;
  padding: 6px 10px;
  flex-shrink: 0;
}
.btn-exam-gray {
  background-color: #E1E1E1;
  color: black;
  border: 1px solid #808080;
  padding: 4px 12px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 3px;
}
.btn-exam-gray:hover {
  background-color: #D2D2D2;
}

/* Right Area: Palette Grid & Webcam */
.exam-palette-panel {
  background-color: #EBF2FA;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.palette-header {
  background-color: #B0C4DE;
  font-weight: bold;
  color: #000000;
  text-align: center;
  padding: 6px;
  font-size: 12px;
  flex-shrink: 0;
}
.palette-grid-scroller {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
}
.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  justify-items: center;
}

/* Individual numbered squares */
.palette-item {
  width: 36px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Core palette status styles */
.palette-notvisited {
  background-color: #E2E8F0;
  color: #4A5568;
  border: 1px solid #CBD5E0;
}
.palette-unanswered {
  background-color: #E53E3E; /* Red */
  color: white;
  border: 1px solid #9B2C2C;
}
.palette-answered {
  background-color: #38A169; /* Green */
  color: white;
  border: 1px solid #22543D;
}
.palette-marked {
  background-color: #805AD5; /* Purple */
  color: white;
  border: 1px solid #553C9A;
}
.palette-marked-answered {
  background-color: #805AD5; /* Purple */
  color: white;
  border: 1px solid #553C9A;
}
.palette-marked-answered::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background-color: #48BB78; /* Tiny green dot */
  border-radius: 50%;
  border: 1px solid white;
}

/* Analysis details legend at bottom */
.palette-legend {
  background-color: #FFFFFF;
  border-top: 1px solid #B0C4DE;
  border-bottom: 1px solid #B0C4DE;
  padding: 8px;
  flex-shrink: 0;
}
.legend-header {
  font-weight: bold;
  font-size: 11px;
  background-color: #E2E8F0;
  padding: 3px 6px;
  margin-bottom: 6px;
  color: #000;
}
.legend-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend-color {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  line-height: 18px;
  border-radius: 2px;
  color: white;
}
.badge-answered { background-color: #38A169; }
.badge-unanswered { background-color: #E53E3E; }
.badge-notvisited { background-color: #E2E8F0; color: #333; border: 1px solid #CBD5E0; }
.badge-marked { background-color: #805AD5; }
.badge-marked-answered { background-color: #805AD5; position: relative; }
.badge-marked-answered::after {
  content: '';
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 4px;
  height: 4px;
  background-color: #48BB78;
  border-radius: 50%;
}
.legend-label {
  font-size: 9px;
  color: #333;
}

/* Webcam module placement */
.webcam-container {
  background-color: #E2E8F0;
  border-top: 1px solid #A0A0A0;
  padding: 6px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.webcam-view {
  background-color: #000000;
  border: 1px solid #7F9DB9;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.webcam-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.webcam-placeholder {
  color: #A0AEC0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.camera-status-text {
  font-size: 10px;
  color: #A0AEC0;
}
.btn-show-camera {
  background-color: #0F4C81;
  color: white;
  border: 1px solid #000;
  padding: 3px 0;
  font-weight: bold;
  font-size: 10px;
  width: 100%;
  cursor: pointer;
  border-radius: 3px;
}
.btn-show-camera:hover {
  background-color: #072F54;
}

/* ==========================================================================
   ADMIN PORTAL LAYOUT
   ========================================================================== */
.admin-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  min-height: 80vh;
}
.admin-sidebar {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.admin-brand {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.admin-brand h3 {
  font-size: 1.25rem;
  font-weight: 800;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
}
.badge-primary {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-menu-btn {
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.admin-menu-btn:hover {
  background-color: rgba(79, 70, 229, 0.05);
  color: var(--primary);
}
.admin-menu-btn.active {
  background-color: var(--primary);
  color: var(--white);
}

.admin-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.admin-panel {
  display: none;
}
.admin-panel.active {
  display: block;
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.admin-stat-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--light);
}
.admin-stat-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.admin-stat-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--white);
}

.admin-grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Form Styles */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-soft);
}
.form-control, input[type="text"], input[type="email"], textarea, select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
  width: 100%;
}
.form-control:focus, input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.options-inputs-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  background-color: var(--light);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.flex-grow {
  flex-grow: 1;
}

/* ==========================================================================
   MODAL OVERLAY & CARD STYLES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Google Chooser Modal Replica */
.google-modal {
  background: var(--white);
  border-radius: 8px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2.5rem 2rem 1.5rem;
  font-family: Roboto, Arial, sans-serif;
  color: #202124;
}
.google-modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.google-modal-header span {
  font-size: 16px;
  color: #5f6368;
}
.google-logo-icon {
  width: 24px;
  height: 24px;
}
.google-modal-title {
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 4px;
}
.google-modal-subtitle {
  text-align: center;
  font-size: 16px;
  color: #202124;
  margin-bottom: 2rem;
}

/* Google Chooser Accounts List */
.google-accounts-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  border-top: 1px solid #dadce0;
}
.google-account-row {
  display: flex;
  align-items: center;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid #dadce0;
  cursor: pointer;
  transition: background-color 0.2s;
}
.google-account-row:hover {
  background-color: #f7f8f8;
}
.google-account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.google-account-info {
  display: flex;
  flex-direction: column;
}
.google-account-name {
  font-size: 14px;
  font-weight: 500;
  color: #3c4043;
}
.google-account-email {
  font-size: 12px;
  color: #5f6368;
}
.google-add-account {
  display: flex;
  align-items: center;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid #dadce0;
  cursor: pointer;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 500;
}
.google-add-account:hover {
  background-color: #f7f8f8;
}
.google-add-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-modal-footer {
  font-size: 12px;
  color: #5f6368;
  line-height: 1.4;
  margin-top: 1rem;
}

/* Standard System Modals */
.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.modal-lg {
  max-width: 800px;
}
.modal-md {
  max-width: 600px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}
.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Scrollable containers inside modals */
.review-modal-scroller, .guide-modal-scroller {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Detailed Test Review Layouts */
.review-scorecard {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  background-color: var(--light);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.scorecard-stat {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.score-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.score-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
}

.review-questions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.review-q-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: var(--white);
}
.review-q-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--light);
  padding-bottom: 0.5rem;
}
.badge-status {
  padding: 0.15rem 0.5rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}
.badge-status-correct { background-color: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-status-incorrect { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-status-skipped { background-color: rgba(100, 116, 139, 0.1); color: var(--text-muted); }

.review-q-text {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}
.review-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.review-option-row {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: 1px solid var(--border);
}
.review-option-row.correct {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: var(--success);
  color: #065f46;
  font-weight: 600;
}
.review-option-row.user-wrong {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
  color: #991b1b;
  font-weight: 600;
}

/* Simple table styles */
.simple-table {
  width: 100%;
  margin: 1rem 0;
}
.simple-table td {
  padding: 0.35rem 0;
  font-size: 0.95rem;
}
.confirm-stats-box {
  background-color: var(--light);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
  border: 1px solid var(--border);
}

/* Guide lists styling */
.guide-ol {
  margin-left: 1.25rem;
  margin-top: 0.5rem;
}
.guide-ol li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Animations slide up */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up {
  animation: slideUp 0.3s ease-out forwards;
}

/* ==========================================================================
   THEME STYLING overrides (Dark Mode support on exam and dashboard)
   ========================================================================== */
.exam-dark-mode {
  background-color: #121212 !important;
  color: #E2E8F0 !important;
}
.exam-dark-mode .exam-top-row {
  background-color: #1E293B !important;
  border-bottom: 2px solid #334155 !important;
}
.exam-dark-mode .exam-top-row span, 
.exam-dark-mode .candidate-roll {
  color: #F1F5F9 !important;
}
.exam-dark-mode .btn-exam-pause {
  background-color: #334155 !important;
  color: #F1F5F9 !important;
  border-color: #475569 !important;
}
.exam-dark-mode .exam-sub-bar {
  background-color: #1E293B !important;
  border-bottom: 1px solid #334155 !important;
}
.exam-dark-mode .exam-sections-bar {
  background-color: #0F172A !important;
  border-bottom: 1px solid #334155 !important;
}
.exam-dark-mode .btn-section-tab {
  background-color: #334155 !important;
  color: #CBD5E1 !important;
}
.exam-dark-mode .btn-section-tab.active {
  background-color: #4F46E5 !important;
  color: white !important;
}
.exam-dark-mode .exam-actions-bar {
  background-color: #1E293B !important;
  border-bottom: 1px solid #334155 !important;
}
.exam-dark-mode .exam-question-panel {
  background-color: #0F172A !important;
  border-right: 2px solid #334155 !important;
}
.exam-dark-mode .question-header {
  background-color: #1E293B !important;
  border-bottom: 1px solid #334155 !important;
  color: #CBD5E1 !important;
}
.exam-dark-mode .question-header span {
  color: #CBD5E1 !important;
}
.exam-dark-mode .question-scroller {
  background-color: #0F172A !important;
}
.exam-dark-mode .question-text {
  color: #F8FAFC !important;
}
.exam-dark-mode .option-row {
  border-bottom: 1px solid #1E293B !important;
}
.exam-dark-mode .option-row:hover {
  background-color: #1E293B !important;
}
.exam-dark-mode .option-content {
  color: #CBD5E1 !important;
}
.exam-dark-mode .question-footer {
  background-color: #1E293B !important;
  border-top: 1px solid #334155 !important;
}
.exam-dark-mode .btn-exam-gray {
  background-color: #334155 !important;
  color: #E2E8F0 !important;
  border: 1px solid #475569 !important;
}
.exam-dark-mode .btn-exam-gray:hover {
  background-color: #475569 !important;
}
.exam-dark-mode .exam-palette-panel {
  background-color: #1E293B !important;
}
.exam-dark-mode .palette-header {
  background-color: #334155 !important;
  color: #F1F5F9 !important;
}
.exam-dark-mode .palette-legend {
  background-color: #0F172A !important;
  border-top: 1px solid #334155 !important;
  border-bottom: 1px solid #334155 !important;
}
.exam-dark-mode .legend-header {
  background-color: #334155 !important;
  color: #F1F5F9 !important;
}
.exam-dark-mode .legend-label {
  color: #94A3B8 !important;
}
.exam-dark-mode .webcam-container {
  background-color: #0F172A !important;
  border-top: 1px solid #334155 !important;
}
.exam-dark-mode .palette-notvisited {
  background-color: #334155 !important;
  color: #94A3B8 !important;
  border-color: #475569 !important;
}

/* ==========================================================================
   APP CONTAINER & WEBSITE FOOTER STYLES
   ========================================================================== */
.app-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.main-footer {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-top: auto;
  width: 100%;
  z-index: 10;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-right a {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}

.footer-right a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES (PCs, Tablets, & Mobile Phones)
   ========================================================================== */

/* 1. Large Screens & Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-section {
    padding: 3rem 1.5rem;
  }
  .admin-grid-two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* 2. Tablets & Mobile Layouts (max-width: 992px) */
@media (max-width: 992px) {
  /* Exam Portal view responsiveness */
  .exam-mode-view {
    height: auto !important;
    overflow: auto !important;
    position: relative;
  }
  
  .exam-workspace {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }
  
  .exam-question-panel {
    width: 100% !important;
    height: auto !important;
    border-right: none !important;
    border-bottom: 2px solid var(--border);
  }
  
  .exam-palette-panel {
    width: 100% !important;
    height: auto !important;
  }
  
  .question-scroller {
    max-height: 450px !important;
    height: auto !important;
  }
  
  .palette-grid-scroller {
    height: auto !important;
    max-height: 300px !important;
  }
  
  .webcam-container {
    position: static !important;
    width: 100% !important;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
  }
  
  .webcam-view {
    height: 90px !important;
    max-width: 120px !important;
    margin: 0 auto 0.5rem auto !important;
  }
  .webcam-placeholder svg {
    width: 24px !important;
    height: 24px !important;
  }
  .camera-status-text {
    font-size: 0.75rem !important;
  }

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

/* 3. Small Screen Tablets & Smart Phones (max-width: 768px) */
@media (max-width: 768px) {
  /* Navigation header responsive styling */
  .header-container {
    flex-direction: column !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
    text-align: center;
  }
  
  .nav-links {
    gap: 1rem !important;
    justify-content: center !important;
    width: 100% !important;
    flex-wrap: wrap;
  }
  
  .header-auth {
    justify-content: center !important;
    width: 100% !important;
  }
  
  /* Hero section typography adjustments */
  .hero-content h1 {
    font-size: 2.25rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.05rem !important;
  }
  
  .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    gap: 0.75rem !important;
  }
  
  .hero-buttons .btn {
    width: 100% !important;
  }
  
  .hero-features {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-top: 3rem !important;
  }
  
  /* Candidate Dashboard stack */
  .dashboard-container {
    grid-template-columns: 1fr !important;
    margin: 1rem auto !important;
    padding: 0 0.5rem !important;
    gap: 1.25rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .dashboard-sidebar {
    position: static !important;
    width: 100% !important;
  }
  
  .dashboard-main {
    padding: 1rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .dashboard-tabs {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  
  .dash-tab {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.25rem !important;
  }
  
  .exams-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .exam-card {
    padding: 1rem !important;
  }
  
  .profile-card {
    padding: 1.25rem !important;
  }
  
  /* Administrative Control Desk styling */
  .admin-container {
    grid-template-columns: 1fr !important;
    margin: 1rem auto !important;
    padding: 0 0.5rem !important;
    gap: 1rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .admin-sidebar {
    width: 100% !important;
    border: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 0.75rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .admin-brand {
    display: none !important;
  }
  
  .admin-menu {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    gap: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    white-space: nowrap !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .admin-menu-btn {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.75rem !important;
    flex-shrink: 0 !important;
  }

  .admin-content {
    padding: 1rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .flex-row {
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
  }
  
  .flex-row .btn {
    width: 100% !important;
  }
  
  /* Exam desk layout elements */
  .exam-top-row {
    flex-direction: column !important;
    height: auto !important;
    gap: 0.4rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  
  .exam-header-title {
    text-align: center !important;
  }
  
  .exam-header-title span {
    font-size: 13px !important;
  }
  
  .candidate-roll {
    font-size: 10px !important;
    margin-top: 1px !important;
  }
  
  .exam-header-right {
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
  }
  
  .btn-exam-action {
    padding: 3px 6px !important;
    font-size: 10px !important;
  }
  
  .timer-block {
    padding: 2px 4px !important;
  }
  
  .timer-label {
    font-size: 8px !important;
  }
  
  .timer-value {
    font-size: 11px !important;
  }
  
  .exam-avatar-pic {
    width: 24px !important;
    height: 24px !important;
  }
  
  .exam-sub-bar {
    justify-content: center !important;
    gap: 0.75rem !important;
    padding: 3px 6px !important;
  }
  
  .sub-bar-btn {
    font-size: 10px !important;
  }
  
  .exam-sections-bar {
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding: 4px 6px !important;
    white-space: nowrap !important;
  }
  
  .btn-section-tab {
    flex-shrink: 0 !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
  }
  
  .exam-actions-bar {
    flex-direction: row !important;
    justify-content: space-between !important;
    height: auto !important;
    gap: 4px !important;
    padding: 4px 6px !important;
  }
  
  .left-actions, .right-actions {
    width: auto !important;
    justify-content: flex-start !important;
    gap: 4px !important;
  }
  
  .btn-exam-blue {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }
  
  .question-header {
    flex-direction: column !important;
    gap: 0.4rem !important;
    height: auto !important;
    padding: 0.4rem 0.5rem !important;
  }
  
  .question-header-controls {
    width: 100% !important;
    justify-content: space-between !important;
  }
  
  /* Table wrappers for horizontal scrolling */
  .results-table-container {
    display: block !important;
    overflow-x: auto !important;
    width: 100% !important;
    margin-top: 1rem !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .results-table-container table {
    display: table !important;
    width: 100% !important;
    min-width: 650px !important;
  }
  
  /* Footer adjustments */
  .footer-container {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }
}

/* 4. Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.85rem !important;
  }
  
  .stats-cards-grid {
    grid-template-columns: 1fr !important;
  }
  
  .profile-meta {
    grid-template-columns: 1fr !important;
  }
  
  .modal-card {
    width: 95% !important;
    padding: 1.25rem !important;
  }
  
  .admin-menu-btn {
    padding: 0.4rem 0.6rem !important;
  }
}

/* ==========================================================================
   GOOGLE TRANSLATION ENGINE CLEANUP OVERRIDES
   ========================================================================== */
html {
  margin-top: 0px !important;
  top: 0px !important;
}
body {
  top: 0px !important;
  position: static !important;
}
iframe[class*="goog"], iframe.goog-te-banner-frame, .goog-te-banner-frame, .goog-te-banner {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}
.goog-tooltip, .goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#google_translate_element, .skiptranslate {
  display: none !important;
}
#goog-gt-tt {
  display: none !important;
  visibility: hidden !important;
}
.goog-te-gadget {
  display: none !important;
}

/* Dashboard Loading Spinner */
.dashboard-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  width: 100%;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.15);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

