:root {
    --primary: #0d6efd;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
}

body {
    background: #f8f9fa;
    font-size: 15px;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border-radius: 12px;
}
.card-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

/* Stat cards */
.stat-card {
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    color: #fff;
}
.stat-card .stat-num {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}
.stat-card .stat-lbl {
    font-size: 0.82rem;
    opacity: .85;
}

/* Status grid bulan */
.grid-bulan {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
@media (min-width: 576px) {
    .grid-bulan { grid-template-columns: repeat(6, 1fr); }
}
.bulan-box {
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
}
.bulan-box.bayar    { background: #d1e7dd; color: #0a3622; }
.bulan-box.belum    { background: #f8d7da; color: #58151c; }
.bulan-box.partial  { background: #fff3cd; color: #664d03; }
.bulan-box.akan     { background: #e9ecef; color: #6c757d; }
.bulan-box .bulan-nama { font-size: 10px; font-weight: 400; }

/* Table */
.table th { font-size: 13px; font-weight: 600; }
.table td { vertical-align: middle; }

/* Badge status */
.badge-bayar   { background: #d1e7dd; color: #0a3622; }
.badge-belum   { background: #f8d7da; color: #58151c; }

/* Form */
.form-control, .form-select {
    border-radius: 8px;
}

/* Navbar active */
.navbar .nav-link.active,
.navbar .nav-link:hover {
    background: rgba(255,255,255,.15);
    border-radius: 6px;
}

/* Mobile tweaks */
@media (max-width: 575px) {
    .stat-card .stat-num { font-size: 1.5rem; }
    h4 { font-size: 1.1rem; }
    .table-responsive { font-size: 13px; }
}

/* Floating action button (mobile) */
.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    z-index: 1000;
}
