* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background: #eef2f5;
    overflow-x: hidden;
}

/* ========== لاگین ========== */
.login-container-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a2f 0%, #2c5e3a 100%);
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    width: 420px;
    text-align: center;
}

.login-icon {
    font-size: 64px;
    color: #2c5e3a;
    margin-bottom: 20px;
}

.login-card h2 {
    color: #2c5e3a;
    margin-bottom: 8px;
    font-size: 28px;
}

.login-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-card input {
    width: 100%;
    padding: 14px 16px;
    margin: 10px 0;
    border: 2px solid #e0e4e8;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.login-card input:focus {
    outline: none;
    border-color: #2c5e3a;
    box-shadow: 0 0 0 3px rgba(44, 94, 58, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #2c5e3a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-login:hover {
    background: #1e3a2f;
    transform: translateY(-2px);
}

.login-error {
    color: #e74c3c;
    margin-top: 15px;
    font-size: 13px;
}

/* ========== اپلیکیشن اصلی ========== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ========== سایدبار ========== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e3a2f 0%, #2c5e3a 100%);
    color: white;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: #d4a017;
    border-radius: 3px;
}

.sidebar-header {
    padding: 30px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
}

.logo i {
    font-size: 32px;
    color: #d4a017;
}

.logo-light {
    font-weight: 400;
    color: #d4a017;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 4px 0;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-item i {
    width: 24px;
    font-size: 18px;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: #d4a017;
    color: #1e3a2f;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.user-info-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 12px;
}

.user-info-sidebar i {
    font-size: 32px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    opacity: 0.7;
}

.logout-sidebar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #ff6b6b;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.logout-sidebar:hover {
    background: rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

/* ========== محتوای اصلی ========== */
.main-content {
    flex: 1;
    margin-right: 280px;
    min-height: 100vh;
    width: calc(100% - 280px);
}

.top-header {
    background: white;
    padding: 20px 32px;
    border-bottom: 1px solid #e0e4e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.header-title h1 {
    font-size: 24px;
    color: #2c5e3a;
}

.date-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0f2f5;
    border-radius: 12px;
    color: #555;
    font-size: 14px;
}

.content-wrapper {
    padding: 32px;
}

/* ========== کارت‌های آماری ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-right: 4px solid #d4a017;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 48px;
    color: #2c5e3a;
}

.stat-info h3 {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.stat-info .value {
    font-size: 28px;
    font-weight: 700;
    color: #2c5e3a;
}

/* ========== بخش کارت‌ها ========== */
.section-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f2f5;
}

.section-header i {
    font-size: 24px;
    color: #2c5e3a;
}

.section-header h3 {
    font-size: 18px;
    color: #2c5e3a;
}

/* ========== جداول ========== */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8f9fa;
    padding: 14px 12px;
    text-align: right;
    font-weight: 600;
    color: #2c5e3a;
    border-bottom: 2px solid #e0e4e8;
    font-size: 14px;
}

.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f2f5;
    color: #333;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

/* وضعیت badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1a4a6f;
    border-radius: 20px;
    font-size: 12px;
}

/* ========== دکمه‌ها ========== */
.btn-primary {
    background: #2c5e3a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #1e3a2f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-success:hover {
    background: #219a52;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #c0392b;
}

/* ========== مودال ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 550px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e4e8;
}

.modal-header h3 {
    color: #2c5e3a;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e4e8;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ========== فرم‌ها ========== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.form-group label i {
    margin-left: 6px;
    color: #2c5e3a;
}

.form-group input, 
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e4e8;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus, 
.form-select:focus {
    outline: none;
    border-color: #2c5e3a;
    box-shadow: 0 0 0 3px rgba(44, 94, 58, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ========== تب‌ها ========== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== پیام‌ها و اعلانات ========== */
