*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter,Segoe UI,sans-serif;
}

body{
    background:#0f172a;
    color:#f8fafc;
}

.container{
    max-width:1200px;
    margin:auto;
    padding:30px;
}

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

header h1{
    font-size:2rem;
}

#addBtn{
    background:#2563eb;
    color:white;
    border:none;
    padding:12px 18px;
    border-radius:10px;
    cursor:pointer;
}

.hero{
    background:#1e293b;
    padding:30px;
    border-radius:16px;
    margin-bottom:25px;
}

.hero h2{
    margin-bottom:10px;
}

.hero p{
    color:#94a3b8;
    line-height:1.7;
}

.summary{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-bottom:25px;
}

.card{
    background:#1e293b;
    padding:25px;
    border-radius:16px;
}

.card h3{
    color:#94a3b8;
    margin-bottom:10px;
}

.card p{
    font-size:2rem;
    font-weight:bold;
}

.chart-card{
    background:#1e293b;
    padding:20px;
    border-radius:16px;
    margin-bottom:25px;
}

.transactions{
    background:#1e293b;
    padding:20px;
    border-radius:16px;
}

.top-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

#search{
    padding:10px;
    border:none;
    border-radius:10px;
}

table{
    width:100%;
    border-collapse:collapse;
}

th,td{
    padding:14px;
    text-align:left;
    border-bottom:1px solid #334155;
}

.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    justify-content:center;
    align-items:center;
}

.modal-content{
    background:#1e293b;
    width:400px;
    padding:25px;
    border-radius:16px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.modal-content input,
.modal-content select{
    padding:12px;
    border:none;
    border-radius:10px;
}

.buttons{
    display:flex;
    gap:10px;
}

.buttons button{
    flex:1;
    padding:12px;
    border:none;
    border-radius:10px;
    cursor:pointer;
}

#saveBtn{
    background:#2563eb;
    color:white;
}

#closeBtn{
    background:#475569;
    color:white;
}

.delete-btn{
    background:#dc2626;
    color:white;
    border:none;
    padding:8px 12px;
    border-radius:8px;
    cursor:pointer;
}

@media(max-width:768px){

    header,
    .top-row{
        flex-direction:column;
        gap:15px;
    }

    .modal-content{
        width:95%;
    }
}