@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 700;
    src: url('../font/eot/IRANSansWeb(FaNum)_Bold.eot');
    src: url('../font/eot/IRANSansWeb(FaNum)_Bold.eot?#iefix') format('embedded-opentype'), url('../font/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2'), url('../font/woff/IRANSansWeb(FaNum)_Bold.woff') format('woff'), url('../font/ttf/IRANSansWeb(FaNum)_Bold.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    src: url('../font/eot/IRANSansWeb(FaNum)_Medium.eot');
    src: url('../font/eot/IRANSansWeb(FaNum)_Medium.eot?#iefix') format('embedded-opentype'), url('../font/woff2/IRANSansWeb(FaNum)_Medium.woff2') format('woff2'), url('../font/woff/IRANSansWeb(FaNum)_Medium.woff') format('woff'), url('../font/ttf/IRANSansWeb(FaNum)_Medium.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 300;
    src: url('../font/eot/IRANSansWeb(FaNum)_Light.eot');
    src: url('../font/eot/IRANSansWeb(FaNum)_Light.eot?#iefix') format('embedded-opentype'), url('../font/woff2/IRANSansWeb(FaNum)_Light.woff2') format('woff2'), url('../font/woff/IRANSansWeb(FaNum)_Light.woff') format('woff'), url('../font/ttf/IRANSansWeb(FaNum)_Light.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 200;
    src: url('../font/eot/IRANSansWeb(FaNum)_UltraLight.eot');
    src: url('../font/eot/IRANSansWeb(FaNum)_UltraLight.eot?#iefix') format('embedded-opentype'), url('../font/woff2/IRANSansWeb(FaNum)_UltraLight.woff2') format('woff2'), url('../font/woff/IRANSansWeb(FaNum)_UltraLight.woff') format('woff'), url('../font/ttf/IRANSansWeb(FaNum)_UltraLight.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 400;
    src: url('../font/eot/IRANSansWeb(FaNum).eot');
    src: url('../font/eot/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'), url('../font/woff2/IRANSansWeb(FaNum).woff2') format('woff2'), url('../font/woff/IRANSansWeb(FaNum).woff') format('woff'), url('../font/ttf/IRANSansWeb(FaNum).ttf') format('truetype');
}



@font-face {
    font-family: byekan;
    font-style: normal;
    font-weight: 400;
    src: url('../font/byekan.ttf');
    
}


* {
    font-family: IRANSans;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-box h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

.login-box h3 {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: normal;
}

/* Navbar */
.navbar {
    background: #2c3e50;
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand {
    color: white !important;
    text-decoration: none !important;
    font-size: 20px;
    font-weight: bold;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    flex-wrap: wrap;
}

.navbar-menu li {
    margin: 0 5px;
}

.navbar-menu a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
    display: block;
}

.navbar-menu a:hover {
    background: #34495e;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
    color: #ecf0f1;
}

/* Dashboard */
.dashboard-header {
    padding: 30px 0 20px;
    border-bottom: 2px solid #e1e8ed;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    color: #2c3e50;
    font-size: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 30px;
}

.stat-info h3 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0;
}

.stat-info p {
    color: #7f8c8d;
    margin: 5px 0 0;
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.dashboard-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.dashboard-section h2 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

/* Tables */
.table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    margin: 15px 0;
    border-radius: 5px;
    overflow: hidden;
}

.table thead {
    background: #34495e;
    color: white;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #e1e8ed;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-info {
    background: #1abc9c;
    color: white;
}

.btn-info:hover {
    background: #16a085;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Alerts */
.alert {
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Reminders */
.reminder-list {
    list-style: none;
    padding: 0;
}

.reminder-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 10px;
}

.reminder-list li:last-child {
    border-bottom: none;
}

.reminder-list strong {
    color: #2c3e50;
    display: block;
}

.reminder-time {
    color: #7f8c8d;
    font-size: 12px;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        width: 100%;
        flex-direction: column;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-user {
        margin-right: 0;
        padding: 10px 0;
        border-top: 1px solid #34495e;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
    }
}

@media print {
    .navbar {
        display: none;
    }
    
    .btn {
        display: none;
    }
}

/* ============================================
           استایل‌های اصلی هدر
           ============================================ */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Tahoma', 'Arial', sans-serif;
            direction: rtl;
            background: #f0f2f5;
            color: #333;
            line-height: 1.6;
            /* padding-top: 65px; */
        }
        
        /* ============================================
           نوار ناوبری
           ============================================ */
        .navbar {
            background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
            padding: 0;
            /*position: fixed;*/
            /*top: 0;*/
            /*left: 0;*/
            /*right: 0;*/
            /*z-index: 9999;*/
            box-shadow: 0 2px 15px rgba(0,0,0,0.3);
            /*height: 65px;*/
            display: flex;
            align-items: center;
        }
        
        .navbar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            padding: 0 20px;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            height: 100%;
        }
        
        /* ============================================
           برند و لوگو
           ============================================ */
        .navbar-header {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .navbar-brand {
            color: #ecf0f1 !important;
            text-decoration: none !important;
            font-size: 20px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
        }
        
        .navbar-brand i {
            font-size: 26px;
            color: #3498db;
        }
        
        .navbar-brand:hover {
            color: #3498db !important;
        }
        
        .navbar-brand .brand-sub {
            font-size: 11px;
            font-weight: normal;
            color: #95a5a6;
            margin-right: 5px;
            background: rgba(255,255,255,0.1);
            padding: 2px 8px;
            border-radius: 10px;
        }
        
        /* ============================================
           دکمه منو در موبایل
           ============================================ */
        .navbar-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 5px;
            transition: background 0.3s;
        }
        
        .navbar-toggle:hover {
            background: rgba(255,255,255,0.1);
        }
        
        .navbar-toggle span {
            display: block;
            width: 25px;
            height: 3px;
            background: #ecf0f1;
            margin: 5px 0;
            border-radius: 3px;
            transition: all 0.3s;
        }
        
        .navbar-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }
        
        .navbar-toggle.active span:nth-child(2) {
            opacity: 0;
        }
        
        .navbar-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }
        
        /* ============================================
           منوی اصلی
           ============================================ */
        .navbar-menu {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 2px;
            flex-wrap: wrap;
            align-items: center;
            height: 100%;
        }
        
        .navbar-menu > li {
            margin: 0;
            position: relative;
            height: 100%;
            display: flex;
            align-items: center;
        }
        
        .navbar-menu > li > a {
            color: #ecf0f1;
            text-decoration: none;
            padding: 8px 14px;
            border-radius: 6px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            height: 40px;
            white-space: nowrap;
            position: relative;
        }
        
        .navbar-menu > li > a i {
            font-size: 15px;
        }
        
        .navbar-menu > li > a:hover {
            background: rgba(255,255,255,0.1);
            color: #3498db;
        }
        
        .navbar-menu > li > a.active {
            background: #3498db;
            color: white;
        }
        
        .navbar-menu > li > a .menu-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #e74c3c;
            color: white;
            border-radius: 50%;
            padding: 1px 6px;
            font-size: 10px;
            font-weight: bold;
            min-width: 18px;
            text-align: center;
            border: 2px solid #1a2a3a;
        }
        
        /* ============================================
           منوی کشویی
           ============================================ */
        .navbar-menu .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background: #2c3e50;
            min-width: 220px;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
            padding: 8px 0;
            z-index: 1000;
            border: 1px solid rgba(255,255,255,0.05);
        }
        
        .navbar-menu .dropdown-menu::before {
            content: '';
            position: absolute;
            top: -8px;
            right: 20px;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid #2c3e50;
        }
        
        .navbar-menu .dropdown:hover .dropdown-menu {
            display: block;
            animation: fadeIn 0.2s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .navbar-menu .dropdown-menu a {
            padding: 10px 20px;
            border-radius: 0;
            color: #ecf0f1;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            transition: all 0.2s;
        }
        
        .navbar-menu .dropdown-menu a:hover {
            background: rgba(52, 152, 219, 0.2);
            color: #3498db;
            padding-right: 25px;
        }
        
        .navbar-menu .dropdown-menu a i {
            width: 20px;
            text-align: center;
        }
        
        .navbar-menu .dropdown-menu .divider {
            height: 1px;
            background: rgba(255,255,255,0.1);
            margin: 5px 15px;
        }
        
        /* ============================================
           بخش کاربر
           ============================================ */
        .navbar-user {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-right: 15px;
            padding-right: 15px;
            border-right: 1px solid rgba(255,255,255,0.1);
            height: 100%;
        }
        
        .navbar-user .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #ecf0f1;
            cursor: default;
        }
        
        .navbar-user .user-info .user-avatar {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: #3498db;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 16px;
            flex-shrink: 0;
        }
        
        .navbar-user .user-info .user-details {
            display: flex;
            flex-direction: column;
        }
        
        .navbar-user .user-info .user-name {
            font-weight: bold;
            font-size: 14px;
            line-height: 1.2;
        }
        
        .navbar-user .user-info .user-role {
            font-size: 11px;
            color: #95a5a6;
            line-height: 1.2;
        }
        
        .navbar-user .btn-logout {
            background: rgba(231, 76, 60, 0.8);
            color: white;
            border: none;
            padding: 6px 14px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .navbar-user .btn-logout:hover {
            background: #c0392b;
            transform: scale(1.05);
        }
        
        /* ============================================
           جستجو
           ============================================ */
        .search-box {
            display: flex;
            align-items: center;
            background: rgba(255,255,255,0.1);
            border-radius: 20px;
            padding: 4px 12px;
            margin: 0 10px;
            transition: all 0.3s;
            border: 1px solid transparent;
        }
        
        .search-box:focus-within {
            background: rgba(255,255,255,0.2);
            border-color: #3498db;
        }
        
        .search-box input {
            background: none;
            border: none;
            color: white;
            padding: 6px 8px;
            outline: none;
            width: 130px;
            font-size: 13px;
        }
        
        .search-box input::placeholder {
            color: rgba(255,255,255,0.5);
        }
        
        .search-box button {
            background: none;
            border: none;
            color: rgba(255,255,255,0.6);
            cursor: pointer;
            padding: 4px 6px;
            transition: color 0.3s;
        }
        
        .search-box button:hover {
            color: white;
        }
        
        /* ============================================
           اعلان‌ها
           ============================================ */
        .notification-container {
            position: fixed;
            top: 80px;
            left: 20px;
            z-index: 99999;
            max-width: 380px;
            width: 100%;
        }
        
        .notification {
            background: white;
            padding: 15px 20px;
            border-radius: 10px;
            box-shadow: 0 5px 25px rgba(0,0,0,0.2);
            margin-bottom: 10px;
            border-right: 4px solid #3498db;
            animation: slideInRight 0.4s ease;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .notification.success {
            border-right-color: #2ecc71;
        }
        
        .notification.error {
            border-right-color: #e74c3c;
        }
        
        .notification.warning {
            border-right-color: #f39c12;
        }
        
        .notification .notif-icon {
            font-size: 22px;
        }
        
        .notification .notif-content {
            flex: 1;
        }
        
        .notification .notif-content .notif-title {
            font-weight: bold;
            font-size: 14px;
            color: #2c3e50;
        }
        
        .notification .notif-content .notif-text {
            font-size: 13px;
            color: #7f8c8d;
        }
        
        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        /* ============================================
           واکنش‌گرایی (Responsive)
           ============================================ */
        @media (max-width: 1024px) {
            .navbar-menu > li > a {
                padding: 6px 10px;
                font-size: 12px;
            }
            
            .search-box input {
                width: 80px;
            }
        }
        
        @media (max-width: 768px) {
            body {
                padding-top: 60px;
            }
            
            .navbar {
                height: 60px;
            }
            
            .navbar-toggle {
                display: block;
            }
            
            .navbar-menu {
                display: none;
                position: absolute;
                top: 60px;
                left: 0;
                right: 0;
                background: #1a2a3a;
                flex-direction: column;
                padding: 10px 0;
                height: auto;
                max-height: calc(100vh - 60px);
                overflow-y: auto;
                box-shadow: 0 10px 30px rgba(0,0,0,0.4);
                border-top: 1px solid rgba(255,255,255,0.05);
            }
            
            .navbar-menu.active {
                display: flex;
            }
            
            .navbar-menu > li {
                height: auto;
                width: 100%;
            }
            
            .navbar-menu > li > a {
                height: auto;
                padding: 12px 20px;
                border-radius: 0;
                justify-content: flex-start;
            }
            
            .navbar-menu > li > a .menu-badge {
                position: static;
                margin-right: 8px;
            }
            
            .navbar-menu .dropdown-menu {
                position: static;
                box-shadow: none;
                padding-right: 30px;
                background: rgba(0,0,0,0.2);
                border-radius: 0;
            }
            
            .navbar-menu .dropdown-menu::before {
                display: none;
            }
            
            .navbar-menu .dropdown-menu a {
                padding: 10px 20px;
            }
            
            .navbar-user {
                margin-right: 0;
                padding-right: 0;
                border-right: none;
                border-top: 1px solid rgba(255,255,255,0.1);
                padding-top: 15px;
                margin-top: 10px;
                width: 100%;
                flex-wrap: wrap;
                justify-content: center;
                height: auto;
                padding-bottom: 15px;
            }
            
            .navbar-user .user-info {
                width: 100%;
                justify-content: center;
                margin-bottom: 10px;
            }
            
            .search-box {
                width: 100%;
                margin: 5px 0;
            }
            
            .search-box input {
                width: 100%;
            }
            
            .navbar-brand {
                font-size: 16px;
            }
            
            .navbar-brand .brand-sub {
                display: none;
            }
        }
        
        @media (max-width: 480px) {
            .navbar-user .user-info .user-details {
                display: none;
            }
            
            .navbar-user .btn-logout span {
                display: none;
            }
        }
        
        /* ============================================
           اسکرول‌بار
           ============================================ */
        .navbar-menu::-webkit-scrollbar {
            width: 4px;
        }
        
        .navbar-menu::-webkit-scrollbar-track {
            background: #1a2a3a;
        }
        
        .navbar-menu::-webkit-scrollbar-thumb {
            background: #3498db;
            border-radius: 2px;
        }
        
        /* ============================================
           کانتینر اصلی
           ============================================ */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        