/* assets/style.css */
/* @import url('https://fonts.googleapis.com/css2?family=tahoma:wght@300;400;500;700&display=swap'); */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: clamp(14px, 1.5vw, 18px);
}

body {
    font-family: 'tahoma', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 15px;
    padding: clamp(20px, 4vw, 40px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
    font-size: clamp(1.5em, 3vw, 2em);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'tahoma', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-family: 'tahoma', sans-serif;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-sm {
    padding: 5px 15px;
    font-size: 0.9em;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1em;
}

.btn-primary { background: #667eea; }
.btn-success { background: #48bb78; }
.btn-info { background: #4299e1; }
.btn-warning { background: #ed8936; }
.btn-danger { background: #f56565; }
.btn-block { width: 100%; }

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    margin-bottom: 30px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: clamp(1.2em, 2.5vw, 1.5em);
    font-weight: 700;
    color: #667eea;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user {
    font-weight: 500;
    color: #555;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: clamp(2em, 4vw, 2.5em);
    color: #667eea;
    margin-bottom: 10px;
}

.stat-card p {
    color: #666;
    font-size: 0.9em;
}

/* Exam Grid */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.exam-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.exam-card:hover {
    transform: translateY(-5px);
}

.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.exam-header h3 {
    color: #333;
    font-size: clamp(1em, 1.5vw, 1.2em);
}

.exam-status {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: 500;
}

.status-active { background: #c6f6d5; color: #22543d; }
.status-waiting { background: #fefcbf; color: #744210; }
.status-ended { background: #fed7d7; color: #9b2c2c; }
.status-progress { background: #bee3f8; color: #2a4365; }
.status-completed { background: #e9d8fd; color: #44337a; }

.exam-info {
    margin: 15px 0;
}

.exam-info p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

/* Questions */
.question-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.question-number {
    font-weight: 700;
    font-size: 1.1em;
    color: #667eea;
}

.question-marks {
    color: #999;
    font-size: 0.9em;
}

.question-text {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #2d3748;
}

.question-image {
    margin: 20px 0;
    text-align: center;
}

.question-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Options */
.options-list {
    display: grid;
    gap: 15px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-item:hover {
    border-color: #667eea;
    background: #f7f8ff;
}

.option-item.selected {
    border-color: #667eea;
    background: #e8ebff;
}

.option-item input[type="radio"] {
    margin-left: 15px;
    cursor: pointer;
}

.option-label {
    font-weight: 700;
    font-size: 1.1em;
    color: #667eea;
    margin-left: 15px;
    min-width: 30px;
}

.option-text {
    color: #333;
}

/* Timer */
.timer {
    font-size: clamp(1.2em, 2vw, 1.5em);
    font-weight: 700;
    color: #f56565;
    padding: 10px 20px;
    background: #fff5f5;
    border-radius: 10px;
    border: 2px solid #fed7d7;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.table th,
.table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.table th {
    background: #667eea;
    color: white;
    font-weight: 500;
}

.table tr:hover {
    background: #f7f8ff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 2em;
    font-weight: 700;
    color: #999;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-danger {
    background: #fed7d7;
    color: #9b2c2c;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-warning {
    background: #fefcbf;
    color: #744210;
    border: 1px solid #faf089;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    font-size: 1.2em;
    color: #999;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .exam-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .question-card {
        padding: 20px;
    }
    
    .option-item {
        padding: 12px 15px;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }


/* Additional styles to add to assets/style.css */

/* Admin Panel Styles */
.admin-panel {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.panel-header h2 {
    color: #333;
    font-size: clamp(1.2em, 2vw, 1.5em);
}

.panel-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Form Cards */
.form-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Question Items */
.question-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.question-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.question-body {
    margin-top: 15px;
}

.question-preview-image {
    margin: 15px 0;
    text-align: center;
}

.question-preview-image img {
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.options-preview {
    margin-top: 15px;
}

.options-preview .option {
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.correct-option {
    background: #c6f6d5;
    border-color: #9ae6b4 !important;
}

/* Progress Bar */
.progress-bar-wrapper {
    background: #e0e0e0;
    border-radius: 10px;
    height: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    text-align: center;
    line-height: 25px;
    font-size: 0.8em;
    font-weight: 500;
    transition: width 0.3s;
}

/* Result Display */
.result-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: #f8f9ff;
    border: 1px solid #e0e0ff;
    border-radius: 12px;
    padding: 20px;
}

.score-display {
    text-align: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.score-value {
    color: white;
    font-size: 1em;
    font-weight: 700;
}

.feedback-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

/* Answer Review Cards */
.answers-review {
    margin-top: 20px;
}

.answer-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.answer-correct {
    border-color: #9ae6b4;
    background: #f0fff4;
}

.answer-wrong {
    border-color: #feb2b2;
    background: #fff5f5;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.options-review {
    margin-top: 15px;
}

.option-review {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
}

.option-review.correct-answer {
    background: #c6f6d5;
    border-color: #9ae6b4;
}

.option-review.wrong-answer {
    background: #fed7d7;
    border-color: #feb2b2;
}

.option-letter {
    font-weight: 700;
    font-size: 1.1em;
    margin-left: 10px;
    min-width: 30px;
}

.correct-badge {
    margin-right: auto;
    color: #22543d;
}

.selected-badge {
    position: absolute;
    top: -10px;
    left: 10px;
    background: #667eea;
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8em;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.badge-success { background: #c6f6d5; color: #22543d; }
.badge-danger { background: #fed7d7; color: #9b2c2c; }
.badge-warning { background: #fefcbf; color: #744210; }
.badge-info { background: #bee3f8; color: #2a4365; }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 10px;
}

/* Feedback Rules */
.feedback-rule {
    background: #f8f9ff;
    border: 1px solid #e0e0ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

/* Exam Page Timer */
.exam-page {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.exam-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.exam-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .result-summary {
        grid-template-columns: 1fr;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .bulk-actions {
        flex-direction: column;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .action-buttons, .btn, form {
        display: none !important;
    }
    
    .answer-card {
        break-inside: avoid;
    }
}


/* استایل لینک داشبورد در نوبار */
.nav-brand a {
    transition: opacity 0.3s;
}

.nav-brand a:hover {
    opacity: 0.8;
}

/* دکمه‌های نوبار */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu .btn {
    font-size: 0.85em;
    padding: 8px 15px;
}

@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .nav-menu .btn {
        font-size: 0.75em;
        padding: 6px 12px;
    }
}


/* استایل پیغام خطای اعتبارسنجی تاریخ */
.error-message {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    font-weight: 500;
}

/* انیمیشن برای فیلدهای نامعتبر */
input:invalid {
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* استایل بهتر برای input datetime-local */
input[type="datetime-local"] {
    font-family: 'tahoma', sans-serif;
    text-align: right;
}

/* بهبود نمایش select در فرم */
select {
    font-family: 'tahoma', sans-serif;
    cursor: pointer;
}


/* استایل‌های بخش نتایج */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.bulk-actions span {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

.text-muted {
    color: #999;
}

/* بهبود display برای form‌های inline */
form[style*="display: inline"] {
    display: inline-block !important;
}

/* استایل checkbox */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* بهبود ظاهر progress bar در نتایج */
.progress-bar-wrapper {
    background: #e0e0e0;
    border-radius: 10px;
    height: 25px;
    overflow: hidden;
    min-width: 80px;
}

.progress-bar {
    height: 100%;
    color: white;
    text-align: center;
    line-height: 25px;
    font-size: 0.8em;
    font-weight: 500;
    transition: width 0.3s;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .bulk-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bulk-actions .btn {
        width: 100%;
    }
}

/* استایل مودال */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 2em;
    font-weight: 700;
    color: #999;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* استایل فیلد رمز */
.password-hidden {
    font-family: monospace;
    letter-spacing: 3px;
}

.password-text {
    font-family: monospace;
    letter-spacing: 1px;
}

/* ==================== استایل‌های تصاویر ==================== */

/* تصویر داخل سوال */
.question-image {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* تصویر در حالت بزرگنمایی */
.question-image img.zoomed,
.question-img.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1000;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* تصویر گزینه‌ها */
.option-image img {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid #e0e0e0;
}

.option-image img:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

/* تصویر گزینه در حالت بزرگنمایی */
.option-image img.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80vw;
    max-height: 80vh;
    z-index: 1001;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: none;
}

/* تصویر در پنل ادمین (پیش‌نمایش) */
.question-preview-image img {
    max-width: 400px;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.question-preview-image img.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1000;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* تصویر گزینه در پنل ادمین */
.option-thumb {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

/* تصویر کوچک در نتایج */
.mini-image {
    max-width: 250px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mini-image:hover {
    transform: scale(1.02);
}

/* تصویر در جدول نتایج ادمین */
.result-image-thumb {
    max-width: 80px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

کانتینر تصویر سوال
.question-image {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.question-image small {
    display: block;
    color: #999;
    font-size: 0.8em;
    margin-top: 5px;
}

/* overlay برای حالت بزرگنمایی */
.image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1001;
    cursor: pointer;
}

.image-overlay.active {
    display: block;
}

/* تصویر داخل overlay */
.image-overlay img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

/* دکمه بستن بزرگنمایی */
.image-overlay .close-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2em;
    cursor: pointer;
    z-index: 1001;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
    .question-image img,
    .question-img {
        max-height: 250px;
    }
    
    .option-image img {
        max-width: 150px;
        max-height: 120px;
    }
    
    .question-preview-image img {
        max-width: 100%;
        max-height: 200px;
    }
    
    .mini-image {
        max-width: 100%;
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .question-image img,
    .question-img {
        max-height: 200px;
    }
    
    .option-image img {
        max-width: 120px;
        max-height: 100px;
    }
}


/* انیمیشن محو شدن پیغام‌ها */
.alert {
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* دکمه بستن برای پیغام‌ها */
.alert::after {
    content: '×';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.alert:hover::after {
    opacity: 1;
}


/* شمارنده بازدید در صفحه اصلی */
.visitor-counter {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    font-size: 0.85em;
    z-index: 100;
    border: 1px solid #e0e0e0;
    max-width: 250px;
    transition: all 0.3s;
}

.visitor-counter:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.visitor-counter .counter-title {
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
    font-size: 0.95em;
    border-bottom: 1px solid #e0e0ff;
    padding-bottom: 5px;
}

.visitor-counter .counter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    color: #555;
}

.visitor-counter .counter-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1em;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48bb78;
    animation: pulse 2s infinite;
    margin-left: 5px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@media (max-width: 600px) {
    .visitor-counter {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        font-size: 0.8em;
        padding: 10px 15px;
    }
}

/* استایل دکمه‌های زوم */
.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 1.3em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.zoom-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* مخفی کردن دکمه‌ها در حالت fullscreen */
.image-overlay:fullscreen .zoom-btn[data-action="fullscreen"] {
    display: none;
}

/* responsive */
@media (max-width: 768px) {
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }
}