*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:-apple-system,BlinkMacSystemFont,sans-serif;
}

body{
background:#0f172a;
color:#fff;
padding:20px;
}

.container{
max-width:700px;
margin:auto;
}

.header{
margin-bottom:20px;
}

.header h1{
font-size:32px;
margin-bottom:5px;
}

.header p{
color:#94a3b8;
}

.stats{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:12px;
margin-bottom:20px;
}

.card{
background:#1e293b;
padding:16px;
border-radius:16px;
}

.card span{
display:block;
font-size:13px;
color:#94a3b8;
margin-bottom:8px;
}

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

.progress-card{
background:#1e293b;
padding:16px;
border-radius:16px;
margin-bottom:20px;
}

.progress-header{
display:flex;
justify-content:space-between;
margin-bottom:10px;
}

.progress{
height:12px;
background:#334155;
border-radius:999px;
overflow:hidden;
}

.progress-bar{
height:100%;
width:0%;
background:#22c55e;
transition:.3s;
}

.quick-actions{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:10px;
margin-bottom:20px;
}

.quick-actions button{
background:#2563eb;
color:white;
border:none;
padding:15px;
border-radius:12px;
font-weight:700;
font-size:16px;
}

.form-card,
.history-card{
background:#1e293b;
padding:16px;
border-radius:16px;
margin-bottom:20px;
}

.form-card h3,
.history-card h3{
margin-bottom:15px;
}

select,
input{
width:100%;
padding:14px;
margin-bottom:10px;
border:none;
border-radius:12px;
background:#334155;
color:white;
}

.save-btn{
width:100%;
padding:14px;
border:none;
border-radius:12px;
background:#22c55e;
color:white;
font-weight:bold;
}

.transaction{
background:#334155;
padding:12px;
border-radius:12px;
margin-bottom:10px;
}

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

.income{
color:#22c55e;
}

.expense{
color:#ef4444;
}

.delete-btn{
margin-top:8px;
background:#ef4444;
border:none;
padding:8px 12px;
border-radius:8px;
color:white;
}

@media(max-width:600px){

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

.quick-actions{
grid-template-columns:1fr;
}

}

.filter-box{
margin-bottom:15px;
}

.summary-box{
background:#334155;
padding:14px;
border-radius:12px;
margin-bottom:15px;
display:flex;
flex-direction:column;
gap:8px;
}

.edit-btn{
background:#f59e0b;
border:none;
padding:8px 12px;
border-radius:8px;
color:white;
margin-right:8px;
}

.transaction-date{
font-size:12px;
color:#94a3b8;
margin-bottom:8px;
}

.edit-modal{
position:fixed;
inset:0;
background:rgba(0,0,0,.7);
display:flex;
justify-content:center;
align-items:center;
padding:20px;
z-index:999;
}

.edit-content{
background:#1e293b;
padding:20px;
border-radius:16px;
width:100%;
max-width:500px;
}
