:root {
  --sidebar-width: 220px;
  --sidebar-bg: #1e2125;
}

body {
  background-color: #f4f6f9;
  font-size: 0.9rem;
}

/* ── SIDEBAR ── */
#wrapper {
  min-height: 100vh;
}

#sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--sidebar-bg);
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.25rem 0;
}

.sidebar-brand i {
  font-size: 1.4rem;
  color: #4d90fe;
}

#sidebar .nav-link {
  color: #8b949e;
  border-radius: 0.4rem;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s;
}

#sidebar .nav-link i {
  width: 1.1rem;
  text-align: center;
  font-size: 1rem;
}

#sidebar .nav-link:hover {
  color: #e6edf3;
  background: rgba(255, 255, 255, 0.07);
}

#sidebar .nav-link.active {
  color: #a8c5ff;
  background: rgba(77, 144, 254, 0.15);
}

.logout-link {
  color: #6c757d !important;
  font-size: 0.825rem;
}

.logout-link:hover {
  color: #adb5bd !important;
}

/* ── STAT CARDS ── */
.stat-card {
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
}

.stat-card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  opacity: 0.75;
}

.stat-card .value {
  font-size: 1.5rem;
  font-weight: 700;
}

.income-card {
  background: #d1fae5;
  color: #065f46;
}

.expense-card {
  background: #fee2e2;
  color: #991b1b;
}

.balance-pos {
  background: #dbeafe;
  color: #1e3a8a;
}

.balance-neg {
  background: #fce7f3;
  color: #831843;
}

.savings-pos {
  background: #ecfdf5;
  color: #064e3b;
}

.savings-neg {
  background: #fff7ed;
  color: #7c2d12;
}

.savings-neutral {
  background: #f1f5f9;
  color: #475569;
}

/* ── MONTH NAV ── */
.month-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── CHART ── */
.chart-container {
  position: relative;
  max-height: 220px;
}

/* ── BUDGET COLOR DOT ── */
.color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── LOGIN ── */
.login-body {
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  width: 100%;
  max-width: 380px;
  padding: 1rem;
}

.login-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.login-header {
  text-align: center;
  margin-bottom: 1.75rem;
  color: #4d90fe;
}

.login-header i {
  font-size: 2.5rem;
}

.login-header h5 {
  color: #1e2125;
}

/* ── CARD SHADOW ── */
.card.shadow-sm {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  #sidebar {
    display: none;
  }
}
