/* Global Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
  color: var(--text, #333);
  transition: opacity 0.25s ease;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid var(--accent, #5773ff);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --------------------
   Accessibility Themes
----------------------- */

.theme-dark {
  background-color: #111;
  color: #f5f5f5;
}
.theme-dark a { color: #9cc9ff; }
.theme-dark .card {
  background: #1c1c1c;
  border-color: #333;
}

.theme-contrast {
  color: #000;
  background: #fff !important;
}
.theme-contrast * {
  outline-color: #000 !important;
}
.theme-contrast a {
  color: #0000ff;
  font-weight: 600;
  text-decoration: underline;
}

.text-large {
  font-size: 1.1rem;
  line-height: 1.7;
}
.text-large h1, 
.text-large h2, 
.text-large h3 {
  font-size: 1.4em;
}
/* Shared Navbar Core */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
  font-family: 'Inter', sans-serif;
}

.navbar-public {
  background: transparent;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Logo + Branding */
.nav-logo-img {
  height: 32px;
  width: auto;
}

.nav-logo-text {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Auth Links */
.nav-right a {
  color: #fff;
  margin-left: 1.2rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.nav-right a:hover {
  opacity: 0.8;
}

/* Public Navbar Buttons */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 40px;
  padding: 0.5rem 1.25rem;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Toggle */
.navbar-toggler, #nav-toggle {
  border: none;
  color: #fff;
  font-size: 1.25rem;
  background: transparent;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .nav-right {
    background: rgba(15, 23, 42, 0.95);
    padding: 1rem;
  }
}
