/* Exam Hub - Premium Dark Aesthetic CSS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Core Theme Colors (Dark Slate) */
  --bg-base: #060913;
  --bg-surface: rgba(13, 20, 38, 0.5);
  --bg-surface-solid: #0d1426;
  --bg-card: rgba(22, 30, 54, 0.4);
  --bg-card-hover: rgba(30, 41, 74, 0.5);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Accent States & Brands */
  --color-primary: #6366f1; /* Indigo */
  --color-primary-glow: rgba(99, 102, 241, 0.15);
  --color-success: #10b981; /* Emerald */
  --color-error: #f43f5e; /* Rose */
  
  /* Exam Specific Colors */
  --color-jee: #f97316; /* Orange */
  --color-jee-glow: rgba(249, 115, 22, 0.15);
  --color-neet: #10b981; /* Teal */
  --color-neet-glow: rgba(16, 185, 129, 0.15);
  --color-cet: #3b82f6; /* Blue */
  --color-cet-glow: rgba(59, 130, 246, 0.15);

  /* Shadows & Blurs */
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
  --blur-amount: 16px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Background Blobs (Interactive Ambient Lights) */
body::before, body::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
}

body::before {
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
}

body::after {
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Utility Layouts */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header / Navigation */
header {
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: var(--transition-smooth);
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-text span {
  background: linear-gradient(135deg, var(--color-primary), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
  filter: brightness(1.1);
}

/* Hero Section */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Global Stats Banner */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(var(--blur-amount));
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Exam Section Grid */
.exam-section {
  padding-bottom: 5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.exam-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(var(--blur-amount));
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

/* Corner color accents for exam cards */
.exam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gradient-start, var(--color-primary)), var(--accent-gradient-end, #8b5cf6));
}

.exam-card.jeemain {
  --accent-gradient-start: #a855f7;
  --accent-gradient-end: #c084fc;
  --glow-shadow: rgba(168, 85, 247, 0.25);
}

.exam-card.jeeadv {
  --accent-gradient-start: #ef4444;
  --accent-gradient-end: #f87171;
  --glow-shadow: rgba(239, 68, 68, 0.25);
}

.exam-card.neet {
  --accent-gradient-start: var(--color-neet);
  --accent-gradient-end: #06b6d4;
  --glow-shadow: var(--color-neet-glow);
}

.exam-card.cet {
  --accent-gradient-start: var(--color-cet);
  --accent-gradient-end: #6366f1;
  --glow-shadow: var(--color-cet-glow);
}

.exam-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4), 
              0 0 30px 0 var(--glow-shadow, var(--color-primary-glow));
}

.exam-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.exam-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.exam-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.25rem;
}

.exam-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.exam-stat span {
  font-weight: 700;
  color: var(--text-primary);
}

.exam-action {
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent-gradient-start);
  transition: var(--transition-smooth);
}

.exam-card:hover .exam-action {
  gap: 0.5rem;
}

/* Exam Detail Page Layout */
.exam-detail-header {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.exam-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  border: 1px solid currentColor;
}

.exam-badge.jeemain { color: #a855f7; background-color: rgba(168, 85, 247, 0.1); }
.exam-badge.jeeadv { color: #ef4444; background-color: rgba(239, 68, 68, 0.1); }
.exam-badge.neet { color: var(--color-neet); background-color: var(--color-neet-glow); }
.exam-badge.cet { color: var(--color-cet); background-color: var(--color-cet-glow); }

.detail-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.detail-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 800px;
}

/* Filter Controls Bar */
.search-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.search-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
  background: var(--bg-card);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.filter-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 10px var(--color-primary-glow);
}

/* Specific theme highlights on active chips */
.exam-page-jee .filter-chip.active { background: var(--color-jee); border-color: var(--color-jee); box-shadow: 0 4px 10px var(--color-jee-glow); }
.exam-page-neet .filter-chip.active { background: var(--color-neet); border-color: var(--color-neet); box-shadow: 0 4px 10px var(--color-neet-glow); }
.exam-page-cet .filter-chip.active { background: var(--color-cet); border-color: var(--color-cet); box-shadow: 0 4px 10px var(--color-cet-glow); }

