/* ── SMPJ Custom Styles ───────────────────────────────────── */

/* ── Auth pages ─────────────────────────────────────────── */
.auth-body {
  background: #f0f4ff;
}
.auth-brand-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #0d6efd;
  color: white;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  border: none;
  border-radius: 16px;
}

/* ── App shell ──────────────────────────────────────────── */
body:not(.auth-body) {
  background: #f8f9fc;
}
.wrapper {
  min-height: calc(100vh - 56px);
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  flex-shrink: 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}
.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #adb5bd;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: #495057;
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.sidebar-link:hover {
  background: #f0f4ff;
  color: #0d6efd;
}
.sidebar-link.active {
  background: #e7f0ff;
  color: #0d6efd;
  font-weight: 600;
  border-left-color: #0d6efd;
}
.sidebar-link i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
}
.sidebar-sub {
  font-size: 0.82rem;
  padding-left: 1.4rem;
}
.sidebar-sub i {
  font-size: 0.85rem;
  width: 16px;
}

/* ── Main content ─────────────────────────────────────────── */
.main-content {
  min-width: 0;
}

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.page-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
}
.card-header {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
}

/* ── KPI stat cards ──────────────────────────────────────── */
.stat-card {
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border: none;
}
.stat-card .stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.stat-card .stat-icon {
  font-size: 2rem;
  opacity: 0.25;
}

/* ── Fee calendar grid ───────────────────────────────────── */
.fee-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 6px;
}
.cal-cell {
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
  font-size: 0.75rem;
}
.cal-cell .month-label { font-weight: 600; }
.cal-cell .amount      { font-size: 0.7rem; opacity: 0.8; }
.cal-paid   { background: #d1fae5; color: #065f46; }
.cal-advance{ background: #dbeafe; color: #1e40af; }
.cal-due    { background: #fee2e2; color: #991b1b; }
.cal-upcoming{ background: #f3f4f6; color: #6b7280; }
.cal-na     { background: #f9fafb; color: #d1d5db; border: 1px dashed #e5e7eb; }

/* ── Tables ──────────────────────────────────────────────── */
.table-hover tbody tr:hover { background: #f0f4ff; }

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .sidebar, .navbar, .btn, .alert { display: none !important; }
  .main-content { padding: 0 !important; }
}
