/* Interview Exam System - Red Theme with Dark Fonts */

:root {
  /* Primary Colors - Red Theme */
  --primary-color: #e60000;
  --primary-dark: #cc0000;
  --primary-light: #ff3333;
  --secondary-color: #740404;
  --accent-color: #ff6b35;
  --bg-color: #f8fafc;
  --bg-secondary: #f1f5f9;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #ff3333);
  --gradient-accent: linear-gradient(135deg, var(--accent-color), #fb923c);

  /* Extended color palette for compatibility */
  --primary-50: #fef2f2;
  --primary-100: #fee2e2;
  --primary-200: #fecaca;
  --primary-300: #fca5a5;
  --primary-400: #f87171;
  --primary-500: var(--primary-color);
  --primary-600: var(--primary-dark);
  --primary-700: #b91c1c;
  --primary-800: #991b1b;
  --primary-900: #7f1d1d;

  /* Secondary Colors - All Dark for Text */
  --secondary-50: var(--bg-color);
  --secondary-100: var(--bg-secondary);
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: var(--text-muted);
  --secondary-500: var(--text-light);
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: var(--text-dark);
  --secondary-900: #0f172a;

  /* Text Colors - Always Dark */
  --text-primary: var(--text-dark);
  --text-secondary: var(--text-dark);

  /* Accent Colors */
  --accent-purple-500: #8b5cf6;
  --accent-purple-600: #7c3aed;
  --accent-indigo-500: #6366f1;
  --accent-indigo-600: #4f46e5;

  /* Semantic Colors */
  --success-50: #f0fdf4;
  --success-100: #dcfce7;
  --success-500: var(--success);
  --success-600: #059669;
  --success-700: #047857;
  --success-800: #065f46;

  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-500: var(--warning);
  --warning-600: #d97706;
  --warning-700: #b45309;

  --danger-50: #fef2f2;
  --danger-100: #fee2e2;
  --danger-500: var(--error);
  --danger-600: #dc2626;
  --danger-700: #b91c1c;

  --info-50: #eff6ff;
  --info-100: #dbeafe;
  --info-500: #06b6d4;
  --info-600: #0891b2;

  /* Modern Gradients */
  --gradient-success: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
  --gradient-purple: linear-gradient(135deg, var(--accent-purple-500) 0%, var(--accent-purple-600) 100%);
  --gradient-warm: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  --gradient-cool: linear-gradient(135deg, #4ecdc4 0%, var(--primary-500) 100%);

  /* Enhanced Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-colored: 0 10px 15px -3px rgba(230, 0, 0, 0.1), 0 4px 6px -2px rgba(230, 0, 0, 0.05);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: var(--border-radius);
  --radius-2xl: 20px;
  --radius-full: 9999px;
}

body {
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  line-height: 1.6;
  color: var(--text-primary);
}

/* Enhanced Typography - All Dark Fonts */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.4;
  color: var(--text-primary);
}

.display-4 {
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text-primary);
}

.lead {
  font-weight: 400;
  color: var(--text-muted);
}

/* Text Utilities */
.text-primary {
  color: var(--text-primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-light {
  color: var(--text-light) !important;
}

/* Modern Cards and Containers */
.card {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  transition: var(--transition);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(230, 0, 0, 0.2);
}

.card-modern {
  background: var(--white);
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.card-modern:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-colored);
}

.exam-container {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  margin-top: 20px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

/* Enhanced Buttons */
.btn {
  font-weight: 500;
  letter-spacing: 0.025em;
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  border: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  font-size: 0.875rem;
  cursor: pointer;
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover:before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-colored);
  color: var(--white);
}

.btn-success {
  background: var(--gradient-success);
  color: var(--white);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--success-600) 0%, var(--success-700) 100%);
  transform: translateY(-1px);
  color: var(--white);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-500) 0%, var(--warning-600) 100%);
  color: var(--white);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-500) 0%, var(--danger-600) 100%);
  color: var(--white);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-colored);
}

.btn-ghost {
  background: var(--secondary-100);
  color: var(--text-primary);
  border: 1px solid var(--secondary-200);
}

.btn-ghost:hover {
  background: var(--secondary-200);
  color: var(--text-primary);
}

.btn-floating {
  border-radius: var(--radius-full);
  width: 56px;
  height: 56px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: var(--gradient-primary);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-xl);
}

/* Enhanced Form Controls */
.form-control {
  border-radius: var(--radius-lg);
  border: 2px solid var(--secondary-200);
  padding: 14px 16px;
  transition: all 0.2s ease;
  font-size: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-xs);
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
  background: var(--white);
  outline: none;
  color: var(--text-primary);
}

