﻿/* Optional wrapper class controlled by your app toggle:
   <div class="theme-light"> ... or ... <div class="theme-dark">
*/
.theme-light .navbar { /* empty: uses default light rules */ }

.theme-dark .navbar { /* dark rules override below */ }

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
  background: linear-gradient(90deg, #ffffff 0%, #002B5C 100%);
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 300ms ease, color 200ms ease, box-shadow 300ms ease;
  /* Optional spacing for nav items */
  /* Responsive typography */
  /* Prefer reduced motion */
}
@supports not (backdrop-filter: blur(1px)) {
  .navbar {
    background: rgba(255, 255, 255, 0.85);
  }
}
.navbar .navbar-brand,
.navbar .nav-link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: color 200ms ease, text-decoration 200ms ease, opacity 200ms ease;
}
.navbar .navbar-brand:hover,
.navbar .nav-link:hover {
  color: #0ea5e9;
  text-decoration: underline;
}
.navbar .navbar-brand:focus-visible,
.navbar .nav-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  text-decoration: none;
}
.navbar .nav-link.active {
  color: #0ea5e9;
  font-weight: 700;
  text-decoration: underline;
}
.navbar .nav-list {
  display: flex;
  gap: 1rem;
  /* Stack links on mobile if you use a simple row layout */
}
@media (max-width: 640px) {
  .navbar .nav-list {
    gap: 0.5rem;
  }
}
.navbar .navbar-title {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .navbar {
    transition: none !important;
  }
  .navbar .navbar-brand,
  .navbar .nav-link {
    transition: none !important;
  }
}

