:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f3f4f6;
    --card: #fff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444
}

* {
    box-sizing: border-box
}

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    margin: 0;
    padding: 20px
}

body .gradient{
    background: #2a339b;
background: linear-gradient(90deg, rgba(42, 51, 155, 1) 0%, rgba(87, 199, 133, 1) 70%, rgba(114, 237, 83, 1) 100%);
}
.container {
    max-width: 1120px;
    margin: auto
}

.card,
dialog {
    background: var(--card);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px #0000000d;
    margin-bottom: 20px;
    border: 0
}
.login-card {
    max-width: 410px;
    margin: 12vh auto
}

h1,
h2,
h3 {
    margin: 0 0 10px
}

h1 {
    font-size: 26px
}

h2 {
    font-size: 20px
}

.muted {
    color: var(--muted);
    margin: 0 0 16px
}

label {
    display: block;
    font-weight: 600;
    margin: 0 0 15px
}

input,
select,
textarea,
button {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    margin-top: 7px
}

textarea {
    min-height: 90px;
    resize: vertical
}

button {
    background: var(--primary);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-weight: 700
}

button:hover {
    background: var(--primary-dark)
}

button:disabled {
    background: #9ca3af;
    cursor: not-allowed
}

.small {
    width: auto;
    margin: 0;
    padding: 8px 14px
}

.danger {
    background: var(--danger)
}

.danger:hover {
    background: #dc2626
}

.section-head,
header,
.dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 20px;
    align-items: start
}

.sidebar {
    background: var(--card);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px #0000000d;
    position: sticky;
    top: 20px
}

.sidebar-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #9ca3af;
    margin: 4px 8px 9px
}

.nav-link {
    display: block;
    width: 100%;
    margin: 3px 0;
    padding: 11px 12px;
    text-align: left;
    color: #4b5563;
    background: transparent
}

.nav-link:hover {
    background: #eff6ff;
    color: var(--primary)
}

.nav-link.active {
    background: var(--primary);
    color: #fff
}

.dashboard-panel {
    display: none;
    margin: 0
}

.dashboard-panel.active {
    display: block
}

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle
}

th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: .02em
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 700
}

.belum_bayar {
    background: var(--warning)
}

.menunggu_verifikasi {
    background: #f59e0b
}

.lunas {
    background: var(--success)
}

.summary {
    text-align: center;
    padding: 42px 24px
}

.summary strong {
    font-size: 34px;
    color: var(--danger);
    display: block;
    margin: 12px
}

.bank-row {
    padding: 13px;
    border: 1px solid var(--border);
    margin: 10px 0;
    border-radius: 7px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.error {
    color: #dc2626;
    font-size: 14px;
    margin: 8px 0 0
}

.notice {
    padding: 11px 14px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 6px;
    margin-bottom: 16px
}

.actions {
    white-space: nowrap;
    display: flex;
    gap: 6px
}

.actions button {
    padding: 6px 9px;
    font-size: 12px
}

.check {
    font-weight: 400
}

.check input {
    width: auto;
    margin-right: 6px
}

dialog {
    width: min(500px, calc(100% - 30px))
}

dialog::backdrop {
    background: #11182780
}

@media(max-width:760px) {
    body {
        padding: 12px
    }

    .card,
    dialog {
        padding: 18px
    }

    .dashboard-shell {
        grid-template-columns: 1fr
    }

    .sidebar {
        position: static;
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding: 9px
    }

    .sidebar-label {
        display: none
    }

    .nav-link {
        width: auto;
        flex: 0 0 auto;
        margin: 0;
        white-space: nowrap
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column
    }

    .header-actions {
        gap: 5px
    }

    .header-actions .small {
        padding: 8px 10px
    }

    header h1 {
        font-size: 23px
    }

    .bank-row {
        align-items: flex-start;
        gap: 8px;
        flex-direction: column
    }
}