/**
 * Wizard bar + panes مطابق لـ Exammakerpdf — يُقيَّد على DigitalProducts
 * يتطلب: .page-student-qbank.exam-maker-dp-setup و #dpWizardForm
 */

.page-student-qbank.exam-maker-dp-setup #dpWizardForm.wizard-stage-1 .wizard-pane-2 {
    display: none !important;
}
.page-student-qbank.exam-maker-dp-setup #dpWizardForm.wizard-stage-2 .wizard-pane-1 {
    display: none !important;
}

.page-student-qbank.exam-maker-dp-setup .wizard-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.page-student-qbank.exam-maker-dp-setup .wizard-actions .btn {
    min-width: 140px;
}

.page-student-qbank.exam-maker-dp-setup .wizard-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f1faf3;
    border: 1px solid #c7e9d0;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #1c6c33;
    font-weight: 500;
    flex-wrap: wrap;
}
.page-student-qbank.exam-maker-dp-setup .wizard-summary i {
    color: #28a745;
    font-size: 18px;
}
.page-student-qbank.exam-maker-dp-setup .wizard-summary .ws-edit {
    margin-left: auto;
    background: transparent;
    border: 1px solid #28a745;
    color: #28a745;
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.page-student-qbank.exam-maker-dp-setup .wizard-summary .ws-edit:hover {
    background: #28a745;
    color: #fff;
}

.page-student-qbank.exam-maker-dp-setup .wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 720px;
    margin: 0 auto 20px;
    padding: 14px 16px;
    flex-wrap: wrap;
    position: sticky;
    top: var(--wizard-top, 0px);
    z-index: 1015;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 0 0 12px 12px;
    transition: box-shadow 0.2s ease;
}
.page-student-qbank.exam-maker-dp-setup .wizard-progress.is-stuck {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.page-student-qbank.exam-maker-dp-setup .wp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 88px;
    color: #aaa;
    transition: color 0.2s ease;
}
.page-student-qbank.exam-maker-dp-setup .wp-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    color: #aaa;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease;
}
.page-student-qbank.exam-maker-dp-setup .wp-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.page-student-qbank.exam-maker-dp-setup .wp-line {
    flex: 1 1 30px;
    max-width: 70px;
    height: 2px;
    background: #ddd;
    margin: 0 4px;
    transition: background 0.2s ease;
}
.page-student-qbank.exam-maker-dp-setup .wp-step.active .wp-num {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}
.page-student-qbank.exam-maker-dp-setup .wp-step.active {
    color: #dc3545;
}
.page-student-qbank.exam-maker-dp-setup .wp-step.done .wp-num {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}
.page-student-qbank.exam-maker-dp-setup .wp-step.done .wp-num::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}
.page-student-qbank.exam-maker-dp-setup .wp-step.done .wp-num span {
    display: none;
}
.page-student-qbank.exam-maker-dp-setup .wp-step.done {
    color: #28a745;
}
.page-student-qbank.exam-maker-dp-setup .wp-step.done + .wp-line {
    background: #28a745;
}

@keyframes dp-wp-pulse-anim {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
    }
    45% {
        transform: scale(1.18);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0.12);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
    }
}
.page-student-qbank.exam-maker-dp-setup .wp-pulse {
    animation: dp-wp-pulse-anim 0.55s ease-out;
}

@media (max-width: 600px) {
    .page-student-qbank.exam-maker-dp-setup .wp-label {
        display: none;
    }
    .page-student-qbank.exam-maker-dp-setup .wp-step {
        min-width: 0;
    }
    .page-student-qbank.exam-maker-dp-setup .wp-line {
        max-width: 30px;
    }
}

/* شريط Search + أزرار */
.page-student-qbank.exam-maker-dp-setup .sq-search-toolbar.wizard-pane-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 0.75rem !important;
}
.page-student-qbank.exam-maker-dp-setup .sq-search-toolbar .btn-danger {
    min-width: 200px;
}
