/* ============================================================
   فونت وزیرمتن (Vazirmatn)
   ============================================================ */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* ============================================================
   ریست و تنظیمات پایه
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* ============================================================
   هدر و نوار ناوبری
   ============================================================ */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e9edf2;
    padding: 12px 0;
    box-shadow: none;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #0f172a !important;
}

.navbar-brand i {
    color: #4f46e5;
    margin-left: 8px;
}

.nav-link {
    color: #475569 !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-link i {
    margin-left: 6px;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #0f172a !important;
}

.nav-link.text-danger:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* ============================================================
   کاردها
   ============================================================ */
.card {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #e9edf2;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.05rem;
    color: #0f172a;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 20px;
}

/* ============================================================
   دکمه‌ها
   ============================================================ */
.btn {
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-pastel {
    background: #4f46e5;
    color: #ffffff;
}

.btn-pastel:hover {
    background: #4338ca;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 0.8rem;
}

/* ============================================================
   جداول
   ============================================================ */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 0.9rem;
}

.table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 16px;
    border-bottom: 1px solid #e9edf2;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8fafc;
}

/* ============================================================
   فرم‌ها
   ============================================================ */
.form-control, .form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-control:focus, .form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 4px;
}

/* ============================================================
   بج‌ها
   ============================================================ */
.badge {
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* ============================================================
   رنگ‌های اصلی
   ============================================================ */
.bg-primary { background: #4f46e5 !important; }
.bg-success { background: #10b981 !important; }
.bg-danger { background: #ef4444 !important; }
.bg-warning { background: #f59e0b !important; }
.bg-info { background: #3b82f6 !important; }
.bg-secondary { background: #94a3b8 !important; }

/* ============================================================
   کاردهای داشبورد
   ============================================================ */
.dashboard-card {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.dashboard-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.dashboard-card .label {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ============================================================
   تقویم
   ============================================================ */
.calendar-container {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    padding: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #94a3b8;
    padding: 8px 0;
}

.calendar-day {
    text-align: center;
    padding: 8px 0;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: default;
}

.calendar-day.has-member {
    background: #4f46e5;
    color: #ffffff;
    cursor: pointer;
}

.calendar-day.today {
    border-color: #4f46e5;
}

.calendar-day .day-count {
    font-size: 0.65rem;
    opacity: 0.8;
}

/* ============================================================
   ریسپانسیو
   ============================================================ */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    .card-header {
        font-size: 1rem;
        padding: 12px 16px;
    }
    .dashboard-card h3 {
        font-size: 1.5rem;
    }
    .table {
        font-size: 0.8rem;
    }
    .table th, .table td {
        padding: 8px 10px;
    }
}