/* مسیر فایل: /public_html/titaniom/style.css */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700;900&display=swap');

:root {
    --bg-color: #111827;
    --card-color: #1f2937;
    --input-bg: #374151;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #4b5563;
    --blue: #3b82f6;
    --green: #10b981;
    --red: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    font-family: 'Vazirmatn', sans-serif !important;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    direction: rtl;
    margin: 0;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
}

/* --- کانتینر --- */
.container {
    background-color: var(--card-color);
    width: 100%;
    max-width: 800px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 50px;
}

/* --- هدر --- */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.header-actions { display: flex; gap: 10px; align-items: center; }

.title { font-size: 1.5rem; font-weight: 900; text-align: center; color: var(--blue); margin-bottom: 15px; }
.subtitle { font-size: 1rem; text-align: center; color: var(--text-muted); margin-bottom: 20px; }

/* --- تب‌ها (اسکرول افقی در موبایل) --- */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.dashboard-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.tab-btn.active { background: rgba(59, 130, 246, 0.1); color: var(--blue); border-color: var(--blue); }

/* =========================================
   [تغییر جدید] استایل آکاردئونی (بازشو)
   ========================================= */
.quiz-item {
    background-color: var(--input-bg);
    border-radius: 10px; /* گردی کمتر */
    margin-bottom: 10px; /* فاصله کمتر بین آیتم‌ها */
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.3s;
}

/* هدر کارت (همیشه قابل رویت) */
.quiz-header {
    padding: 10px 15px; /* [تغییر] کاهش ارتفاع هدر */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
    transition: background 0.2s;
}

.quiz-header:hover { background: rgba(255,255,255,0.05); }

.quiz-info {
    display: flex;
    flex-direction: column;
    gap: 2px; /* [تغییر] فاصله کمتر بین عنوان و کد */
}

/* سایز فونت عنوان آیتم */
.quiz-info div:first-child {
    font-size: 0.95rem !important; /* [تغییر] کوچک‌تر کردن عنوان */
}

/* سایز فونت کد و تایمر */
.quiz-info div:last-child {
    font-size: 0.75rem !important; /* [تغییر] کوچک‌تر کردن زیرنویس */
}

