body {
  padding-top: 4.5rem;
  background-color: #f8f9fa;
}
.navbar {
  background-color: rgba(242, 222, 184, 0.92);
}

.navbar.fade-on-scroll {
  transition: opacity 0.35s ease, transform 0.35s ease;
  backdrop-filter: blur(10px);
}

.navbar.fade-on-scroll.is-hidden {
  opacity: 0;
  transform: translateY(-32px);
  pointer-events: none;
}

.message-flash-container {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1080;
  width: min(420px, 90vw);
}

.message-flash-container .alert {
  margin-bottom: 0.75rem;
  border-radius: 1rem;
}

.message-flash-container .alert:last-child {
  margin-bottom: 0;
}

.navbar-brand img {
  max-height: 56px;
  width: auto;
}

body.finance-dashboard .navbar-brand img,
body.finance-reports .navbar-brand img,
body.finance-pending .navbar-brand img {
  max-height: 48px;
}
.nav-link{
  color: #21426b;
}

.main-wrapper {
  flex: 1 0 auto;
  margin-top: 0;
  display: flex;
  width: 100%;
  min-height: calc(100vh - 4.5rem);
}

.main-wrapper.no-sidebar {
  flex-direction: column;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background-color: #fdf1db;
  transition: transform 0.3s ease;
}

.sidebar .nav-link {
  color: #212529;
  padding: 0.65rem 0;
  font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.08);
}

.main-content {
  flex: 1 1 auto;
  padding: 2rem;
}

.home-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card-link:hover,
.home-card-link:focus {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 2rem rgba(13, 110, 253, 0.15);
}

.home-card-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33, 66, 107, 0.12);
  color: #21426b;
  font-size: 1.5rem;
}

.home-admin-dashboard .home-card-icon-wrapper {
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
}

.home-admin-dashboard .card {
  border-radius: 1rem;
}

.footer {
  margin-top: auto;
}

body.auth-page {
  background: linear-gradient(135deg, rgba(253, 241, 219, 0.8), rgba(33, 66, 107, 0.65));
}

body.auth-page .navbar {
  background-color: rgba(242, 222, 184, 0.9);
  backdrop-filter: blur(6px);
}

body.auth-page .main-wrapper {
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 4.5rem);
}

body.auth-page .main-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3.5rem;
}

.auth-section {
  width: 100%;
}

.auth-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2.5rem 2.25rem;
  border: 1px solid rgba(33, 66, 107, 0.08);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(253, 241, 219, 0.9), rgba(33, 66, 107, 0.7));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.auth-logo-img {
  max-height: 80px;
}

.auth-header h1 {
  color: #21426b;
}

.auth-form .form-control {
  border-radius: 0.85rem;
  border-color: rgba(33, 66, 107, 0.25);
  padding: 0.75rem 1rem;
}

.auth-form .form-control:focus {
  border-color: rgba(33, 66, 107, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(33, 66, 107, 0.15);
}

.auth-form .btn-primary {
  background-color: #21426b;
  border-color: #21426b;
  border-radius: 0.85rem;
}

.auth-form .btn-primary:hover,
.auth-form .btn-primary:focus {
  background-color: #1a3556;
  border-color: #1a3556;
}

.auth-links a {
  text-decoration: none;
}

.auth-links a:hover,
.auth-links a:focus {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .message-flash-container {
    top: 4.75rem;
  }
}

@media (min-width: 992px) {
  .main-wrapper:not(.no-sidebar) {
    margin-left: 0;
  }

  .main-wrapper:not(.no-sidebar) .main-content {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (max-width: 991.98px) {
  .main-wrapper {
    flex-direction: column;
  }

#sidebar {
  position: fixed;
  top: 4.5rem;
  bottom: 0;
  left: 0;
    z-index: 1040;
    overflow-y: auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
  }

  body.sidebar-open #sidebar {
    transform: translateX(0);
  }

  body.sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 1030;
    pointer-events: auto;
  }

  .main-content {
    padding: 1.5rem 1.25rem 2.5rem;
  }
}
