/*
  Shared non-Tailwind fallback styles.
  Tailwind is compiled to static/css/tailwind.css via npm scripts.
*/

body {
  font-family: "Inter", sans-serif;
  background-color: #f8f9ff;
  color: #0d1c2e;
}

/* Prevent layout shift when switching between pages with/without vertical scrollbar */
html {
  scrollbar-gutter: stable;
}

/* Fallback for older browsers that do not support scrollbar-gutter */
@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

h1,
h2,
h3,
h4,
.headline {
  font-family: "Manrope", sans-serif;
}

/* Sidebar base layer for layout-critical behavior and safe fallbacks */
.app-sidebar {
  background-color: #eff4ff;
  border-right: 1px solid #d5e3fc;
  color: #0d1c2e;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Sidebar shell + nav link safety net */
.app-sidebar nav a,
.app-sidebar .p-6 a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.app-nav-link {
  color: #534434;
}

.app-nav-link:hover {
  background-color: #e6eeff;
}

.app-nav-link-active {
  background-image: linear-gradient(to right, #2BCEDE 0%, #40D050 18%, #F9A043 100%);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.app-nav-link-active:active {
  transform: scale(0.98);
}

/* Layout-critical rule: keep sidebar logo below fixed mobile hamburger button */
@media (max-width: 1023.98px) {
  .sidebar-brand-offset {
    padding-top: 5.5rem !important;
    padding-bottom: 1.75rem !important;
  }
}
