/* تایمر */
.yq-timer-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    width: 100%;
}
.yq-timer-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #1e293b;
    font-size: 15px;
}
.yq-timer-digits {
    font-size: 20px;
    color: #ef4444;
    min-width: 32px;
    display: inline-block;
    text-align: center;
}
.yq-timer-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 999px;
    margin-top: 10px;
    overflow: hidden;
}
.yq-timer-progress-fill {
    height: 100%;
    background-color: #ef4444;
    transition: width 1s linear;
}

/* کانتینر اصلی پلیر */
.yq-player-container {
    direction: rtl;
    text-align: right;
    margin: 15px 0;
    width: 100%;
    box-sizing: border-box;
}

/* شبکه گزینه‌ها - اجبار به چیدمان ۴ سطر زیر هم */
.yq-options-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* هر سطر گزینه */
.yq-option-item {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    width: 100% !important;
    box-sizing: border-box;
}
.yq-option-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}
.yq-option-item input[type="radio"] {
    display: none;
}
.yq-option-item.selected {
    border-color: #2563eb;
    background: #dbeafe;
}

/* شماره/حرف گزینه */
.yq-opt-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: #cbd5e1;
    color: #0f172a;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}
.yq-option-item.selected .yq-opt-index {
    background: #2563eb;
    color: #ffffff;
}

/* متن گزینه */
.yq-opt-text {
    font-size: 15px;
    color: #334155;
    flex-grow: 1;
    line-height: 1.6;
    word-break: break-word;
}

/* وضعیت‌های درست و غلط پس از پاسخ */
.yq-option-item.correct-ans {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
}
.yq-option-item.correct-ans .yq-opt-index {
    background: #22c55e !important;
    color: #fff !important;
}
.yq-option-item.wrong-ans {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}
.yq-option-item.wrong-ans .yq-opt-index {
    background: #ef4444 !important;
    color: #fff !important;
}

/* بخش دکمه ارسال */
.yq-action-wrap {
    margin-top: 20px;
    width: 100%;
}
.yq-submit-btn {
    width: 100%;
    padding: 13px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}
.yq-submit-btn:hover:not(:disabled) {
    background-color: #1d4ed8;
}
.yq-submit-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

/* باکس پیام نتیجه */
.yq-response-message {
    margin-top: 15px;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}
.yq-response-message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.yq-response-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
