@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Vazirmatn',sans-serif;
    background:#0f172a;
    color:#fff;
    direction:rtl;
    padding:20px;
}

.container{
    max-width:1300px;
    margin:auto;
}

.header{
    background:#111827;
    padding:20px;
    border-radius:20px;
    margin-bottom:25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.3);
}

.header h1{
    font-size:32px;
}

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:25px;
}

.stat-box{
    background:linear-gradient(145deg,#111827,#1e293b);
    padding:25px;
    border-radius:20px;
    text-align:center;
    transition:.3s;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.stat-box:hover{
    transform:translateY(-5px);
}

.stat-box h3{
    margin-bottom:15px;
    color:#cbd5e1;
    font-size:18px;
}

.stat-box p{
    font-size:24px;
    font-weight:bold;
}

.green{
    color:#22c55e;
}

.red{
    color:#ef4444;
}

.card{
    background:#111827;
    border-radius:20px;
    padding:25px;
    margin-bottom:25px;
    box-shadow:0 10px 30px rgba(0,0,0,0.25);
}

.card h2{
    margin-bottom:20px;
    font-size:26px;
}

form{
    display:grid;
    gap:15px;
}

input,
select{
    background:#1e293b;
    border:none;
    padding:15px;
    border-radius:12px;
    color:#fff;
    font-size:15px;
    outline:none;
}

input:focus,
select:focus{
    border:2px solid #3b82f6;
}

button{
    background:#3b82f6;
    border:none;
    padding:15px;
    border-radius:12px;
    color:#fff;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
    font-weight:bold;
}

button:hover{
    background:#2563eb;
}

.table-wrapper{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    min-width:700px;
}

th{
    background:#1e293b;
    padding:15px;
    color:#cbd5e1;
}

td{
    padding:15px;
    text-align:center;
    border-bottom:1px solid #1e293b;
}

tr:hover{
    background:#1e293b;
}

.badge{
    padding:8px 14px;
    border-radius:30px;
    font-size:13px;
    font-weight:bold;
}

.sell{
    background:#14532d;
    color:#22c55e;
}

.buy{
    background:#7f1d1d;
    color:#f87171;
}

.expense{
    background:#78350f;
    color:#facc15;
}

@media(max-width:768px){

    body{
        padding:12px;
    }

    .header{
        flex-direction:column;
        gap:10px;
        text-align:center;
    }

    .header h1{
        font-size:24px;
    }

    .card{
        padding:18px;
    }

    .stat-box p{
        font-size:20px;
    }

}
.edit-btn,
.delete-btn{

padding:8px 14px;
border-radius:10px;
text-decoration:none;
font-size:13px;
font-weight:bold;
display:inline-block;
margin:2px;
}

.edit-btn{
background:#2563eb;
color:white;
}

.delete-btn{
background:#dc2626;
color:white;
}

.edit-btn:hover{
background:#1d4ed8;
}

.delete-btn:hover{
background:#b91c1c;
}
.logout-btn{

background:#dc2626;
color:white;
padding:10px 16px;
border-radius:10px;
text-decoration:none;
font-weight:bold;
}

.logout-btn:hover{

background:#b91c1c;
}
.paid-btn{

background:#16a34a;
color:white;
padding:8px 14px;
border-radius:10px;
text-decoration:none;
font-size:13px;
font-weight:bold;
display:inline-block;
margin:2px;
}

.paid-btn:hover{

background:#15803d;
}