* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #1f1616;
    color: #f7f2ef;
    min-height: 100vh;
}

.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #2b1d1d;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 12px;
    background: #3a2222;
    position: sticky;
    top: 0;
}

.menu-btn,
.profile-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: #4a2b2b;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.app-title {
    font-size: 20px;
    font-weight: 700;
}

.content {
    padding: 18px;
}

.period {
    text-align: center;
    margin-bottom: 18px;
}

.period small {
    color: #cdbebe;
}

.period h2 {
    margin-top: 5px;
    font-size: 22px;
}

.card {
    background: #3a2727;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
}

.balance-card {
    text-align: center;
    padding: 26px 18px;
}

.balance-card p {
    color: #cebebe;
    font-size: 14px;
}

.balance-card h1 {
    margin-top: 8px;
    font-size: 30px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.stat-card {
    background: #3a2727;
    border-radius: 16px;
    padding: 16px;
}

.stat-card p {
    color: #cdbebe;
    font-size: 13px;
    margin-bottom: 7px;
}

.stat-card strong {
    font-size: 21px;
}

.warning {
    color: #ffb25c;
}

.income {
    color: #75d69c;
}

.setor-card h3 {
    margin-bottom: 14px;
}

.setor-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #543737;
}

.setor-row:last-child {
    border-bottom: none;
}

@media (min-width: 700px) {
    body {
        padding: 24px;
    }

    .app {
        border-radius: 24px;
        overflow: hidden;
        min-height: calc(100vh - 48px);
    }
}/* =========================
   SIDEBAR MENU
========================= */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
    z-index: 90;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(310px, 85vw);
    height: 100vh;
    background: #2b1d1d;
    padding: 20px;
    z-index: 100;

    display: flex;
    flex-direction: column;

    transform: translateX(-100%);
    transition: transform 0.25s ease;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.sidebar-header small {
    color: #a99494;
    font-size: 11px;
}

.sidebar-header h2 {
    margin-top: 3px;
}

.close-menu {
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #452b2b;
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-menu button,
.logout-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: #f7f2ef;
    padding: 13px;
    border-radius: 11px;

    display: flex;
    align-items: center;
    gap: 13px;

    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

.sidebar-menu button:hover {
    background: #452b2b;
}

.sidebar-menu button:first-child {
    background: #4a2b2b;
}

.logout-btn {
    margin-top: auto;
    color: #ff9a9a;
}

.logout-btn:hover {
    background: #452b2b;
}/* =========================
   PEMBAYARAN ABC
========================= */

.page-header {
    margin-bottom: 20px;
}

.page-header small {
    color: #d2a9a9;
}

.page-header h2 {
    margin: 4px 0 6px;
}

.page-header p {
    color: #bcaeae;
    font-size: 13px;
}

.search-box {
    margin-bottom: 12px;
}

.search-box input {
    width: 100%;
    border: 1px solid #543737;
    outline: none;

    background: #3a2727;
    color: white;

    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #9f9090;
}

.search-box input:focus {
    border-color: #9b6262;
}

.filter-row {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin-bottom: 18px;
    padding-bottom: 3px;
}

.filter-btn {
    flex-shrink: 0;
    border: none;
    background: #3a2727;
    color: #cdbebe;

    padding: 9px 14px;
    border-radius: 20px;
    cursor: pointer;
}

.filter-btn.active {
    background: #6a3b3b;
    color: white;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-card {
    width: 100%;
    border: none;
    background: #3a2727;
    color: white;

    padding: 16px;
    border-radius: 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    text-align: left;
    cursor: pointer;
}

.member-card strong {
    display: block;
    margin-bottom: 6px;
}

.member-card span {
    color: #bcaeae;
    font-size: 12px;
}

.member-status {
    flex-shrink: 0;
    padding: 7px 9px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: bold;
}

.member-status.paid {
    background: rgba(70, 180, 110, 0.15);
    color: #75d69c;
}

.member-status.overdue {
    background: rgba(255, 170, 70, 0.15);
    color: #ffb25c;
}/* =========================
   DETAIL PEMBAYARAN ABC
========================= */

.back-btn {
    border: none;
    background: transparent;
    color: #d7aaaa;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
}

.member-summary {
    margin-bottom: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
}

.month-section {
    margin-bottom: 18px;
}

.month-header {
    margin-bottom: 12px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.month-card {
    min-height: 70px;
    border: none;
    border-radius: 12px;
    padding: 10px 5px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    color: white;
}

.month-card span {
    font-weight: bold;
}

.month-card small {
    font-size: 10px;
}

.paid-month {
    background: rgba(70, 180, 110, 0.18);
    color: #75d69c;
}

.unpaid-month {
    background: rgba(255, 170, 70, 0.18);
    color: #ffb25c;
}

.future-month {
    background: #332626;
    color: #776969;
}

.payment-box label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: #cdbebe;
}

.rupiah-input {
    display: flex;
    align-items: center;
    background: #2f2020;
    border: 1px solid #543737;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.rupiah-input span {
    padding-left: 14px;
    color: #bcaeae;
}

.rupiah-input input {
    width: 100%;
    border: none;
    outline: none;

    background: transparent;
    color: white;

    padding: 14px 10px;
    font-size: 16px;
}

.primary-btn {
    width: 100%;
    border: none;
    border-radius: 12px;

    padding: 14px;

    background: #754444;
    color: white;

    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.primary-btn:hover {
    background: #875050;
}