/* System dark mode */
@media (prefers-color-scheme: dark) {
  .navbar {
    background: linear-gradient(90deg, #0b0b0e 0%, #1f2937 100%);
    color: #adb5bd;
  }
  .navbar .navbar-brand,
  .navbar .nav-link {
    color: #adb5bd;
  }
  .navbar .navbar-brand:hover,
  .navbar .nav-link:hover {
    color: #93c5fd;
    text-decoration: underline;
  }
  .navbar .nav-link.active {
    color: #93c5fd;
  }
  @supports not (backdrop-filter: blur(1px)) {
    .navbar {
      background: rgba(15, 15, 20, 0.85);
    }
  }
}
/* App-level toggle via class overrides system preference */
.theme-dark .navbar {
  background: linear-gradient(90deg, #0b0b0e 0%, #1f2937 100%) !important;
  color: #adb5bd !important;
}
.theme-dark .navbar .navbar-brand,
.theme-dark .navbar .nav-link {
  color: #adb5bd !important;
}
.theme-dark .navbar .navbar-brand:hover,
.theme-dark .navbar .nav-link:hover {
  color: #93c5fd !important;
}
.theme-dark .navbar .nav-link.active {
  color: #93c5fd !important;
}
@supports not (backdrop-filter: blur(1px)) {
  .theme-dark .navbar {
    background: rgba(15, 15, 20, 0.85) !important;
  }
}

/* Optional: make the app bar slightly denser on mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0.75rem;
  }
  .navbar .navbar-title {
    font-size: 1rem;
  }
}
.interactive-heading {
  font-weight: 600;
  color: #343a40;
  transition: color 0.3s ease, transform 0.3s ease;
}
.interactive-heading:hover {
  color: #0ea5e9;
  transform: scale(1.05);
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  .interactive-heading {
    color: #adb5bd;
  }
  .interactive-heading:hover {
    color: #93c5fd;
  }
}

h1.interactive-heading {
  font-size: 2.5 0.5rem;
}
@media (max-width: 1024px) {
  h1.interactive-heading {
    font-size: 2.2rem;
  }
}
@media (max-width: 768px) {
  h1.interactive-heading {
    font-size: 2rem;
  }
}

h2.interactive-heading {
  font-size: 2rem;
}
@media (max-width: 1024px) {
  h2.interactive-heading {
    font-size: 1.8rem;
  }
}
@media (max-width: 768px) {
  h2.interactive-heading {
    font-size: 1.6rem;
  }
}

h3.interactive-heading {
  font-size: 1.75rem;
}
@media (max-width: 1024px) {
  h3.interactive-heading {
    font-size: 1.6rem;
  }
}
@media (max-width: 768px) {
  h3.interactive-heading {
    font-size: 1.4rem;
  }
}

h4.interactive-heading {
  font-size: 1.5rem;
}
@media (max-width: 1024px) {
  h4.interactive-heading {
    font-size: 1.4rem;
  }
}
@media (max-width: 768px) {
  h4.interactive-heading {
    font-size: 1.2rem;
  }
}

.navbar .btn-primary {
  background-color: #4da3ff;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.navbar .btn-primary:hover {
  background-color: #005a9e;
}

.navbar .btn-outline {
  background-color: transparent;
  border: 1px solid #4da3ff;
  color: #0078d4;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
.navbar .btn-outline:hover {
  background-color: #4da3ff;
  color: #fff;
}

.user-menu .dropdown {
  position: relative;
  text-align: end;
}
.user-menu .dropdown .dropdown-toggle {
  display: block;
  text-decoration: none;
  color: inherit;
}
.user-menu .dropdown .dropdown-toggle img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  transition: box-shadow 0.3s ease;
}
.user-menu .dropdown .dropdown-toggle img:hover {
  box-shadow: 0 0 0 2px #0ea5e9;
}
.user-menu .dropdown .dropdown-menu {
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  color: #0f172a;
}
.user-menu .dropdown .dropdown-menu li {
  padding: 0.25rem 0.5rem;
}
.user-menu .dropdown .dropdown-menu li a.dropdown-item {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #0f172a;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.user-menu .dropdown .dropdown-menu li a.dropdown-item i {
  font-size: 1.2rem;
  margin-right: 0.25rem;
}
.user-menu .dropdown .dropdown-menu li a.dropdown-item:hover {
  background-color: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}
.user-menu .dropdown .dropdown-menu .dropdown-divider {
  margin: 0.25rem 0;
  border-color: #dee2e6;
}
@media (prefers-color-scheme: dark) {
  .user-menu .dropdown-menu {
    background-color: #1e1e1e;
    color: #adb5bd;
  }
  .user-menu .dropdown-menu a.dropdown-item {
    color: #adb5bd;
  }
  .user-menu .dropdown-menu a.dropdown-item:hover {
    background-color: rgba(147, 197, 253, 0.1);
    color: #93c5fd;
  }
  .user-menu .dropdown-menu .dropdown-divider {
    border-color: #2c2c2c;
  }
  .user-menu .dropdown-toggle img:hover {
    box-shadow: 0 0 0 2px #93c5fd;
  }
}
@media (max-width: 576px) {
  .user-menu .dropdown-menu {
    width: 100%;
    text-align: center;
  }
  .user-menu .dropdown-menu a.dropdown-item {
    justify-content: center;
  }
}

.footer {
  background-color: #1e1e1e;
  color: #adb5bd;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.875rem;
}
.footer a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: rgb(197.0727272727, 223.8909090909, 253.9272727273);
  text-decoration: underline;
}
.footer .footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .footer .footer-content {
    padding: 1rem;
  }
}
@media (min-width: 768px) {
  .footer .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer .social-icons {
  display: flex;
  gap: 0.5rem;
}
.footer .social-icons i {
  font-size: 1.2rem;
  transition: color 0.3s ease;
}
.footer .social-icons i:hover {
  color: #0078d4;
}

.footer-logo {
  display: inline-block;
}
.footer-logo img {
  height: 140px;
  width: auto;
  object-fit: contain;
}
.footer-logo:hover {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-bottom {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #adb5bd;
}
@media (prefers-color-scheme: light) {
  .footer-bottom {
    color: #0f172a;
  }
}

@media (prefers-color-scheme: light) {
  .footer {
    background-color: #ffffff;
    color: #0f172a;
  }
  .footer a {
    color: #0ea5e9;
  }
  .footer a:hover {
    color: rgb(11.1093117409, 130.9311740891, 184.8906882591);
  }
}
