:root {
  --brand: #000254;
  --brand-light: #10166b;
  --brand-soft: #eef0fb;
  --accent: #ffb100;
}

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

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--brand);
  min-height: 100vh;
  width: 250px;
  position: fixed;
  top: 0; left: 0;
  color: #fff;
  z-index: 1000;
  transition: transform .25s ease;
}
.sidebar .brand {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .5px;
}
.sidebar .brand small { display:block; font-weight:400; opacity:.7; font-size:.7rem; }
.sidebar a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: .92rem;
  border-left: 3px solid transparent;
}
.sidebar a:hover, .sidebar a.active {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-left: 3px solid var(--accent);
}
.sidebar .logout-btn {
  position: absolute;
  bottom: 0;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.12);
}

.main-content { margin-left: 250px; padding: 24px 28px; }

@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; }
}

/* ---------- Topbar ---------- */
.topbar {
  background: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,2,84,.06);
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Cards ---------- */
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,2,84,.06);
  border-left: 4px solid var(--brand);
  height: 100%;
}
.stat-card .stat-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.stat-card h3 { color: var(--brand); font-weight: 700; margin: 8px 0 0; }
.stat-card p { color: #8b8f9e; margin: 0; font-size: .85rem; }

.card-panel {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,2,84,.06);
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--brand);
  color: #fff;
  border: none;
}
.btn-brand:hover { background: var(--brand-light); color: #fff; }

/* ---------- Table ---------- */
.table thead { background: var(--brand-soft); color: var(--brand); }
.badge-status-Pending { background: #ffe8b3; color: #915c00; }
.badge-status-Partial { background: #cfe0ff; color: #0b3a8a; }
.badge-status-Paid { background: #c9f2d8; color: #0a7a3a; }
.badge-status-Overdue { background: #ffd0d0; color: #a10c0c; }

/* login */
.login-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand) 0%, #1c1f7a 100%);
}
.login-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.login-box .logo {
  width: 60px; height: 60px; border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.4rem;
  margin: 0 auto 14px;
}