/* آیکون فلش */
.quiz-arrow {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    width: 20px; height: 20px; /* [تغییر] کوچک‌تر کردن دایره فلش */
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.quiz-arrow svg { width: 14px; height: 14px; } /* آیکون فلش کوچک‌تر */

/* بخش دکمه‌ها (مخفی در ابتدا) */
.quiz-actions {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0;
    background: rgba(0,0,0,0.2);
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 8px; /* [تغییر] فاصله کمتر بین دکمه‌ها */
    padding: 0 15px; 
}

/* حالت فعال (باز شده) */
.quiz-item.active { border-color: var(--blue); }
.quiz-item.active .quiz-arrow { transform: rotate(180deg); background: var(--blue); color: white; }
.quiz-item.active .quiz-actions {
    max-height: 300px;
    opacity: 1;
    padding: 10px 15px; /* [تغییر] کاهش پدینگ داخلی */
    border-top: 1px solid var(--border-color);
}


/* --- دکمه‌های عمومی (اصلاح شده برای ظرافت بیشتر) --- */
.button {
    width: 100%; 
    padding: 9px 10px; /* [تغییر] کاهش ارتفاع دکمه */
    border: none; 
    border-radius: 10px; /* گردی کمتر */
    font-size: 0.9rem; /* [تغییر] فونت کوچک‌تر */
    font-weight: normal; /* وزن نرمال به جای بولد زیاد */
    color: white; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 5px;
    transition: transform 0.1s; 
    margin: 0; 
    min-height: 32px; /* [تغییر] حداقل ارتفاع کمتر */
}

.button svg { width: 16px; height: 16px; } /* آیکون‌های دکمه کوچک‌تر */

.button:active { transform: scale(0.98); }
.button-blue { background-color: var(--blue); }
.button-green { background-color: var(--green); }
.button-red { background-color: var(--red); }
.button-gray { background-color: #4b5563; }

/* --- فرم‌ها --- */
.form-input, select, textarea {
    width: 100%; background-color: var(--bg-color); border: 1px solid var(--border-color);
    color: var(--text-color); padding: 12px; border-radius: 10px; font-size: 1rem;
    margin-bottom: 10px; outline: none;
}
.form-input:focus { border-color: var(--blue); }

.fieldset {
    border: 1px dashed #94a6c5;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.2);
}

/* --- آیکون و متفرقه --- */
.icon { display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 48px; height: 48px; }
.hidden { display: none !important; }
.loader { width: 40px; height: 40px; border: 4px solid var(--border-color); border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- مودال و تست --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s; padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: #1e293b; width: 100%; max-width: 350px; border-radius: 20px; padding: 20px; text-align: center; transform: scale(0.9); transition: all 0.3s; border: 1px solid rgba(255,255,255,0.1); }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-btn-group { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 20px; }
.modal-btn { width: 100%; padding: 12px; border-radius: 10px; border: none; font-weight: bold; cursor: pointer; }
.toast-box { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: #374151; color: white; padding: 12px 20px; border-radius: 50px; display: flex; align-items: center; gap: 10px; z-index: 10000; opacity: 0; transition: all 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.toast-box.active { transform: translateX(-50%) translateY(0); opacity: 1; }
.password-wrapper { position: relative; }
.password-toggle { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-muted); padding: 5px; }

.field-preview {
    background: rgb(0 0 0 / 15%);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px dashed #5c97b3bf;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- دسکتاپ --- */
@media (min-width: 768px) {
    /* در دسکتاپ دکمه‌ها 4 ستونه شوند */
    .quiz-actions { 
        grid-template-columns: repeat(4, 1fr); 
        gap: 8px;
    }
    
    .modal-btn-group { flex-direction: row; }
    .dashboard-tabs { flex-wrap: wrap; overflow: visible; }
    
    .action-buttons-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
}


/* مسیر فایل: /public_html/titaniom/style.****************css */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700;900&display=swap');

:root {
    --bg-color: #111827;
    --card-color: #1f2937;
    --input-bg: #374151;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #4b5563;
    --blue: #3b82f6;
    --green: #10b981;
    --red: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    font-family: 'Vazirmatn', sans-serif !important;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    direction: rtl;
    margin: 0;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
}

/* --- کانتینر --- */
.container {
    background-color: var(--card-color);
    width: 100%;
    max-width: 800px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 50px;
}

/* --- هدر --- */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.header-actions { display: flex; gap: 10px; align-items: center; }

.title { font-size: 1.5rem; font-weight: 900; text-align: center; color: var(--blue); margin-bottom: 15px; }
.subtitle { font-size: 1rem; text-align: center; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }

/* =========================================
   [اصلاح شده] استایل‌های اختصاصی آزمون/نظرسنجی عمومی
   ========================================= */
.question-text {
    font-size: 1.3rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: right;
    font-weight: bold;
}

/* کانتینر گزینه‌ها باید ستونی باشد */
.options-container {
    display: flex;
    flex-direction: column; /* حتماً ستونی */
    gap: 12px;
    width: 100%;
}

/* دکمه‌های گزینه */
.option-button {
    width: 100%;
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 12px;
    text-align: right; /* متن راست چین */
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: block; /* جلوگیری از رفتار inline */
}

.option-button:hover:not(:disabled) {
    border-color: var(--blue);
    background-color: #4b5563;
}

.option-button:disabled {
    opacity: 0.7;
    cursor: default;
}

/* حالت‌های صحیح/غلط */
.option-button.correct-answer {
    background-color: rgba(16, 185, 129, 0.2) !important;
    border-color: var(--green) !important;
    color: var(--green) !important;
}
.option-button.incorrect-answer {
    background-color: rgba(239, 68, 68, 0.2) !important;
    border-color: var(--red) !important;
    color: var(--red) !important;
}

/* تایمر */
#timer-container {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-align: left; /* چپ چین برای تایمر */
    direction: ltr;
}

/* =========================================
   استایل‌های پنل ادمین
   ========================================= */

/* --- تب‌ها --- */
.dashboard-tabs {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.dashboard-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
    background: rgba(255, 255, 255, 0.05); border: 1px solid transparent; color: var(--text-muted); padding: 10px 15px;
    border-radius: 10px; cursor: pointer; font-weight: bold; font-size: 0.9rem; white-space: nowrap; transition: all 0.2s;
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.tab-btn.active { background: rgba(59, 130, 246, 0.1); color: var(--blue); border-color: var(--blue); }

/* --- لیست آیتم‌ها (Grid Layout) -/
.quiz-item {
    background-color: var(--input-bg);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.quiz-info { width: 100%; }
.quiz-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}*/

/* --- دکمه‌های عمومی (ادمین) -/
.button {
    width: 100%; padding: 10px; border: none; border-radius: 10px;
    font-size: 0.9rem; font-weight: bold; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: transform 0.1s; margin: 0; min-height: 42px;
}
.button:active { transform: scale(0.96); }
.button-blue { background-color: var(--blue); }
.button-green { background-color: var(--green); }
.button-red { background-color: var(--red); }
.button-gray { background-color: #4b5563; }*/

/* --- فرم‌ها --- */
.form-input, select, textarea {
    width: 100%; background-color: var(--bg-color); border: 1px solid var(--border-color);
    color: var(--text-color); padding: 12px; border-radius: 10px; font-size: 1rem;
    margin-bottom: 10px; outline: none;
}
.form-input:focus { border-color: var(--blue); }

.fieldset {
    border: 1px dashed #94a6c5;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.2);
}

/* --- آیکون و متفرقه --- */
.icon { display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 48px; height: 48px; }
.hidden { display: none !important; }
.loader { width: 40px; height: 40px; border: 4px solid var(--border-color); border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- مودال --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s; padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: #1e293b; width: 100%; max-width: 350px; border-radius: 20px; padding: 20px; text-align: center; transform: scale(0.9); transition: all 0.3s; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.modal-content.wide { max-width: 600px; text-align: right; max-height: 80vh; overflow-y: auto; }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-btn-group { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 20px; }
.modal-btn { width: 100%; padding: 12px; border-radius: 10px; border: none; font-weight: bold; cursor: pointer; }
.toast-box { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: #374151; color: white; padding: 12px 20px; border-radius: 50px; display: flex; align-items: center; gap: 10px; z-index: 10000; opacity: 0; transition: all 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.toast-box.active { transform: translateX(-50%) translateY(0); opacity: 1; }
.password-wrapper { position: relative; }
.password-toggle { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-muted); padding: 5px; }

.field-preview {
    background: rgb(0 0 0 / 15%);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px dashed #5c97b3bf;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- سوپر ادمین --- */
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 12px 40px 12px 15px; background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 12px; color: white; font-size: 1rem; outline: none; transition: border-color 0.3s; }
.search-input:focus { border-color: var(--blue); }
.search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.user-card { background-color: var(--input-bg); border: 1px solid var(--border-color); border-radius: 16px; margin-bottom: 10px; overflow: hidden; transition: all 0.3s ease; }
.user-card-header { padding: 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: rgba(255,255,255,0.02); }
.user-card-header:hover { background: rgba(255,255,255,0.05); }
.user-info-main { display: flex; flex-direction: column; gap: 5px; }
.user-name { font-weight: bold; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.user-date { font-size: 0.8rem; color: var(--text-muted); }
.user-toggle-icon { color: var(--text-muted); transition: transform 0.3s ease; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border-radius: 50%; }

.user-details { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, opacity 0.3s ease; opacity: 0; background: rgba(0,0,0,0.1); }
.user-card.active .user-details { max-height: 1200px; opacity: 1; border-top: 1px solid var(--border-color); padding: 15px; }
.user-card.active .user-toggle-icon { transform: rotate(180deg); background: var(--blue); color: white; }
.user-card.active { border-color: var(--blue); }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 15px; }
.stat-badge { background: var(--card-color); border-radius: 10px; padding: 10px; text-align: center; font-size: 0.8rem; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.05); }
.stat-badge b { display: block; font-size: 1.1rem; color: white; margin-bottom: 3px; }

.item-row { background: var(--card-color); display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-radius: 8px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.05); }
.item-meta { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.item-actions { display: flex; gap: 5px; }
.btn-icon { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-color); background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-view:hover { background: var(--blue); color: white; border-color: var(--blue); }
.btn-delete:hover { background: var(--red); color: white; border-color: var(--red); }

.preview-box { background: rgba(0,0,0,0.2); padding: 15px; border-radius: 10px; margin-bottom: 10px; border-right: 3px solid var(--blue); }
.preview-label { font-weight: bold; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 5px; }
.preview-value { color: white; font-size: 1rem; line-height: 1.6; }


/* =========================================
   استایل‌های نوار نظرسنجی (Poll Progress Bar)
   ========================================= */
.poll-result-item {
    margin-bottom: 15px;
    width: 100%;
}

.poll-result-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: bold;
}

/* پس‌زمینه نوار (خاکستری) */
.progress-track {
    width: 100%;
    height: 12px;
    background-color: var(--input-bg); /* رنگ تیره ورودی‌ها */
    border-radius: 10px;
    overflow: hidden; /* برای گرد شدن گوشه‌های نوار پر شده */
    border: 1px solid var(--border-color);
}

/* قسمت پر شده نوار (آبی) */
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), #60a5fa); /* گرادینت زیبا */
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); /* انیمیشن نرم */
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); /* درخشش */
}
/**/






