/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;

    min-height: 100%;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background: #121214;

    color: #ffffff;
}


button,
input,
select {
    font-family: inherit;
}



/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 24px;
}


.login-card {
    width: 100%;

    max-width: 380px;

    padding: 28px 30px;

    background: #1e1e24;

    border: 1px solid #2d2d35;

    border-radius: 20px;

    text-align: center;
}


.login-logo {
    width: 78px;

    height: 78px;

    object-fit: contain;

    margin-bottom: 8px;
}


.login-title {
    margin: 0;

    color: #ffc700;

    font-size: 30px;
}


.login-subtitle {
    margin-top: 6px;

    margin-bottom: 28px;

    color: #9ca3af;

    font-size: 13px;
}



/* =========================================================
   LOGIN INPUT
========================================================= */

.login-card input {
    width: 100%;

    height: 46px;

    margin-bottom: 12px;

    padding: 0 14px;

    background: #2b2b32;

    border: 1px solid #2d2d35;

    border-radius: 10px;

    color: #ffffff;

    font-size: 14px;

    outline: none;

    transition: 0.2s;
}


.login-card input::placeholder {
    color: #9ca3af;
}


.login-card input:focus {
    border-color: #ffc700;
}



/* =========================================================
   LOGIN BUTTON
========================================================= */

.primary-button {
    width: 100%;

    height: 46px;

    margin-top: 10px;

    background: #ffc700;

    border: none;

    border-radius: 12px;

    color: #121214;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}


.primary-button:hover {
    background: #e0b000;
}


.toggle-button {
    margin-top: 14px;

    background: transparent;

    border: none;

    color: #ffc700;

    font-size: 12px;

    cursor: pointer;
}


.toggle-button:hover {
    text-decoration: underline;
}


.form-message {
    min-height: 18px;

    margin-top: 12px;

    font-size: 12px;
}


.hidden {
    display: none;
}



/* =========================================================
   HOME PAGE
========================================================= */

.home-page {
    min-height: 100vh;

    padding: 22px;

    background: #121214;
}



/* =========================================================
   BALANCE BANNER
========================================================= */

.balance-banner {
    padding: 18px;

    background: #ffc700;

    border-radius: 18px;
}


.balance-top {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;
}


.welcome-text {
    margin: 0 0 8px 0;

    color: #121214;

    font-size: 13px;

    font-weight: bold;
}


.main-balance {
    margin: 0;

    color: #121214;

    font-size: 30px;
}


.logout-button {
    min-width: 95px;

    height: 34px;

    padding: 0 16px;

    background: #121214;

    border: none;

    border-radius: 10px;

    color: #ffffff;

    font-size: 12px;

    font-weight: bold;

    cursor: pointer;
}


.logout-button:hover {
    background: #27272a;
}



/* =========================================================
   PEMASUKAN / PENGELUARAN
========================================================= */

.balance-summary {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 12px;

    margin-top: 14px;
}


.balance-summary-card {
    min-height: 72px;

    padding: 14px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background: #1e1e24;

    border-radius: 12px;
}


.balance-summary-card span {
    font-size: 13px;

    font-weight: bold;
}


.balance-summary-card strong {
    margin-top: 10px;

    font-size: 18px;
}


.income-label {
    color: #10b981;
}


.expense-label {
    color: #ef4444;
}



/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 16px;

    margin-top: 16px;
}


.section-title {
    margin: 0 0 10px 0;

    color: #ffc700;

    font-size: 20px;
}



/* =========================================================
   DAFTAR KEUANGAN
========================================================= */

.wallet-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 10px;
}


.wallet-card {
    min-height: 220px;

    padding: 16px;

    background: #1e1e24;

    border: 1px solid #2d2d35;

    border-radius: 14px;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s,
        border-color 0.2s;
}


.wallet-card:hover {
    background: #26262d;

    border-color: #3f3f46;

    transform: translateY(-2px);
}


.wallet-heading {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}


