:root {
  --brand-primary: #1e3a5f;
  --brand-accent: #2f80ed;
}

body {
  background-color: #f4f6f9;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.app-navbar {
  background-color: var(--brand-primary);
}

.app-sidebar {
  width: 250px;
  min-height: calc(100vh - 56px);
  background-color: #16293f;
  flex-shrink: 0;
}

.app-sidebar .nav-link {
  color: rgba(255,255,255,.75);
  border-radius: .375rem;
  padding: .55rem .75rem;
  margin-bottom: 2px;
  font-size: .93rem;
}

.app-sidebar .nav-link:hover {
  background-color: rgba(255,255,255,.08);
  color: #fff;
}

.app-sidebar .nav-link.active {
  background-color: var(--brand-accent);
  color: #fff;
}

.app-main {
  width: 100%;
}

.card {
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  border-radius: .6rem;
}

.stat-card {
  border-left: 4px solid var(--brand-accent);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1030;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100vh;
    z-index: 1040;
    transition: left .25s ease;
    padding-top: 60px;
    overflow-y: auto;
  }
  .app-sidebar.show {
    left: 0;
  }
  .sidebar-backdrop.show {
    display: block;
  }
}

.badge-status-active { background-color: #198754; }
.badge-status-inactive { background-color: #6c757d; }
.badge-status-paid { background-color: #198754; }
.badge-status-partial { background-color: #fd7e14; }
.badge-status-unpaid { background-color: #dc3545; }
