/* استایل‌های مخصوص پنل مدیریت */
.admin-header {
    background: #2c3e50;
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.5em;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.users-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
}

.users-table th {
    background: #34495e;
    color: white;
    font-weight: 600;
}

.users-table tr:hover {
    background: #f8f9fa;
}

.btn-small {
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.8em;
    display: inline-block;
}

.btn-small:hover {
    background: #2980b9;
}

/* استایل صفحه جزئیات کاربر */
.user-details {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.detail-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.detail-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.detail-item label {
    font-weight: 600;
    color: #7f8c8d;
    margin: 0;
}

.tracking-code {
    font-family: monospace;
    font-weight: bold;
    color: #27ae60;
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.score-item.total {
    background: #e8f6f3;
    border-left-color: #27ae60;
    font-weight: bold;
}

.sub-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.sub-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.detail-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    padding: 5px 0;
    border-bottom: 1px solid #ecf0f1;
}

.work-table {
    width: 100%;
    border-collapse: collapse;
}

.work-table th,
.work-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.work-table th {
    background: #34495e;
    color: white;
}

/* استایل گزارش‌ها */
.reports-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.report-section {
    margin-bottom: 40px;
}

.report-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.chart-container {
    height: 300px;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.scores-table table {
    width: 100%;
    border-collapse: collapse;
}

.scores-table th,
.scores-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
}

.scores-table th {
    background: #34495e;
    color: white;
}

.scores-table tr:hover {
    background: #f8f9fa;
}

/* استایل صفحه ورود ادمین */
.admin-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-form {
    max-width: 400px;
    margin: 0 auto;
}

/* کپچا */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-code {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 3px;
    border: 1px solid #ddd;
    min-width: 80px;
    text-align: center;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .admin-header .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .users-table {
        overflow-x: auto;
    }
    
    .detail-grid,
    .scores-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* اضافه کردن استایل برای نمایش نام ادمین */
.admin-header h1 {
    font-size: 1.3em;
}

/* بقیه استایل‌ها مانند قبل */