/* Resource Grid */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0 5rem;
}

.resource-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-smooth);
}

.resource-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.resource-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.resource-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.meta-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.format-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.format-icon.pdf {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.format-icon.video {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.format-icon.link {
  background: rgba(14, 165, 233, 0.15);
  color: #0ea5e9;
}

.resource-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.resource-body p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.resource-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  margin-top: auto;
}

.action-left {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.action-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.action-btn.like-btn.liked {
  color: var(--color-error);
}

.action-btn.delete-btn:hover {
  color: var(--color-error);
  background: rgba(244, 63, 94, 0.1);
}

.btn-open {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-open:hover {
  text-decoration: underline;
}

/* Empty State styling */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-surface);
  border: 2px dashed rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Add Resource Floating Button */
.fab {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 99;
  transition: var(--transition-smooth);
}

.fab:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6);
}

/* Modals & Dialogs (Overlay) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-btn:hover {
  color: var(--text-primary);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  padding: 0.75rem;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
  background: rgba(255, 255, 255, 0.06);
}

.form-select option {
  background-color: var(--bg-surface-solid);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-surface-solid);
  border-left: 4px solid var(--color-primary);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 250px;
  animation: slideIn 0.3s ease forwards;
}

.toast.success {
  border-left-color: var(--color-success);
}

.toast.error {
  border-left-color: var(--color-error);
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: rgba(6, 9, 19, 0.5);
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* Responsive Rules */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .stats-banner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .container {
    padding: 0 1.5rem;
  }
  .fab {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* ==========================================
   Custom Themes Engine
   ========================================== */

/* Snowy Light Mode (Redone: High-Contrast Premium Light Theme) */
body.theme-light {
  --bg-base: #f8fafc;
  --bg-surface: #f1f5f9;
  --bg-surface-solid: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #e2e8f0;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.16);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --color-primary: #4f46e5;
  --color-primary-glow: rgba(79, 70, 229, 0.12);
}

body.theme-light::before, body.theme-light::after {
  opacity: 0.04;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

body.theme-light footer {
  background: #f1f5f9;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text-secondary);
}

body.theme-light header {
  background: rgba(255, 255, 255, 0.8) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.theme-light .logo-text {
  color: #1e1b4b !important;
}

body.theme-light .hero h1 {
  background: linear-gradient(135deg, #0f172a 0%, #4f46e5 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

body.theme-light .hero p {
  color: #334155 !important;
}

body.theme-light .search-wrapper {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04) !important;
}

body.theme-light .search-input {
  color: #0f172a !important;
}

body.theme-light .search-input::placeholder {
  color: #94a3b8 !important;
}

body.theme-light .search-icon {
  color: #64748b !important;
}

body.theme-light .btn-secondary {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #334155 !important;
}

body.theme-light .btn-secondary:hover {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  color: #0f172a !important;
}

body.theme-light .btn-secondary svg {
  color: #475569 !important;
}

body.theme-light .filter-chip {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
}

body.theme-light .filter-chip:hover {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  color: #0f172a !important;
}

body.theme-light .filter-chip.active {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
}

body.theme-light .exam-card, 
body.theme-light .resource-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.03) !important;
}

body.theme-light .exam-card:hover, 
body.theme-light .resource-card:hover {
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 16px 32px -10px rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .modal-content {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.16) !important;
}

body.theme-light .modal-header h2 {
  color: #0f172a !important;
}

body.theme-light .form-label {
  color: #334155 !important;
}

body.theme-light .form-input, 
body.theme-light .form-textarea, 
body.theme-light .form-select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

body.theme-light .form-input:focus, 
body.theme-light .form-textarea:focus, 
body.theme-light .form-select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

body.theme-light .form-input::placeholder, 
body.theme-light .form-textarea::placeholder {
  color: #94a3b8 !important;
}

body.theme-light .form-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

body.theme-light #search-results {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .search-result-item {
  border-bottom: 1px solid rgba(15, 23, 42, 0.04) !important;
}

body.theme-light .search-result-item:hover {
  background: #f8fafc !important;
}

body.theme-light .search-result-item h4 {
  color: #0f172a !important;
}

body.theme-light .no-results-msg {
  color: #64748b !important;
}

body.theme-light .btn-open {
  background: rgba(79, 70, 229, 0.06) !important;
  color: var(--color-primary) !important;
}

body.theme-light .btn-open:hover {
  background: var(--color-primary) !important;
  color: #ffffff !important;
}

body.theme-light .theme-opt {
  color: #475569 !important;
}

body.theme-light .theme-opt:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Cyberpunk Neon Theme */
body.theme-cyberpunk {
  --bg-base: #06020c;
  --bg-surface: rgba(24, 8, 48, 0.5);
  --bg-surface-solid: #120422;
  --bg-card: rgba(36, 12, 70, 0.4);
  --bg-card-hover: rgba(56, 18, 108, 0.5);
  --border-color: rgba(255, 0, 128, 0.25);
  --border-hover: rgba(0, 255, 240, 0.5);
  
  --text-primary: #ffffff;
  --text-secondary: #ff75d1;
  --text-muted: #00f3ff;
  
  --color-primary: #ff007f;
  --color-primary-glow: rgba(255, 0, 127, 0.2);
}

/* Emerald Forest Theme */
body.theme-emerald {
  --bg-base: #020705;
  --bg-surface: rgba(10, 30, 24, 0.5);
  --bg-surface-solid: #061813;
  --bg-card: rgba(14, 42, 34, 0.4);
  --bg-card-hover: rgba(22, 66, 54, 0.5);
  --border-color: rgba(16, 185, 129, 0.15);
  --border-hover: rgba(52, 211, 153, 0.4);
  
  --text-primary: #ecfdf5;
  --text-secondary: #a7f3d0;
  --text-muted: #34d399;
  
  --color-primary: #10b981;
  --color-primary-glow: rgba(16, 185, 129, 0.15);
}

/* Aura Purple Theme */
body.theme-aura {
  --bg-base: #07040f;
  --bg-surface: rgba(20, 12, 40, 0.5);
  --bg-surface-solid: #0d071c;
  --bg-card: rgba(30, 18, 60, 0.4);
  --bg-card-hover: rgba(45, 27, 90, 0.5);
  --border-color: rgba(168, 85, 247, 0.15);
  --border-hover: rgba(192, 132, 252, 0.4);
  
  --text-primary: #faf5ff;
  --text-secondary: #e9d5ff;
  --text-muted: #c084fc;
  
  --color-primary: #a855f7;
  --color-primary-glow: rgba(168, 85, 247, 0.15);
}

/* Retro Amber Theme */
body.theme-retro {
  --bg-base: #000000;
  --bg-surface: rgba(25, 15, 0, 0.5);
  --bg-surface-solid: #140b00;
  --bg-card: rgba(38, 22, 0, 0.4);
  --bg-card-hover: rgba(57, 33, 0, 0.5);
  --border-color: rgba(245, 158, 11, 0.2);
  --border-hover: rgba(245, 158, 11, 0.5);
  
  --text-primary: #fffbeb;
  --text-secondary: #fef3c7;
  --text-muted: #fbbf24;
  
  --color-primary: #f59e0b;
  --color-primary-glow: rgba(245, 158, 11, 0.15);
}

/* Theme Menu UI Styling */
.theme-select-container {
  position: relative;
  display: inline-block;
}

.theme-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 170px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
}

.theme-dropdown-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.theme-opt {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-radius: calc(var(--radius-sm) - 4px);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-opt:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.theme-opt.active {
  background: var(--color-primary);
  color: #fff !important;
}
