/* ============================================================
   فونت وزیرمتن (Vazir) - برای زیبایی و خوانایی بهتر
   ============================================================ */
@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;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #0f172a !important;
}

.nav-link.active {
    background: #4f46e5;
    color: #ffffff !important;
}

/* ============================================================
   کاردها (Cards) - بدون سایه سنگین
   ============================================================ */
.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.1rem;
    color: #0f172a;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 20px;
}

/* ============================================================
   دکمه‌ها (Buttons) - ساده و مینیمال
   ============================================================ */
.btn {
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
}

.btn-pastel {
    background: #4f46e5;
    color: #ffffff;
}

.btn-pastel:hover {
    background: #4338ca;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border: 1px solid #d1d5db;
    background: transparent;
    color: #475569;
}

.btn-outline-secondary:hover {
    background: #f1f5f9;
    border-color: #9ca3af;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 0.85rem;
}

/* ============================================================
   جداول (Tables) - بدون رنگ‌های متناوب
   ============================================================ */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    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;
}

.table-pastel thead {
    background: transparent;
}

/* ============================================================
   فرم‌ها (Forms)
   ============================================================ */
.form-control {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-control: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.9rem;
    color: #334155;
    margin-bottom: 4px;
}

/* ============================================================
   بج‌ها (Badges)
   ============================================================ */
.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;
}

/* ============================================================
   فوتر
   ============================================================ */
footer {
    background: #ffffff;
    border-top: 1px solid #e9edf2;
    padding: 16px 0;
    margin-top: 40px;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ============================================================
   استایل‌های داشبورد
   ============================================================ */
.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.9rem;
}

/* ============================================================
   تقویم
   ============================================================ */
.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;
}

/* ============================================================
   ریسپانسیو (Responsive)
   ============================================================ */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    .card-header {
        font-size: 1rem;
        padding: 12px 16px;
    }
    .dashboard-card h3 {
        font-size: 1.5rem;
    }
}