:root {
  --brand-dark: #0b3d5c;
  --brand: #0e6ba8;
  --brand-light: #eaf4fb;
  --accent: #f2a20c;
}

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

.sidebar {
  width: 240px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--brand-dark), #072a41);
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-brand i { font-size: 1.6rem; color: var(--accent); }

.sidebar-nav { padding: 10px 0; }
.sidebar-nav .nav-link {
  color: rgba(255,255,255,.8);
  padding: 11px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  border-left: 3px solid transparent;
}
.sidebar-nav .nav-link i { width: 18px; text-align: center; }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav .nav-link.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-left-color: var(--accent);
  font-weight: 600;
}

.main-content { min-height: 100vh; }
.topbar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #e6ebf1;
  position: sticky;
  top: 0;
  z-index: 10;
}
.page-title { color: var(--brand-dark); font-weight: 700; }

.stat-card {
  border: none;
  border-radius: 14px;
  color: #fff;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(14,107,168,.15);
}
.stat-card .label { font-size: .8rem; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; margin-top: 4px; }
.stat-card i { font-size: 1.8rem; opacity: .5; }

.bg-c1 { background: linear-gradient(135deg, #0e6ba8, #0b3d5c); }
.bg-c2 { background: linear-gradient(135deg, #16a085, #0b6e57); }
.bg-c3 { background: linear-gradient(135deg, #f2a20c, #c67c00); }
.bg-c4 { background: linear-gradient(135deg, #e74c3c, #a5281b); }
.bg-c5 { background: linear-gradient(135deg, #7d5fff, #4e33b0); }

.card { border: none; border-radius: 12px; box-shadow: 0 2px 10px rgba(20,40,60,.06); }
.card-header { background: #fff; border-bottom: 1px solid #eef1f5; font-weight: 600; color: var(--brand-dark); border-radius: 12px 12px 0 0 !important; }

.table thead th {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: none;
  white-space: nowrap;
}
.table td { vertical-align: middle; font-size: .9rem; }

.badge-status-active { background: #e3f8ea; color: #1e8e50; }
.badge-status-inactive { background: #fdecea; color: #c0392b; }

.balance-positive { color: #c0392b; font-weight: 600; }
.balance-zero { color: #1e8e50; font-weight: 600; }

.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

@media (max-width: 768px) {
  .sidebar { position: fixed; left: -240px; z-index: 1000; transition: left .2s; }
  .sidebar.show { left: 0; }
}
