@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}
html,
body{
    margin:0;
    padding:0;
    width:100%;
    height:100%;
    overflow:hidden;
}
.container{
    width:100%;
    height:100vh;
    margin:0;
    padding:0;
}

/* ================= AUTH ================= */
.auth-box h2{
    text-align:center;
    margin-bottom:25px;
    color:#0f5132;
}
.switch-text{
    margin-top:15px;
    text-align:center;
}

.switch-text a{
    text-decoration:none;
    color:#198754;
    font-weight:600;
}

/* ================= BUTTONS ================= */
.btn{
    width:100%;
    border:none;
    cursor:pointer;
}
.download-btn{
    background:#198754;
    color:white;
    border:none;
    padding:12px 18px;
    border-radius:10px;
    cursor:pointer;
    margin-top:15px;
}

.download-btn:hover{
    background:#157347;
}

/* ================= DASHBOARD ================= */

.dashboard{
    display:flex;
    min-height:100vh;
}

/* ================= SIDEBAR ================= */

.sidebar{
    width:260px;
    background:#0f5132;
    color:white;
    padding:25px;
}

.logo{
    margin-bottom:40px;
}

.logo h2{
    font-size:22px;
}

.menu{
    list-style:none;
}

.menu li{
    padding:14px;
    margin-bottom:12px;
    border-radius:12px;
    cursor:pointer;
    transition:0.3s;
}

.menu li:hover{
    background:#198754;
}

#logoutBtn{
    margin-top:40px;
    width:100%;
    padding:12px;
    background:#dc3545;
    color:white;
    border:none;
    border-radius:10px;
    cursor:pointer;
}

#logoutBtn:hover{
    background:#bb2d3b;
}

/* ================= MAIN ================= */

.main-content{
    flex:1;
    padding:25px;
}

/* ================= SUMMARY CARDS ================= */

.summary-cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.card{
    background:white;
    border-radius:18px;
    padding:25px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.card h4{
    color:#6c757d;
    margin-bottom:10px;
}

.card h2{
    font-size:28px;
}

.income{
    border-left:6px solid #198754;
}

.expense{
    border-left:6px solid #dc3545;
}

.balance{
    border-left:6px solid #0d6efd;
}

/* ================= DASHBOARD GRID ================= */

.dashboard-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
    margin-top:25px;
}

.chart-card,
.recent-card,
.report-card,
.form-section{
    background:white;
    border-radius:18px;
    padding:20px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.chart-card h3,
.recent-card h3,
.report-card h3,
.form-section h3{
    margin-bottom:20px;
    color:#0f5132;
}

/* ================= TRANSACTIONS ================= */

#transactionList{
    list-style:none;
    max-height:350px;
    overflow-y:auto;
}

#transactionList li{
    padding:12px;
    border-bottom:1px solid #ececec;
}

.tx-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.tx-item .income{
    color:#198754;
    font-weight:700;
}

.tx-item .expense{
    color:#dc3545;
    font-weight:700;
}

/* ================= FORM ================= */

.form-section{
    margin-top:25px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.form-section input,
.form-section select{
    padding:12px;
    border:1px solid #dcdcdc;
    border-radius:10px;
    outline:none;
}

/* ================= DAILY LIMIT ================= */

.limit-warning{
    margin-top:25px;
    background:white;
    padding:20px;
    border-radius:18px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.limit-warning label{
    display:block;
    margin-bottom:10px;
    font-weight:600;
}

.limit-warning input{
    width:250px;
    padding:10px;
    border:1px solid #ddd;
    border-radius:10px;
}

#warning{
    margin-top:10px;
    color:red;
    font-weight:600;
}

#limitProgress{
    width:100%;
    margin-top:15px;
}

#limitText{
    margin-top:8px;
}

/* ================= CHARTS ================= */

canvas{
    width:100% !important;
    max-width:100%;
}

/* ================= RESPONSIVE ================= */