.form-control:hover {
  border-color: var(--secondary-300);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-select {
  border-radius: var(--radius-lg);
  border: 2px solid var(--secondary-200);
  padding: 14px 16px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  color: var(--text-primary);
  background-color: var(--white);
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.025em;
}

.input-group {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Question Bank Styles */
.question-bank-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  min-height: 600px;
  border: 1px solid var(--secondary-200);
  color: var(--text-primary);
}

.question-card {
  background: var(--white);
  border: 2px solid var(--secondary-100);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}

.question-card:hover {
  border-color: var(--primary-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.question-card.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-50) 0%, #fef2f2 100%);
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
  color: var(--text-primary);
}

.question-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.question-card.selected::before {
  transform: scaleY(1);
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.question-type-badge {
  background: var(--primary-color);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.question-type-badge.mcq {
  background: var(--gradient-cool);
  color: var(--white);
}

.question-type-badge.text {
  background: var(--gradient-success);
  color: var(--white);
}

.question-type-badge.essay {
  background: var(--gradient-purple);
  color: var(--white);
}

.difficulty-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.difficulty-badge.easy {
  background: var(--success-100);
  color: var(--success-800);
  border: 1px solid var(--success-200);
}

.difficulty-badge.medium {
  background: var(--warning-100);
  color: var(--warning-700);
  border: 1px solid var(--warning-200);
}

.difficulty-badge.hard {
  background: var(--danger-100);
  color: var(--danger-700);
  border: 1px solid var(--danger-200);
}

.category-tag {
  background: var(--secondary-100);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-lg);
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid var(--secondary-200);
}

.time-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-light);
  font-size: 0.8rem;
  background: var(--secondary-50);
  padding: 4px 8px;
  border-radius: var(--radius-md);
}

/* Exam Builder Styles */
.exam-builder {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  min-height: 600px;
  border: 1px solid var(--secondary-200);
  color: var(--text-primary);
}

.exam-questions-list {
  min-height: 400px;
  background: var(--secondary-50);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--secondary-100);
}

.exam-question-item {
  background: var(--white);
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  color: var(--text-primary);
}

.exam-question-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-300);
  transform: translateY(-1px);
}

.exam-question-item .drag-handle {
  cursor: grab;
  color: var(--secondary-400);
  margin-right: 12px;
  padding: 4px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.exam-question-item .drag-handle:hover {
  background: var(--secondary-100);
  color: var(--text-muted);
}

.exam-question-item .drag-handle:active {
  cursor: grabbing;
}

.exam-question-content {
  flex: 1;
  min-width: 0;
}

.exam-question-title {
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exam-question-info {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.exam-question-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.points-input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.9rem;
  background: var(--secondary-50);
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.points-input:focus {
  border-color: var(--primary-color);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.1);
  color: var(--text-primary);
}

/* Search and Filter Styles */
.search-filter-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--secondary-200);
  color: var(--text-primary);
}

.search-input {
  border-radius: var(--radius-full);
  border: 2px solid var(--secondary-200);
  padding: 12px 24px 12px 48px;
  font-size: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E")
    no-repeat 16px center;
  background-size: 20px;
  transition: all 0.2s ease;
  background-color: var(--secondary-50);
  color: var(--text-primary);
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
  outline: none;
  background-color: var(--white);
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-light);
}

.filter-chip {
  background: var(--secondary-100);
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-weight: 500;
  color: var(--text-primary);
}

.filter-chip:hover {
  background: var(--secondary-200);
  border-color: var(--secondary-300);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-colored);
}

/* Modal Enhancements */
.modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  border: 1px solid var(--secondary-200);
  color: var(--text-primary);
}

.modal-header {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: 24px;
}

.modal-title {
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--white);
}

.modal-body {
  padding: 24px;
  background: var(--white);
  color: var(--text-primary);
}

.modal-footer {
  background: var(--secondary-50);
  border: none;
  padding: 20px 24px;
  border-top: 1px solid var(--secondary-200);
  color: var(--text-primary);
}

