@font-face {
    font-family: "vazirmatn";
    src: url("fonts/Vazirmatn-VariableFont_wght.ttf");
}
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
}

* {
    font-family: 'vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    direction: rtl;
}

a {
    text-decoration: none;
    color: #fff;
}

/* کلاس‌های گرید Tailwind */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.text-xl {
    font-size: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-red-500 {
    color: #ef4444;
}

.text-red-600 {
    color: #dc2626;
}

.text-green-600 {
    color: #16a34a;
}

.text-blue-600 {
    color: #2563eb;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-white {
    background-color: #ffffff;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.w-full {
    width: 100%;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-2 {
    height: 0.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}

.max-h-48 {
    max-height: 12rem;
}

.cursor-pointer {
    cursor: pointer;
}

.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

/* استایل‌های اصلی سیستم */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.gradient-success {
    background: linear-gradient(135deg, var(--success-color), #27ae60);
}

.gradient-warning {
    background: linear-gradient(135deg, var(--warning-color), #d35400);
}

.gradient-danger {
    background: linear-gradient(135deg, var(--danger-color), #c0392b);
}

.gradient-accent {
    background: linear-gradient(135deg, var(--accent-color), #3498db);
}

/* دکمه‌ها */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    margin-top: 10px;   
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #27ae60);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* ========== دکمه‌های اضافی ========== */
.btn-outline {
    background-color: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
    transition: all 0.2s;
}
.btn-outline:hover {
    background-color: #f1f5f9;
    transform: translateY(-1px);
}
.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}
.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
}
.btn-info {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
}
.btn-info:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-1px);
}
/* ریسپانسیو برای دکمه‌ها در موبایل */
@media (max-width: 640px) {
    .btn, .btn-outline, .btn-warning, .btn-info, .btn-accent {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c0392b);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), #3498db);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 201, 240, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin: 0 5px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* فیلدهای ورودی */
.input-field {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 15px;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* کارت‌ها */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* جداول */
.table-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 16px;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
    border-bottom: 2px solid #dee2e6;
}

.table-container td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.table-container tr:hover {
    background-color: #f8f9fa;
}

/* نشانگرها */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.badge-warning {
    background-color: rgba(243, 156, 18, 0.15);
    color: #d35400;
}

.badge-danger {
    background-color: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

.badge-info {
    background-color: rgba(52, 152, 219, 0.15);
    color: #2980b9;
}

.badge-primary {
    background-color: rgba(67, 97, 238, 0.15);
    color: var(--primary-color);
}

/* کارت آمار */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--dark-color);
}

.stat-content p {
    margin: 5px 0 0 0;
    color: #6c757d;
    font-size: 14px;
}

/* منوی کناری */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-title {
    font-size: 22px;
    font-weight: 700;
}

.close-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-menu a:hover, 
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.sidebar-menu i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* دکمه همبرگری */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* محتوای اصلی */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* هدر */
.header {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.header p {
    color: #6c757d;
    margin: 8px 0 0 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 10px 16px;
    border-radius: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* کارت‌های داشبورد */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    margin-bottom: 20px;
}

.dashboard-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--dark-color);
}

.dashboard-card p {
    color: #6c757d;
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* تب‌ها */
.tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
}

.tab {
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.5);
}

/* فرم */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

/* کارت دانش‌آموز */
.student-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-right: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.student-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.student-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #f0f0f0;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* وضعیت حضور و غیاب */
.attendance-status {
    display: flex;
    gap: 10px;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-option input[type="radio"] {
    margin: 0;
}

.status-present {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.status-absent {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

.status-late {
    background: rgba(243, 156, 18, 0.1);
    color: #d35400;
}

.status-option.active {
    background: #2ecc71;
    color: white;
}

.status-absent.active {
    background: #e74c3c;
}

.status-late.active {
    background: #f39c12;
}

/* عملکرد دانش‌آموز */
.performance-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.performance-positive {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.performance-neutral {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
}

.performance-negative {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

.performance-option.active {
    background: #2ecc71;
    color: white;
}

.performance-neutral.active {
    background: #3498db;
}

.performance-negative.active {
    background: #e74c3c;
}

/* ورودی نمرات */
.score-input {
    width: 80px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.score-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* دکمه شناور */
.floating-action-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.floating-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.5);
}

@media (max-width: 768px) {
    .floating-action-btn {
        bottom: 20px;
        left: 20px;
    }
}

/* اسپینر لودینگ */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* پیام toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-right: 5px solid #2ecc71;
}

.toast-error {
    border-right: 5px solid #e74c3c;
}

.toast-warning {
    border-right: 5px solid #f39c12;
}

.toast-info {
    border-right: 5px solid #3498db;
}

/* منطقه چاپ */
.print-area {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.print-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.print-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 10px 0;
}

/* مودال */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
}

.close-modal {
    background: #f8f9fa;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #6c757d;
}

/* گزینه‌های پشتیبان */
.backup-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.backup-option:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.backup-option-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    font-size: 20px;
    color: var(--primary-color);
}

.backup-option-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.backup-option-content p {
    font-size: 14px;
    color: #6c757d;
}

/* کلاس‌های کمکی */
.hidden {
    display: none !important;
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
    margin-right: 0.5rem;
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
    margin-right: 1rem;
}

/* استایل چاپ */
@media print {
    body * {
        visibility: hidden;
    }
    
    .print-area, .print-area * {
        visibility: visible;
    }
    
    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
        margin: 0;
        padding: 20px;
        box-shadow: none;
        border: none;
    }
    
    .no-print {
        display: none !important;
    }
    
    .btn, button {
        display: none !important;
    }
}

/* استایل جداول در موبایل */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-container table {
        min-width: 500px;
    }
    
    #attendance-view .table-container table {
        min-width: 600px;
    }
    
    #saved-info-view .table-container table {
        min-width: 800px;
    }
    
    #assign-scores-view .table-container table {
        min-width: 400px;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        width: 100%;
    }
}

/* استایل اسکرول‌بار */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .dashboard-card, .stat-card {
    animation: fadeIn 0.5s ease-out;
}