html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ——— App navigation (prominent pill menu) ——— */
.app-navbar {
  background: linear-gradient(180deg, #ffffff 0%, #f0f3f7 100%);
  border-color: #d0d7de !important;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.app-navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #1e293b !important;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.app-navbar .navbar-toggler {
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.app-navbar-main .nav-item {
  margin-bottom: 0.15rem;
}

/* Inactive + default: readable “button” shape */
.app-navbar .app-nav-pill {
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  background-color: #e8edf4;
  border: 1px solid #cfd8e3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-navbar .app-nav-pill:hover {
  background-color: #dce4ee;
  border-color: #94b8f0;
  color: #0d47a1 !important;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.18);
}

.app-navbar .app-nav-pill.active {
  background-color: #0d6efd !important;
  color: #fff !important;
  border-color: #0a58ca !important;
  box-shadow: 0 3px 10px rgba(13, 110, 253, 0.4);
}

.app-navbar .app-nav-pill:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.app-navbar .app-nav-logout:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* Logout: outline style so it stays distinct */
.app-navbar .app-nav-logout {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 1rem !important;
  border-radius: 8px;
  color: #b91c1c !important;
  border: 1px solid #f87171;
  background-color: #fff5f5;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.app-navbar .app-nav-logout:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #fff !important;
}