/* فونت وزیر متن */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* استایل کلی */
* {
    font-family: 'Vazirmatn', sans-serif !important;
}

body {
    background: #f8f9fa;
    min-height: 100vh;
}

/* نوار ناوبری */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    color: #495057 !important; /* تغییر رنگ نوشته به خاکستری تیره */
    font-weight: bold;
}

.navbar-brand:hover {
    color: #667eea !important;
}

.logo-text {
    color: #495057 !important; /* رنگ لوگو به خاکستری تیره */
}

.nav-link {
    color: #6c757d !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.nav-link:hover {
    color: #495057 !important;
}

/* منوی سمت راست داشبورد */
.nav-pills .nav-link {
    border-radius: 12px;
    margin-bottom: 5px;
    color: #6c757d;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; /* حفظ گرادیان اصلی */
    color: white !important;
}

/* تغییر رنگ آیتم‌های فعال به آبی کم رنگ مینیمال */
.nav-pills .nav-link.active:hover {
    background: linear-gradient(135deg, #8a9ef0 0%, #9a6bc9 100%) !important; /* آبی کم رنگ‌تر */
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
    color: #495057;
}

/* کارت ورود */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* لوگو */
.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo-text {
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    text-align: center;
}

/* فرم */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    background-color: #fff;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px 0 0 12px !important;
    border-left: 0;
}

.input-group > .form-control {
    border-radius: 0 12px 12px 0 !important;
}

/* دکمه */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* دکمه آبی کم رنگ مینیمال برای منو */
.btn-minimal-blue {
    background: linear-gradient(135deg, #8a9ef0 0%, #9a6bc9 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-minimal-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(138, 158, 240, 0.3);
}

/* چک باکس */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* لینک‌ها */
a {
    color: #667eea;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

a:hover {
    color: #764ba2;
    text-decoration: none !important;
}

/* فوتر */
footer {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* کارت آمار */
.stat-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* رسپانسیو */
@media (max-width: 768px) {
    .card {
        margin: 1rem;
        padding: 1rem;
    }
    
    .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .logo-circle {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 0.5rem;
    }
    
    .card-body {
        padding: 1.5rem 1rem !important;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* اسپینر */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* اسکرولبار */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* استایل جدید برای آیتم‌های فعال در منو */
.nav-pills .nav-link.active.minimal-blue {
    background: linear-gradient(135deg, #8a9ef0 0%, #9a6bc9 100%) !important;
    color: white !important;
}

/* استایل برای دکمه‌های outline */
.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* استایل برای بج‌ها */
.badge.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%) !important;
}

/* استایل برای کارت‌ها */
.card.border-0.shadow-sm.rounded-4 {
    border-radius: 1rem !important;
}

.card-header {
    border-radius: 1rem 1rem 0 0 !important;
}

/* استایل برای جدول‌ها */
.table th {
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* استایل برای فرم‌های جستجو */
.input-group .form-control:focus,
.input-group .form-select:focus {
    z-index: 3;
}

.input-group .btn {
    z-index: 2;
}

/* استایل برای آیتم‌های منوی مدیریت */
.admin-sidebar .nav-link {
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, #8a9ef0 0%, #9a6bc9 100%) !important;
    color: white !important;
}

/* استایل برای دکمه‌های عملیات */
.btn-operation {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

/* استایل برای آیکون‌ها */
.bi {
    vertical-align: -0.125em;
}

/* استایل برای تاریخ‌ها */
.text-muted small {
    font-size: 0.75rem;
}

/* استایل برای آمارها */
.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.875rem;
}

/* استایل برای کارت‌های آمار */
.stat-card .bg-primary.bg-opacity-10 {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
}

.stat-card .bg-success.bg-opacity-10 {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%) !important;
}

.stat-card .bg-info.bg-opacity-10 {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(111, 66, 193, 0.1) 100%) !important;
}

.stat-card .bg-warning.bg-opacity-10 {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(253, 126, 20, 0.1) 100%) !important;
}

.stat-card .bg-danger.bg-opacity-10 {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(232, 62, 140, 0.1) 100%) !important;
}