/* ========================================
   FONT
======================================== */

@font-face{
    font-family:'Vazirmatn';
    src:url('../fonts/Vazir/Vazirmatn-Regular.woff2') format('woff2');
    font-weight:400;
}

@font-face{
    font-family:'Vazirmatn';
    src:url('../fonts/Vazir/Vazirmatn-Bold.woff2') format('woff2');
    font-weight:700;
}

/* ========================================
   RESET
======================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    font-size:16px;
    -webkit-text-size-adjust:100%;
}

body{
    direction:rtl;
    font-family:'Vazirmatn',sans-serif;
    background:#f5f7fb;
    color:#1f2937;
    line-height:1.8;
    overflow-x:hidden;
}

/* ========================================
   VARIABLES
======================================== */

:root{

    --primary:#2563eb;
    --primary-hover:#1d4ed8;

    --success:#10b981;
    --danger:#ef4444;
    --warning:#f59e0b;

    --text:#1f2937;
    --muted:#6b7280;

    --bg:#f5f7fb;

    --card:#ffffff;

    --border:#e5e7eb;

    --radius:18px;

    --shadow:
        0 8px 30px rgba(0,0,0,.06);

}

/* ========================================
   LINKS
======================================== */

a{
    text-decoration:none;
    color:inherit;
}

/* ========================================
   LISTS
======================================== */

ul{
    list-style:none;
}

/* ========================================
   IMAGES
======================================== */

img{
    max-width:100%;
    display:block;
}

/* ========================================
   TABLET
======================================== */

@media(max-width:992px){

    html{
        font-size:15px;
    }

}

/* ========================================
   MOBILE
======================================== */

@media(max-width:768px){

    html{
        font-size:14px;
    }

}
/* ================================
   FINAL UI OVERRIDE (EMERGENCY FIX)
   این باید آخر همه CSS ها باشد
================================ */

.content{
    min-width:0;
}

.grid{
    display:grid !important;
    gap:20px;
}

.grid-2{ grid-template-columns:repeat(2,1fr) !important; }
.grid-3{ grid-template-columns:repeat(3,1fr) !important; }
.grid-4{ grid-template-columns:repeat(4,1fr) !important; }

.card{
    background:#fff;
    border-radius:18px;
    padding:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.06);
    box-sizing:border-box;
}

.table{
    width:100% !important;
    border-collapse:collapse !important;
    background:#fff;
    border-radius:14px;
    overflow:hidden;
}

.table th,
.table td{
    padding:12px;
    text-align:right;
}

.table tr{
    border-bottom:1px solid #eee;
}
/* ==========================================
   SVG ICONS - Hover Effects
========================================== */

.icon-btn {
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.icon-btn:hover {
    transform: scale(1.2);
}

.icon-btn.edit {
    color: #2563eb;
}

.icon-btn.delete {
    color: #ef4444;
}

.icon-btn.edit:hover {
    color: #1d4ed8;
}

.icon-btn.delete:hover {
    color: #dc2626;
}