/* Estilos Publicos do Plugin Retiros - Premium UI (Fase 5) */

.retiros-container {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    max-width: 750px;
    margin: 30px auto;
}

.retiros-title {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
}

/* Stepper Visual em Abas Horizontais Modernas */
.retiros-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
    width: 100%;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.retiros-step-indicator {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.retiros-step-indicator:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.retiros-step-indicator .step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.retiros-step-indicator .step-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: all 0.2s ease;
}

.retiros-step-line {
    display: none !important; /* Desativa a linha antiga do stepper */
}

/* Estados das Abas */
.retiros-step-indicator.active {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.08);
    cursor: default;
}

.retiros-step-indicator.active .step-num {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.retiros-step-indicator.active .step-label {
    color: #1e40af;
}

.retiros-step-indicator.completed {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.retiros-step-indicator.completed .step-num {
    border-color: #22c55e;
    background: #22c55e;
    color: #ffffff;
}

.retiros-step-indicator.completed .step-label {
    color: #15803d;
}

/* Grid Wrapper de Campos Flexbox */
.retiros-form-fields-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 10px;
    width: 100%;
}

/* Step Wrapper (Cada aba de formulario) */
.retiros-form-step {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 10px;
    width: 100%;
}

/* Linhas do Formulario */
.retiros-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
}

.retiros-form-row label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.retiros-form-row label .required {
    color: #ef4444;
    margin-left: 2px;
}

.retiros-input,
.retiros-select,
.retiros-textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s;
}

.retiros-input:focus,
.retiros-select:focus,
.retiros-textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.retiros-textarea {
    height: 100px;
    resize: vertical;
}

/* Grupos de OpÃ§Ãµes (Radio e Checkbox) */
.retiros-field-options-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.retiros-field-options-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
    cursor: pointer;
    margin: 0 !important;
    font-size: 13.5px;
    color: #334155;
    user-select: none;
}

.retiros-field-options-group input[type="radio"],
.retiros-field-options-group input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    cursor: pointer;
}

/* Bloco HTML visual explicativo */
.retiros-html-content-block {
    font-size: 13.5px;
    line-height: 1.5;
    color: #334155;
    width: 100%;
}

/* Abas de Autenticacao Inline (Premium Switch Style - Fase 6) */
.retiros-auth-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
    margin-bottom: 30px;
    gap: 6px;
    border: none;
}

.retiros-auth-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    border: none !important;
}

.retiros-auth-tab:hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.4);
}

.retiros-auth-tab.active {
    color: var(--primary-color, #2563eb) !important;
    background: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
    font-weight: 700;
}

.retiros-auth-panel {
    display: none;
    animation: fadeInAuth 0.3s ease;
}

.retiros-auth-panel.active {
    display: block;
}

@keyframes fadeInAuth {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

#panel_register .retiros-btn,
#panel_login .retiros-btn {
    width: 100% !important;
    margin-top: 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    height: 48px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -1px rgba(59, 130, 246, 0.06);
    transition: all 0.2s ease;
}

#panel_register .retiros-btn:hover,
#panel_login .retiros-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -1px rgba(59, 130, 246, 0.15), 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

/* Alertas */
.retiros-alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13.5px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.retiros-alert-danger {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.retiros-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Botoes */
.retiros-btn {
    background: #3b82f6;
    color: #ffffff;
    font-weight: 600;
    font-size: 14.5px;
    height: 44px;
    padding: 0 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.retiros-btn:hover {
    background: #2563eb;
}

.retiros-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.retiros-btn-secondary {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.retiros-btn-secondary:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Painel do Inscrito */
.retiros-inscrito-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.retiros-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.retiros-inscrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.retiros-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.retiros-badge-pago {
    background: #dcfce7;
    color: #166534;
}

.retiros-badge-pendente {
    background: #fee2e2;
    color: #991b1b;
}

.retiros-badge-checkin {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-size: 10px;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.retiros-qr-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.retiros-qr-code img {
    max-width: 100%;
}

/* Efeitos de Transição Premium para os Botões do WhatsApp */
.retiros-btn-whatsapp-support, 
.retiros-btn-whatsapp-group {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.retiros-btn-whatsapp-support:hover {
    transform: translateY(-2px) !important;
    background: #20ba5a !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

.retiros-btn-whatsapp-group:hover {
    transform: translateY(-2px) !important;
    background: #0e6f64 !important;
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.3) !important;
}

.retiros-btn-whatsapp-support:active, 
.retiros-btn-whatsapp-group:active {
    transform: translateY(0) !important;
}

/* ==========================================
   ESTILOS PREMIUM: DASHBOARD DE PERFIL DO INSCRITO
   ========================================== */
.retiros-profile-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.retiros-profile-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.profile-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color, #2563eb) 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    text-transform: uppercase;
}

.profile-user-details h3 {
    margin: 0 0 4px 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.2;
}

.profile-user-details .profile-subtitle {
    margin: 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.retiros-profile-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.retiros-profile-main {
    flex: 1 1 65%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.retiros-profile-sidebar {
    flex: 0 0 35%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.retiros-profile-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.retiros-profile-section-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: #475569 !important;
    margin: 0 0 16px 0 !important;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.retiros-info-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.retiro-info-card {
    flex: 1 1 calc(50% - 8px);
    min-width: 200px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.01);
    transition: all 0.2s ease-in-out;
}

.retiro-info-card:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    background: #f1f5f9;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.retiro-info-card .info-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.retiro-info-card .info-value {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
}

.retiros-sidebar-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.retiros-sidebar-block-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: #475569 !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.retiros-sidebar-block-title .dashicons {
    color: var(--primary-color, #2563eb);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Responsividade do Painel */
@media (max-width: 900px) {
    .retiros-profile-grid {
        flex-direction: column;
    }
    
    .retiros-profile-main,
    .retiros-profile-sidebar {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (max-width: 580px) {
    .retiro-info-card {
        flex: 1 1 100% !important;
    }
    
    .retiros-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .retiros-profile-header .retiros-badge,
    .retiros-profile-header .retiros-btn,
    .retiros-profile-header .retiros-btn-logout {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Botão Sair (Logout) Premium */
.retiros-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.retiros-btn-logout:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.08) !important;
}

.retiros-btn-logout .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    display: inline-block;
    line-height: 1;
}

/* Alertas de Sucesso */
.retiros-alert-success {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}