.wallet-heading h3 {
    margin: 0;

    color: #ffc700;

    font-size: 16px;
}


.wallet-icon {
    font-size: 27px;
}


.small-label {
    font-size: 12px;

    font-weight: bold;
}


.wallet-balance {
    margin-top: 7px;

    margin-bottom: 9px;

    font-size: 18px;

    font-weight: bold;
}


.balance-line {
    width: 100%;

    height: 5px;

    margin-bottom: 10px;

    background: #334155;

    border-radius: 20px;
}


.wallet-stat {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    font-size: 12px;

    font-weight: bold;
}


.wallet-in {
    color: #10b981;
}


.wallet-out {
    color: #ef4444;
}


.wallet-description {
    margin-top: 20px;

    margin-bottom: 0;

    color: #9ca3af;

    font-size: 12px;

    line-height: 1.5;
}



/* =========================================================
   TRANSAKSI
========================================================= */

.recent-panel {
    min-height: 510px;

    padding: 16px;

    background: #1e1e24;

    border: 1px solid #2d2d35;

    border-radius: 16px;
}


.recent-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 12px;
}


.recent-title {
    margin-bottom: 0;
}


.transaction-filter {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 6px;

    flex-wrap: wrap;
}


.show-all-button {
    height: 34px;

    padding: 0 10px;

    background: transparent;

    border: none;

    color: #ffc700;

    font-size: 12px;

    font-weight: bold;

    cursor: pointer;
}


.transaction-filter select {
    height: 34px;

    padding: 0 10px;

    background: #2b2b32;

    border: 1px solid transparent;

    border-radius: 7px;

    color: #ffffff;

    font-size: 12px;

    outline: none;

    cursor: pointer;
}


.transaction-filter select:hover {
    border-color: #3f3f46;
}


.empty-transaction {
    min-height: 420px;

    display: flex;

    justify-content: center;

    align-items: center;

    color: #9ca3af;

    font-size: 13px;
}



/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 900px) {

    .home-page {
        padding: 14px;
    }


    .dashboard-layout {
        grid-template-columns: 1fr;
    }


    .recent-panel {
        min-height: 350px;
    }


    .empty-transaction {
        min-height: 250px;
    }

}



/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 550px) {

    .login-page {
        padding: 18px;
    }


    .login-card {
        max-width: 100%;

        padding:
            26px
            22px;
    }



    .home-page {
        padding: 10px;
    }



    .balance-banner {
        padding: 14px;

        border-radius: 14px;
    }


    .balance-top {
        align-items: center;
    }


    .welcome-text {
        font-size: 11px;
    }


    .main-balance {
        font-size: 26px;
    }


    .logout-button {
        min-width: auto;

        padding: 0 12px;

        font-size: 11px;
    }



    .balance-summary {
        gap: 8px;
    }


    .balance-summary-card {
        padding: 12px;
    }


    .balance-summary-card span {
        font-size: 11px;
    }


    .balance-summary-card strong {
        font-size: 16px;
    }



    .section-title {
        font-size: 18px;
    }



    .wallet-grid {
        gap: 8px;
    }


    .wallet-card {
        min-height: 190px;

        padding: 12px;
    }


    .wallet-heading {
        display: block;

        margin-bottom: 14px;
    }


    .wallet-icon {
        display: block;

        margin-bottom: 5px;

        font-size: 25px;
    }


    .wallet-heading h3 {
        font-size: 14px;
    }


    .small-label {
        font-size: 10px;
    }


    .wallet-balance {
        font-size: 16px;
    }


    .wallet-stat {
        font-size: 9px;
    }


    .wallet-description {
        margin-top: 15px;

        font-size: 9px;
    }



    .recent-header {
        display: block;
    }


    .transaction-filter {
        margin-top: 12px;

        justify-content: flex-start;
    }


    .recent-panel {
        min-height: 330px;
    }


    .empty-transaction {
        min-height: 220px;
    }

}