/* Science Connect Custom Modern Styles */

:root {
  --font-scale: 1rem;
}

body {
  font-size: var(--font-scale);
}

/* WCAG High Contrast Mode */
body.high-contrast {
  background-color: #000000 !important;
  color: #FFFFFF !important;
}

body.high-contrast * {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border-color: #FFFF00 !important;
  box-shadow: none !important;
}

body.high-contrast a,
body.high-contrast button {
  color: #FFFF00 !important;
  text-decoration: underline !important;
}

body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
  background-color: #111111 !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFF00 !important;
}

/* Custom Focus Ring for A11y */
:focus-visible {
  outline: 3px solid #FF6600 !important;
  outline-offset: 2px !important;
}

/* Smooth Transitions for Views */
.page-view {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Glassmorphism helpers */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Active Navigation indicator */
.nav-link.active-nav {
  color: #FF6600 !important;
  position: relative;
}

.nav-link.active-nav::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 14px;
  right: 14px;
  height: 2.5px;
  background-color: #FF6600;
  border-radius: 9999px;
}
