@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;
}

body{
    font-family:'Poppins',sans-serif;
    background:#0f172a;
    color:white;
    min-height:100vh;
    overflow-x:hidden;
}

/* Animated Background */

body::before{
    content:'';
    position:fixed;
    width:600px;
    height:600px;
    background:linear-gradient(#2563eb,#7c3aed);
    border-radius:50%;
    top:-200px;
    left:-200px;
    filter:blur(120px);
    opacity:0.5;
    z-index:-1;
}

body::after{
    content:'';
    position:fixed;
    width:500px;
    height:500px;
    background:linear-gradient(#06b6d4,#22c55e);
    border-radius:50%;
    bottom:-200px;
    right:-200px;
    filter:blur(120px);
    opacity:0.5;
    z-index:-1;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
    padding:40px 0;
}

header{
    text-align:center;
    margin-bottom:40px;
}

header h1{
    font-size:60px;
    font-weight:700;
    background:linear-gradient(to right,#60a5fa,#c084fc);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

header p{
    color:#cbd5e1;
    margin-top:10px;
}

/* Dashboard */

.dashboard{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    margin-bottom:30px;
}

.card{
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.1);
    backdrop-filter:blur(20px);
    border-radius:25px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
    transition:0.4s;
}

.card:hover{
    transform:translateY(-5px);
}

.balance-card h1{
    font-size:48px;
    margin-top:15px;
}

.income-card h2{
    color:#22c55e;
    margin-top:10px;
}

.expense-card h2{
    color:#ef4444;
    margin-top:10px;
}

/* Budget */

.budget-top{
    display:flex;
    justify-content:space-between;
    margin-bottom:15px;
}

.progress-bar{
    width:100%;
    height:25px;
    background:rgba(255,255,255,0.1);
    border-radius:30px;
    overflow:hidden;
}

.progress-fill{
    width:0%;
    height:100%;
    border-radius:30px;
    background:linear-gradient(90deg,#22c55e,#84cc16);
    transition:0.5s ease;
}

/* Form */

.transaction-form{
    margin-top:30px;
}

.transaction-form h2{
    margin-bottom:20px;
}

.transaction-form input,
.transaction-form select{
    width:100%;
    padding:16px;
    margin-bottom:15px;
    border:none;
    border-radius:14px;
    background:rgba(255,255,255,0.08);
    color:white;
    font-size:16px;
    outline:none;
}

.transaction-form input::placeholder{
    color:#cbd5e1;
}

.transaction-form button{
    width:100%;
    padding:16px;
    border:none;
    border-radius:14px;
    background:linear-gradient(90deg,#2563eb,#7c3aed);
    color:white;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.transaction-form button:hover{
    transform:scale(1.02);
    opacity:0.9;
}

/* History */

.history{
    margin-top:30px;
}

.history ul{
    list-style:none;
    margin-top:20px;
}

.history li{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px;
    margin-bottom:12px;
    border-radius:14px;
    background:rgba(255,255,255,0.05);
    animation:slideIn 0.5s ease;
}

.history li.income{
    border-left:6px solid #22c55e;
}

.history li.expense{
    border-left:6px solid #ef4444;
}

/* Animations */

@keyframes slideIn{
    from{
        opacity:0;
        transform:translateX(-20px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

/* Responsive */

@media(max-width:768px){

    header h1{
        font-size:40px;
    }

    .balance-card h1{
        font-size:36px;
    }

    .card{
        padding:20px;
    }
}