.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-right: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-right: 4px solid #dc3545;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 992px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar .logo span, 
    .sidebar .nav-item span, 
    .user-info-sidebar div, 
    .logout-sidebar span {
        display: none;
    }
    
    .main-content {
        margin-right: 80px;
        width: calc(100% - 80px);
    }
    
    .nav-item {
        justify-content: center;
    }
    
    .user-info-sidebar {
        justify-content: center;
    }
    
    .user-info-sidebar i {
        font-size: 28px;
    }
    
    .logout-sidebar {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .top-header {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .header-title h1 {
        font-size: 20px;
    }
    
    .stat-card .value {
        font-size: 22px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 60px;
    }
    
    .main-content {
        margin-right: 60px;
        width: calc(100% - 60px);
    }
    
    .nav-item i {
        font-size: 20px;
    }
    
    .login-card {
        width: 90%;
        padding: 30px 20px;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* ========== چاپ ========== */
@media print {
    .sidebar,
    .top-header,
    .btn-primary,
    .btn-success,
    .logout-sidebar,
    .modal-close {
        display: none;
    }
    
    .main-content {
        margin-right: 0;
        width: 100%;
    }
    
    .content-wrapper {
        padding: 0;
    }
    
    .section-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========== لودینگ ========== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2c5e3a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== آیکون در کنار متن ========== */
.btn-primary i,
.btn-success i,
.btn-secondary i,
.nav-item i,
.section-header i {
    margin-left: 6px;
}

/* ========== شمارنده ========== */
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d4a017;
    color: #1e3a2f;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 8px;
}

/* ========== فرم‌های پیشرفته ========== */

/* گروه فرم با آیکون */
.form-group-modern {
    margin-bottom: 20px;
}

.form-group-modern label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2c5e3a;
}

.form-group-modern label i {
    margin-left: 8px;
    color: #d4a017;
}

.form-group-modern input,
.form-group-modern select,
.form-group-modern textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group-modern input:focus,
.form-group-modern select:focus,
.form-group-modern textarea:focus {
    outline: none;
    border-color: #2c5e3a;
    background: white;
    box-shadow: 0 0 0 4px rgba(44, 94, 58, 0.1);
}

.form-group-modern input:hover,
.form-group-modern select:hover {
    border-color: #c0c8d0;
}

/* فرم‌های درون کارت */
.form-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.form-row-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* دکمه‌های فرم */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf0;
}

/* فیلدهای خطا */
.form-group-modern.error input,
.form-group-modern.error select {
    border-color: #e74c3c;
    background: #fff5f5;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

/* فیلد موفق */
.form-group-modern.success input {
    border-color: #27ae60;
    background: #f0fff4;
}

/* فیلد غیرفعال */
.form-group-modern input:disabled,
.form-group-modern select:disabled {
    background: #f0f2f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* فیلد با آیکون داخلی */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0c8d0;
    font-size: 16px;
}

.input-with-icon input,
.input-with-icon select {
    padding-right: 42px;
}

/* فرم‌های فشرده (برای سایدبار کوچک) */
.form-compact .form-group-modern {
    margin-bottom: 12px;
}

.form-compact input,
.form-compact select {
    padding: 8px 12px;
    font-size: 13px;
}

.btn-info {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    margin: 2px;
    font-size: 14px;
}

.btn-info:hover {
    background: #2980b9;
}

.btn-warning {
    background: #f39c12;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    margin: 2px;
    font-size: 14px;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    margin: 2px;
    font-size: 14px;
}

.btn-danger:hover {
    background: #c0392b;
}

.details-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.details-section h4 {
    color: #2c5e3a;
    margin-bottom: 12px;
    font-size: 16px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.details-grid div {
    font-size: 14px;
    padding: 5px 0;
}


/* مودال */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #e0e4e8;
    background: #f8fafc;
}

.modal-header h3 {
    color: #2c5e3a;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e4e8;
    display: flex;
    justify-content: flex-end;
    background: #f8fafc;
}

.details-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f5;
}

.details-section h4 {
    color: #2c5e3a;
    margin-bottom: 12px;
    font-size: 16px;
}

.details-section h4 i {
    margin-left: 8px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.details-grid div {
    font-size: 14px;
    padding: 6px 0;
}

/* کارت‌های آماری در صفحه مدیریت موترها */
#vehicleStatsGrid {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

#vehicleStatsGrid .stat-card {
    background: white;
    padding: 18px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-right: 4px solid #d4a017;
    transition: all 0.3s;
}

#vehicleStatsGrid .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

#vehicleStatsGrid .stat-card i {
    font-size: 40px;
    color: #2c5e3a;
}

#vehicleStatsGrid .stat-info h3 {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

#vehicleStatsGrid .stat-info .value {
    font-size: 22px;
    font-weight: 700;
    color: #2c5e3a;
}


/* Quick Actions */
.quick-actions-section {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.quick-action-btn {
    background: linear-gradient(135deg, #2c5e3a 0%, #1e3a2f 100%);
    color: white;
    border: none;
    padding: 15px 10px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-family: inherit;
}

.quick-action-btn i {
    font-size: 28px;
}

.quick-action-btn span {
    font-size: 13px;
    font-weight: 500;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 94, 58, 0.3);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.half-width {
    width: 100%;
}

/* Today Stats */
.today-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.today-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.2s;
}

.today-item:hover {
    background: #f0f2f5;
}

.today-item i {
    font-size: 32px;
    color: #2c5e3a;
}

.today-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.today-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #2c5e3a;
}

/* Notifications */
.notification-badge {
    background: #e74c3c;
    color: white;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    margin-right: 10px;
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid #eef2f5;
    transition: all 0.2s;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #e8f5e9;
    border-right: 3px solid #2c5e3a;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.notification-icon.warning {
    background: #fff3e0;
    color: #f39c12;
}

.notification-icon.success {
    background: #e8f5e9;
    color: #27ae60;
}

.notification-icon.info {
    background: #e3f2fd;
    color: #3498db;
}

.notification-icon.danger {
    background: #ffebee;
    color: #e74c3c;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .today-stats {
        grid-template-columns: 1fr;
    }
}

/* Attendance Table */
#attendanceTable td {
    vertical-align: middle;
}

.status-badge.present {
    background: #d4edda;
    color: #155724;
}

.status-badge.absent {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.late {
    background: #fff3cd;
    color: #856404;
}

.attendance-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-present {
    background: #27ae60;
    color: white;
}

.btn-present:hover {
    background: #219a52;
}

.btn-absent {
    background: #e74c3c;
    color: white;
}

.btn-absent:hover {
    background: #c0392b;
}

.attendance-summary {
    margin-top: 15px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-item i {
    font-size: 18px;
}

.summary-item .count {
    font-weight: 700;
    font-size: 18px;
    color: #2c5e3a;
}

.date-badge-small {
    background: #f0f2f5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
}

.report-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.report-controls .form-select {
    width: auto;
    min-width: 120px;
}

/* ========== فیلتر و جستجو ========== */
.filter-container {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-item {
    flex: 1;
    min-width: 150px;
}

.filter-item label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #2c5e3a;
    margin-bottom: 6px;
}

.filter-item label i {
    margin-left: 6px;
    color: #d4a017;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e4e8;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: all 0.3s;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #2c5e3a;
    box-shadow: 0 0 0 3px rgba(44, 94, 58, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-buttons button {
    padding: 10px 20px;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-item {
        width: 100%;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}