/* فایل style.css - جایگزین کل محتوای قبلی */
@font-face {
    font-family: 'iranyekan';
    src: url('assets/font/iranyekanwebmedium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* این خط باعث می‌شود فونت سریع‌تر لود شود */
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --info-color: #FF00FF;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'iranyekan', Tahoma, 'Segoe UI', sans-serif; 
}

body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; padding-bottom: 50px; }
        h2 { text-align: center; color: #333; border-bottom: 2px solid #eee; padding-bottom: 10px; }

.container {text-align:center; max-width: 1200px; margin: 0 auto; padding: 20px; }

/* هدر و منو */
header { background: var(--card-bg); padding: 20px; border-radius: var(--border-radius); box-shadow: var(--shadow); margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; border-bottom: 4px solid var(--primary-color); }
nav a { margin-left: 15px; text-decoration: none; color: var(--text-main); font-weight: bold; transition: 0.3s; padding: 5px 10px; border-radius: 5px; }
nav a:hover { background-color: var(--bg-color); color: var(--primary-color); }

/* کارت‌ها */
.card { background: var(--card-bg); border-radius: var(--border-radius); padding: 25px; box-shadow: var(--shadow); margin-bottom: 20px; border: 1px solid #e5e7eb; }
.card h3 { border-bottom: 2px solid var(--bg-color); padding-bottom: 10px; margin-bottom: 20px; color: var(--primary-color); }

/* گرید داشبورد */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--card-bg); padding: 20px; border-radius: var(--border-radius); box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--primary-color); }
.stat-value { font-size: 24px; font-weight: bold; margin-top: 10px; }

/* جداول */
.table-responsive { overflow-x: auto; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 600px; background: white; }
th, td { padding: 12px; text-align: right; border-bottom: 1px solid #e5e7eb; }
th { background-color: #f9fafb; color: var(--text-muted); font-weight: bold; }
tr:hover { background-color: #f9fafb; }

/* فرم‌ها */
.form-group { margin-bottom: 15px; }
label { display: block; font-weight: bold; margin-bottom: 5px; color: var(--text-main); }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; transition: 0.3s; }
input:focus, select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

/* دکمه‌ها */
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; text-decoration: none; cursor: pointer; border: none; color: white; font-size: 14px; transition: 0.3s; }
.btn-primary { background-color: var(--primary-color); }
.btn-primary:hover { background-color: var(--secondary-color); color:#000; }
.btn-danger { background-color: var(--danger-color); }
.btn-success { background-color: var(--success-color); }
.btn-info { background-color: var(--info-color); }

/* رنگ‌های وضعیت */
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }

/* ریسپانسیو */
@media (max-width: 768px) {
    body{    font-family: 'iranyekan', Tahoma, 'Segoe UI', sans-serif; }
    header { flex-direction: column; text-align: center; gap: 15px; }
    nav a { margin: 5px; display: inline-block; }
}