@media(max-width:992px){

    .dashboard{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }

    .summary-cards{
        grid-template-columns:1fr;
    }

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

@media(max-width:576px){

    .main-content{
        padding:15px;
    }
}
.setting-group{
    margin-top:25px;
    padding-top:20px;
    border-top:1px solid #e5e7eb;
}

.setting-group h4{
    margin-bottom:12px;
    color:#0f5132;
}

.setting-group input{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:10px;
    margin-bottom:10px;
}

.logout-btn{
    width:100%;
    padding:12px;
    background:#dc3545;
    color:white;
    border:none;
    border-radius:10px;
    cursor:pointer;
}

.logout-btn:hover{
    background:#bb2d3b;
}
.full-input{
    width:100%;
    padding:14px;
    border:1px solid #dcdcdc;
    border-radius:10px;
    margin-bottom:15px;
    font-size:16px;
}
.goal-btn{
    width:200px;
    height:45px;
    background:#198754;
    color:white;
    border:none;
    border-radius:10px;
    cursor:pointer;
}
#toast{
    position:fixed;
    top:20px;
    right:20px;
    background:#dc3545;
    color:white;
    padding:14px 20px;
    border-radius:8px;
    font-weight:500;
    z-index:9999;
    display:none;
    box-shadow:0 4px 15px rgba(0,0,0,0.2);
    animation:slideDown .3s ease;
}

#toast.success{
    background:#198754;
}

@keyframes slideDown{
    from{
        opacity:0;
        transform:translateY(-20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
.error-text{
    display:block;
    color:#dc3545;
    font-size:13px;
    margin-top:4px;
    margin-left:5px;
}

.input-error{
    border:2px solid #dc3545 !important;
    background:#fff5f5;
}
/* ================= LOGIN PAGE FINAL ================= */

.auth-container{
    display:flex;
    height:100vh;
    overflow:hidden;
}

.auth-left{
    width:50%;
    background:#edf6ee;
    display:flex;
    justify-content:center;
    align-items:center;
    border-right:1px solid #ddd;
}

.auth-right{
    width:50%;
    height:100vh;
    background:#ffffff;
    display:flex;
    justify-content:center;
    align-items:center;
}

.brand-content{
    text-align:center;
}

.brand-logo{
    width:80px;
    display:block;
    margin:0 auto 15px;
}

.brand-content h1{
    font-size:52px;
    line-height:0.95;
    font-weight:800;
    color:#0b5d35;
    margin-bottom:15px;
}

.brand-content p{
    font-size:18px;
    color:#666;
    margin-bottom:25px;
}

.auth-illustration{
    width:180px;
    margin-top:15px;
}

.auth-box{
    width:430px;
    max-width:90%;
    padding:30px;
    background:#fff;
    border-radius:20px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.auth-box h2{
    text-align:center;
    color:#0b5d35;
    margin-bottom:8px;
    font-weight:700;
    font-size:40px;
}

.subtitle{
    text-align:center;
    color:#777;
    margin-bottom:20px;
}

.auth-tabs{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.tab{
    flex:1;
    height:45px;
    font-size:16px;
    font-weight:600;
    border:none;
    padding:12px;
    border-radius:10px;
    cursor:pointer;
    background:#e9e9e9;
}

.tab.active{
    background:#0f5132;
    color:#fff;
}

.auth-box input{
    width:100%;
    padding:14px;
    height:50px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:10px;
}

.auth-options{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:15px 0;
}

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

.remember input{
    width:auto;
    margin:0;
}

.forgot-link{
    text-decoration:none;
    color:#198754;
    font-weight:500;
}
.primary{
    width:100%;
    height:45px;
    padding:14px;
    border:none;
    border-radius:10px;
    background:#198754;
    color:#fff;
    font-weight:600;
    cursor:pointer;
}

.divider{
    text-align:center;
    margin:20px 0;
    color:#999;
}
.google-btn{
    width:100%;
    height:50px;
    border:1px solid #ddd;
    border-radius:10px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.google-btn:hover{
    background:#f5f5f5;
}

.switch-text{
    text-align:center;
    margin-top:15px;
}

.switch-text a{
    color:#198754;
    text-decoration:none;
    font-weight:600;
}

/* MOBILE */

@media(max-width:768px){

   .auth-container{
    display:flex;
    width:100%;
    height:100vh;
}

.auth-left,
.auth-right{
    width:50%;
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
}
    .auth-left{
        height:40vh;
    }

    .auth-right{
        height:60vh;
    }

   .brand-content h1{
    font-size:48px;
    line-height:1.05;
    font-weight:800;
    color:#0b5d35;
}

    .auth-illustration{
    width:180px;
    margin-top:30px;
}
.auth-right{
    background:#ffffff;
}

.auth-box{
    transform:scale(0.92);
}
}