/* ============================================================================
 * TRAVA ANTI-DUPLO CLIQUE E OVERLAY DE PROVISIONAMENTO (ETAPA 5 ONBOARDING)
 * ============================================================================ */

/* Estado do Botão durante Processamento */
.btn-processing {
    opacity: 0.92 !important;
    cursor: wait !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
    transition: all 0.25s ease;
}

/* Backdrop Translúcido Fullscreen */
.onboarding-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeInOverlay 0.22s ease-out forwards;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Card Central de Micro-Feedback */
.onboarding-loading-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.25rem 2rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.onboarding-loading-card h5 {
    color: #0f172a;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.onboarding-loading-card p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.onboarding-loading-steps {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: #334155;
}

.onboarding-loading-step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.onboarding-loading-step-item.active {
    color: #0d9488;
    font-weight: 600;
}

.onboarding-loading-step-item.done {
    color: #10b981;
}

/* Suporte ao Modo Escuro (Dark Theme) */
[data-theme="dark"] .onboarding-loading-card,
body.dark-theme .onboarding-loading-card {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .onboarding-loading-card h5,
body.dark-theme .onboarding-loading-card h5 {
    color: #f8fafc !important;
}

[data-theme="dark"] .onboarding-loading-card p,
[data-theme="dark"] .onboarding-loading-card .text-muted,
body.dark-theme .onboarding-loading-card p,
body.dark-theme .onboarding-loading-card .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .onboarding-loading-steps,
body.dark-theme .onboarding-loading-steps {
    background: rgba(15, 23, 42, 0.65);
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .onboarding-loading-step-item.active,
body.dark-theme .onboarding-loading-step-item.active {
    color: #2dd4bf;
}

[data-theme="dark"] .onboarding-loading-step-item.done,
body.dark-theme .onboarding-loading-step-item.done {
    color: #34d399;
}