/* =========================================
   استایل‌های گرافیکی جدید برای بخش‌های افزودن
   ========================================= */

/* استایل مدرن برای باکس‌های افزودن */
.modern-fieldset
Specificity: (0,1,0)
 {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.2));
    border: 1px dashed #94a6c5 !important;
    border-radius: 20px;
    padding: 25px 20px 20px 20px;
    margin-top: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

/* استایل عنوان (Legend) به صورت بج شناور */
.modern-fieldset legend {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 1.1rem;
    /*position: absolute;*/
    top: -18px;
    right: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}
/* اضافه کردن آیکون کوچک قبل از متن لجند */
.modern-fieldset legend::before {
    content: '+';
    display: inline-block;
    font-size: 1.4rem;
    line-height: 0.8;
}

/* رنگ‌بندی مخصوص فرم (سبز) */
.fs-green legend {
    background: linear-gradient(45deg, var(--green), #3bc995);
    color: white;
}

/* رنگ‌بندی مخصوص نظرسنجی (آبی) */
.fs-blue legend {
    background: linear-gradient(45deg, var(--blue), #60a5fa);
    color: white;
}

/* بهبود دکمه‌های افزودن داخل این باکس‌ها */
.modern-fieldset .button-green {
    background: linear-gradient(267deg, #6b9ad9, #3a8bd1);
    /* box-shadow: 0 4px 15px rgb(20 114 157); */
    transition: all 0.3s ease;
}
}
.modern-fieldset .button-green:hover {
    transform: translateY(-2px);
    /*box-shadow: 0 6px 20px rgb(5 178 217 / 60%);*/
}
.modern-fieldset .button-green:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* =========================================
   استایل هدر آزمون (تایمر + شمارنده)
   ========================================= */
.quiz-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* استایل شمارنده سوال */
.question-counter {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* اصلاح استایل تایمر برای قرارگیری بهتر */
#timer-container {
    margin-bottom: 0 !important; /* حذف مارجین قبلی */
    background: rgba(239, 68, 68, 0.1); /* پس زمینه قرمز کمرنگ */
    color: var(--red) !important;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =========================================
   استایل جدید هدر آزمون (صفحه خوش‌آمدگویی)
   ========================================= */
/* تغییر رفتار عنوان فقط در صفحه شروع آزمون */
#quiz-title {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

/* استایل نام آزمون (سمت راست) */
.quiz-name-text {
    font-size: 1.2rem; /* سایز کمی کوچکتر */
    font-weight: 900;
    color: var(--blue);
    text-align: right;
}

/* استایل بج تعداد سوال (سمت چپ) */
.quiz-count-badge {
    background: rgba(59, 130, 246, 0.15); /* پس‌زمینه آبی کمرنگ */
    color: #60a5fa; /* متن آبی روشن */
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* =========================================
   استایل دکمه‌های ویرایش/حذف آیتم‌های داخلی
   ========================================= */
.preview-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.mini-actions {
    display: flex;
    gap: 5px;
}

.btn-mini {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-mini:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.btn-mini.delete:hover {
    background: var(--red);
    border-color: var(--red);
}

.btn-mini svg {
    width: 14px;
    height: 14px;
}