/* فونت وزیر */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2'),
         url('../fonts/Vazir.woff') format('woff'),
         url('../fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2'),
         url('../fonts/Vazir-Bold.woff') format('woff'),
         url('../fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Medium.woff2') format('woff2'),
         url('../fonts/Vazir-Medium.woff') format('woff'),
         url('../fonts/Vazir-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت وزیر به صورت اصولی */
body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    direction: rtl;
    color: #333;
    line-height: 1.6;
}

/* اعمال فونت بر روی عناصر اصلی بدون استفاده از !important */
h1, h2, h3, h4, h5, h6,
p, span, div,
a, button, .btn,
input, textarea, select, .form-control,
table, th, td,
.navbar, .nav-links, .logo-content,
.card, .card-header, .card-body,
.modal, .modal-header, .modal-body, .modal-footer,
.alert, .badge,
.nav-tabs .nav-link,
.form-group label,
.stat-info h3, .stat-info p,
.player-info h4, .player-info p,
.legend-item,
.week-title,
.footer p {
    font-family: 'Vazir', Tahoma, sans-serif;
}

/* بازنویسی استایل‌های اصلی با حفظ ساختار */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* هدر و ناوبری */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-content h1 {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.current-date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 25px;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.nav-links a.active {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    color: white;
    font-weight: 500;
}

.user-info a {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.user-info a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* محتوای اصلی */
.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* کارت‌ها */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(30, 60, 114, 0.1);
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1e3c72;
    position: relative;
}

.card-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 2px;
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2a5298;
}

/* تب‌ها */
.nav-tabs {
    border-bottom: 2px solid rgba(30, 60, 114, 0.1);
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tabs .nav-link:hover {
    color: #1e3c72;
    background: rgba(30, 60, 114, 0.05);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.tab-content {
    padding: 1rem 0;
}

/* دکمه‌ها */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: width 0.3s ease;
    z-index: 1;
    border-radius: 25px;
}

.btn:hover::before {
    width: 100%;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.btn-primary::before {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 176, 155, 0.3);
}

.btn-success::before {
    background: linear-gradient(135deg, #96c93d, #00b09b);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-danger::before {
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
}

.btn-info {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
}

.btn-info::before {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* فرم‌ها */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2a5298;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    background: white;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* بقیه استایل‌ها به همان شکل قبلی باقی می‌مانند اما فونت اضافه شده */
/* ... سایر استایل‌ها بدون تغییر ... */

/* استایل برای عناصر Bootstrap */
.navbar-brand,
.navbar-nav .nav-link,
.dropdown-menu,
.dropdown-item,
.form-select,
.form-check-label,
.tooltip-inner,
.popover,
.popover-header,
.popover-body {
    font-family: 'Vazir', Tahoma, sans-serif;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .card-header h2::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-content h1 {
        font-size: 1.4rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}