/* Timer Styles */
.timer-circle {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: conic-gradient(var(--success-500) 0deg, var(--success-500) 0deg, var(--secondary-200) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.timer-circle.warning {
  background: conic-gradient(var(--warning-500) 0deg, var(--warning-500) 0deg, var(--secondary-200) 0deg);
}

.timer-circle.danger {
  background: conic-gradient(var(--danger-500) 0deg, var(--danger-500) 0deg, var(--secondary-200) 0deg);
  animation: pulse 1s infinite;
}

.timer-circle::before {
  content: "";
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: var(--radius-full);
  position: absolute;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-text {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

/* Progress Bar */
.progress-bar-custom {
  height: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--secondary-200);
}

.progress-bar {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
  animation: progress-bar-stripes 1s linear infinite;
}

/* Enhanced Sidebar */
.sidebar {
  background: var(--gradient-secondary);
  min-height: 100vh;
  box-shadow: var(--shadow-xl);
  border-right: 1px solid var(--secondary-700);
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  margin: 6px 16px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--primary-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Enhanced Tables */
.table-responsive {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
  border: 1px solid var(--secondary-200);
}

.table {
  margin-bottom: 0;
  color: var(--text-primary);
}

.table th {
  background: var(--secondary-50);
  border: none;
  font-weight: 600;
  color: var(--text-primary);
  padding: 16px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--secondary-200);
}

.table td {
  border: none;
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--secondary-100);
  color: var(--text-primary);
}

.table tbody tr:hover {
  background: var(--secondary-50);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.badge-score {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.badge-score.high {
  background: var(--success-100);
  color: var(--success-800);
  border: 1px solid var(--success-200);
}

.badge-score.medium {
  background: var(--warning-100);
  color: var(--warning-700);
  border: 1px solid var(--warning-200);
}

.badge-score.low {
  background: var(--danger-100);
  color: var(--danger-700);
  border: 1px solid var(--danger-200);
}

/* Statistics Cards */
.stats-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--secondary-200);
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}

.stats-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.stats-card.success::before {
  background: var(--gradient-success);
}

.stats-card.warning::before {
  background: linear-gradient(135deg, var(--warning-500) 0%, var(--warning-600) 100%);
}

.stats-card.danger::before {
  background: linear-gradient(135deg, var(--danger-500) 0%, var(--danger-600) 100%);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.stats-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--primary-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.dashboard-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--secondary-200);
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

.status-indicator.active {
  background: var(--success-100);
  color: var(--success-800);
  border: 1px solid var(--success-200);
}

.status-indicator.inactive {
  background: var(--secondary-100);
  color: var(--text-muted);
  border: 1px solid var(--secondary-200);
}

.status-indicator.pending {
  background: var(--warning-100);
  color: var(--warning-700);
  border: 1px solid var(--warning-200);
}

.status-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: currentColor;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes progress-bar-stripes {
  0% {
    background-position: 1rem 0;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Utility Classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in {
  animation: slideIn 0.4s ease-out;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.loading-shimmer {
  background: linear-gradient(90deg, var(--secondary-100) 25%, var(--secondary-200) 50%, var(--secondary-100) 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.shadow-soft {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-primary) border-box;
}

/* Responsive Design */
@media (max-width: 768px) {
  .timer-circle {
    width: 60px;
    height: 60px;
  }

  .timer-circle::before {
    width: 45px;
    height: 45px;
  }

  .timer-text {
    font-size: 14px;
    color: var(--text-primary);
  }

  .question-card {
    padding: 16px;
  }

  .stats-number {
    font-size: 2rem;
  }

  .btn {
    padding: 10px 20px;
  }

  .search-filter-bar {
    padding: 16px;
  }

  .search-input {
    padding: 10px 20px 10px 40px;
  }

  .exam-question-item {
    padding: 12px;
  }

  .sidebar .nav-link {
    padding: 12px 20px;
    margin: 4px 12px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-icon {
    width: 40px;
    height: 40px;
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 576px) {
  .card {
    border-radius: var(--radius-lg);
    margin: 0 8px;
  }

  .exam-container {
    border-radius: var(--radius-lg);
    margin: 16px 8px;
  }

  .btn-floating {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }

  .modal-body,
  .modal-header,
  .modal-footer {
    padding: 16px;
  }

  .dashboard-card {
    padding: 20px;
  }
}

/* Print Styles */
@media print {
  .sidebar,
  .btn,
  .modal,
  .btn-floating {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid var(--secondary-300);
  }

  body {
    background: var(--white);
  }

  * {
    color: black !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--text-primary);
  }

  .btn {
    border: 2px solid currentColor;
  }

  .form-control {
    border: 2px solid var(--text-primary);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


.white-logo {
  filter: brightness(0) invert(1); /* Makes the logo white */
}

.logo-container {
  background-color: transparent; /* Ensures no background */
}
