/* ==========================================================
   Moj Finansijski Dnevnik v1.0
   Premium Mobile UI
   Sprint 1
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --bg:#1b2230;
    --card:#283447;
    --card2:#313f57;

    --green:#22c55e;
    --red:#ef4444;
    --blue:#3b82f6;

    --white:#ffffff;
    --text:#d9e4f3;
    --muted:#9fb0c9;

    --shadow:0 10px 30px rgba(0,0,0,.25);

    --radius:22px;

}

body{

    background:linear-gradient(180deg,#1b2230,#222d40);

    font-family:'Inter',sans-serif;

    color:var(--text);

    min-height:100vh;

    padding:20px;

}

.container{

    max-width:520px;

    margin:auto;

}

.header{

    margin-top:10px;

    margin-bottom:25px;

}

.header h1{

    font-size:28px;

    font-weight:700;

    color:white;

    margin-bottom:8px;

}

.header p{

    color:var(--muted);

    font-size:15px;

}

.card{

    border-radius:var(--radius);

    background:linear-gradient(180deg,var(--card),var(--card2));

    padding:22px;

    margin-bottom:18px;

    box-shadow:var(--shadow);

    transition:.25s;

}

.card:hover{

    transform:translateY(-3px);

}

.title{

    font-size:14px;

    letter-spacing:1px;

    color:#b7c6da;

    margin-bottom:15px;

    text-transform:uppercase;

}

.amount{

    font-size:34px;

    font-weight:700;

    color:white;

}

.income{

    border-left:7px solid var(--green);

}

.expense{

    border-left:7px solid var(--red);

}

.saldo{

    border-left:7px solid var(--blue);

}
/* ==========================================================
   Dugmad
========================================================== */

.buttons{

    display:flex;

    flex-direction:column;

    gap:15px;

    margin-top:10px;

    margin-bottom:30px;

}

.btn{

    border:none;

    border-radius:18px;

    padding:18px;

    font-size:18px;

    font-weight:600;

    color:white;

    cursor:pointer;

    transition:.25s;

    box-shadow:var(--shadow);

}

.btn:hover{

    transform:scale(1.02);

}

.incomeBtn{

    background:linear-gradient(135deg,#22c55e,#16a34a);

}

.expenseBtn{

    background:linear-gradient(135deg,#ef4444,#dc2626);

}

/* ==========================================================
   Lista troškova
========================================================== */

.expenses{

    background:linear-gradient(180deg,var(--card),var(--card2));

    border-radius:22px;

    padding:20px;

    box-shadow:var(--shadow);

    margin-bottom:90px;

}

.expenses h2{

    font-size:20px;

    margin-bottom:18px;

    color:white;

}

.expenseRow{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:15px 0;

    border-bottom:1px solid rgba(255,255,255,.08);

    font-size:16px;

}

.expenseRow:last-child{

    border-bottom:none;

}

.expenseRow span:last-child{

    font-weight:700;

    color:white;

}

.empty{

    text-align:center;

    color:var(--muted);

    padding:30px 0;

}

/* ==========================================================
   Donji meni
========================================================== */

nav{

    position:fixed;

    bottom:0;

    left:0;

    width:100%;

    background:#263246;

    display:flex;

    justify-content:space-around;

    padding:14px 0;

    box-shadow:0 -10px 25px rgba(0,0,0,.35);

}

nav a{

    color:#9fb0c9;

    text-decoration:none;

    font-size:13px;

    text-align:center;

    transition:.25s;

}

nav a.active{

    color:white;

    font-weight:700;

}

nav a:hover{

    color:white;

}
/* ==========================================================
   Responsive
========================================================== */

@media (max-width:600px){

    body{
        padding:15px;
    }

    .container{
        width:100%;
    }

    .header h1{
        font-size:24px;
    }

    .amount{
        font-size:30px;
    }

    .card{
        padding:18px;
    }

    .btn{
        width:100%;
        font-size:18px;
        padding:18px;
    }

}

/* ==========================================================
   Scrollbar
========================================================== */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#1b2230;
}

::-webkit-scrollbar-thumb{
    background:#46556d;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#5d708d;
}

/* ==========================================================
   Animacije
========================================================== */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.header{
    animation:fadeUp .3s ease;
}

.card{
    animation:fadeUp .45s ease;
}

.buttons{
    animation:fadeUp .6s ease;
}

.expenses{
    animation:fadeUp .75s ease;
}

/* ==========================================================
   Donji meni
========================================================== */

nav{

    border-top:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(18px);

}

nav a{

    width:25%;
    padding:8px;
    border-radius:12px;

}

nav a.active{

    background:rgba(255,255,255,.08);

    color:#fff;

}

/* ==========================================================
   Kraj style.css
========================================================== */
