@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;
    }
}