/* style.css */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
}

:root {
    --primary: #2563eb;
    --secondary: #64748b;
    --success: #16a34a;
    --danger: #dc2626;
    --bg: #f8fafc;
    --surface: #ffffff;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background-color: var(--bg);
    color: #1e293b;
    margin: 0;
    line-height: 1.6;
}

/* منوی بالای سایت */
.navbar {
    background: var(--surface);
    padding: 15px 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.navbar a {
    text-decoration: none;
    color: #334155;
    margin-left: 20px;
    font-weight: bold;
}
.navbar a:hover { color: var(--primary); }
.brand { font-size: 20px; color: var(--primary) !important; font-weight: 900 !important; }

/* کانتینر اصلی */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* کارت‌ها */
.card {
    background: var(--surface);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* دکمه‌ها */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    background: var(--primary);
    border: none;
    cursor: pointer;
    font-family: 'Vazir';
    transition: 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }

/* فرم‌ها */
input, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Vazir';
    box-sizing: border-box;
}

/* جداول */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: right; border-bottom: 1px solid #e2e8f0; }
th { background: #f1f5f9; }


/* اضافه شده برای صفحه ادمین */
.admin-wide {
    max-width: 1400px !important; /* عرض صفحه ادمین را زیاد میکند */
    width: 95%;
}

.admin-layout {
    flex-wrap: nowrap !important; /* جلوگیری از شکستن سایدبار */
}

/* زیباتر کردن جدول‌ها در عرض زیاد */
table {
    width: 100%;
    table-layout: auto; 
}

td, th {
    white-space: nowrap; /* جلوگیری از شکستن متن در جدول */
}

/* استایل بج‌های جدید */
.badge-premium {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.3);
}
.badge-normal {
    background: #e2e8f0;
    color: #64748b;
}