/*!
 * Wizard Enhanced CSS - Formulários Compactos e Modernos
 * Bootstrap 5 Optimized
 */

/* ===== CONFIGURAÇÃO GLOBAL ===== */
.wizard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

/* ===== CAMPOS COMPACTOS ===== */
.wizard-field {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
    line-height: 1.4;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

/* Placeholder tipografia unificada (mantém identidade visual) */
.wizard-field::placeholder,
input.wizard-input::placeholder,
textarea.wizard-field::placeholder,
textarea.wizard-textarea::placeholder {
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #6c757d;
    opacity: 0.95;
}

/* Cross-browser (alguns navegadores antigos) */
::-webkit-input-placeholder {
    color: #6c757d;
}

:-ms-input-placeholder {
    color: #6c757d;
}

::-ms-input-placeholder {
    color: #6c757d;
}

.wizard-field:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ===== ESPAÇAMENTO REDUZIDO ===== */
.compact-field {
    margin-bottom: 0.75rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

/* ===== LABELS COMPACTOS ===== */
.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #495057;
}

/* ===== SELECT FIELDS ===== */
.form-select.wizard-field {
    font-size: 0.875rem;
    padding: 0.375rem 2rem 0.375rem 0.5rem;
    background-size: 16px 12px;
}

/* ===== CHECKBOX E RADIO ===== */
.form-check-input.wizard-field {
    margin-top: 0.125rem;
}

.form-check-label {
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

/* ===== CAMPOS DE ARQUIVO ===== */
input[type="file"].wizard-field {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
}

/* ===== TEXTAREA ===== */
textarea.wizard-field {
    resize: vertical;
    min-height: 80px;
}

/* ===== MODAL: Endereços Adicionais (Step 2) ===== */
#modalAddAddress .form-control-sm,
#modalAddAddress .form-select-sm {
    height: calc(1.5em + .5rem + 2px);
    line-height: 1.5;
}

/* ===== CAMPOS CONDICIONAIS ===== */
.wizard-pf-field,
.wizard-pj-field {
    transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
}

.field-group-hidden {
    display: none !important;
}

/* ===== ESTADOS DE VALIDAÇÃO ===== */
.wizard-field.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 1.38 1.38L7.7 4.08 6.76 3.14 4.26 5.64z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.375rem center;
    background-size: 1rem 1rem;
    padding-right: 2.5rem;
}

.wizard-field.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.375rem center;
    background-size: 1rem 1rem;
    padding-right: 2.5rem;
}

.invalid-feedback {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ===== LOADING STATES ===== */
.wizard-field.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='%23666' d='M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.375rem center;
    background-size: 1rem 1rem;
    padding-right: 2.5rem;
}

/* ===== GRID SYSTEM PARA CAMPOS ===== */
.wizard-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.375rem;
}

.wizard-col {
    padding: 0 0.375rem;
    flex: 1;
    min-width: 0;
}

.wizard-col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.wizard-col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.wizard-col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.wizard-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.wizard-col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.wizard-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .wizard-col,
    .wizard-col-2,
    .wizard-col-3,
    .wizard-col-4,
    .wizard-col-6,
    .wizard-col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .wizard-container {
        padding: 0.5rem;
    }

    .wizard-field {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ===== CARDS E SEÇÕES ===== */
.wizard-step-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ===== Step 5: Configurações e Módulos ===== */
.module-category {
    margin-bottom: 2rem;
}

.category-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    font-size: 1.1rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.module-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #20c997);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.module-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-card input[type="checkbox"]:checked~label {
    color: #0d6efd;
}

.module-card input[type="checkbox"]:checked~label .module-name {
    font-weight: 600;
}

.module-card input[type="checkbox"]:checked {
    transform: scale(1.1);
}

.module-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.module-name {
    font-weight: 500;
    flex: 1;
    font-size: 1rem;
}

.module-description {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #6c757d;
}

/* Checkbox nos cards */
.modules-grid .form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0;
}

.modules-grid .form-check-input:checked {
    box-shadow: none;
}

/* Ajustes para os cards de Plano (inputs ocupam a largura do card) */
.plan-config-grid .module-card .form-select,
.plan-config-grid .module-card .form-control {
    width: 100%;
}

/* Ajustes mínimos para selects dentro dos cards de Configurações de Sistema */
.system-config-grid .module-card .form-select,
.system-config-grid .module-card .form-control {
    width: auto;
    min-width: 220px;
}

/* Inputs ocupam largura total nos cards de Identidade */
.identity-config-grid .module-card .form-control,
.identity-config-grid .module-card .form-select {
    width: 100%;
}

/* Inputs ocupam largura total nos cards de Avançadas */
.advanced-config-grid .module-card .form-control,
.advanced-config-grid .module-card .form-select {
    width: 100%;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-card {
    animation: fadeInUp 0.6s ease forwards;
}

.module-card:nth-child(1) {
    animation-delay: 0.1s;
}

.module-card:nth-child(2) {
    animation-delay: 0.2s;
}

.module-card:nth-child(3) {
    animation-delay: 0.3s;
}

.module-card:nth-child(4) {
    animation-delay: 0.4s;
}

.module-card:nth-child(5) {
    animation-delay: 0.5s;
}

.module-card:nth-child(6) {
    animation-delay: 0.6s;
}

.wizard-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Seção wizard-section removida para evitar conflitos - versão padronizada está acima */

/* ===== NAVEGAÇÃO MODERNA DO WIZARD ===== */
.wizard-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0 1rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 2rem;
}

.nav-left {
    display: flex;
    justify-content: flex-start;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.nav-center {
    display: flex;
    justify-content: center;
}

.step-indicator {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    background: #f8fafc;
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

/* ===== BOTÕES MODERNOS ===== */
.btn-modern {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-modern.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-modern.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #5b21b6 100%);
}

.btn-modern.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-modern.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-modern.btn-secondary {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2);
}

.btn-modern.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.btn-ghost {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-ghost:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-ghost:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
    color: #cbd5e1;
}

/* ===== RESPONSIVIDADE DOS BOTÕES ===== */
@media (max-width: 768px) {
    .wizard-navigation {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .nav-left,
    .nav-right,
    .nav-center {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .nav-left {
        order: 3;
    }

    .nav-center {
        order: 1;
    }

    .nav-right {
        order: 2;
    }

    .btn-modern,
    .btn-ghost {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .step-indicator {
        width: 100%;
        text-align: center;
    }
}

/* ===== BOTÕES DO WIZARD (COMPATIBILIDADE) ===== */
.wizard-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.wizard-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.wizard-btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.wizard-btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.wizard-btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.wizard-btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
}

/* ===== PROGRESS BAR ===== */
.wizard-progress {
    margin-bottom: 2rem;
}

.wizard-progress .progress {
    height: 0.5rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
}

.wizard-progress .progress-bar {
    background-color: #0d6efd;
    transition: width 0.3s ease-in-out;
}

/* ===== TOOLTIPS E HELPERS ===== */
.wizard-helper {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.wizard-required {
    color: #dc3545;
}

/* ===== CHECKBOX MULTIPLE ===== */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
}

.checkbox-group .form-check {
    margin-bottom: 0;
}

/* ===== FLATPICKR CUSTOMIZATION ===== */
.flatpickr-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.375rem center;
    background-size: 1rem 1rem;
    padding-right: 2.5rem;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* ===== UTILITÁRIOS ===== */
.text-muted-small {
    font-size: 0.75rem;
    color: #6c757d;
}

.border-start-primary {
    border-left: 4px solid #0d6efd !important;
    padding-left: 1rem;
}

.bg-light-blue {
    background-color: rgba(13, 110, 253, 0.1);
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .wizard-step-card {
        background: #212529;
        border-color: #495057;
        color: #fff;
    }

    .wizard-step-title {
        color: #fff;
        border-bottom-color: #495057;
    }

    .wizard-section-title {
        color: #adb5bd;
    }

    .form-label {
        color: #adb5bd;
    }

    .wizard-helper {
        color: #6c757d;
    }
}

/* ===== WIZARD PROGRESS BAR (SEGUINDO IDENTIDADE VISUAL DAS HOMES) ===== */
.wizard-progress-container {
    background: transparent;
    padding: 1rem 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

/* Variante solicitada: remover qualquer resquício visual de card branco mantendo estrutura HTML */
.wizard-progress-container.no-card-strip {
    background: transparent !important;
    padding-top: .5rem;
    padding-bottom: .25rem;
    border: none !important;
    box-shadow: none !important;
}

.wizard-progress-container::before {
    display: none;
}

.wizard-progress {
    padding: 0;
    position: relative;
    z-index: 2;
}

.progress-steps {
    display: flex;
    justify-content: center;
    /* Centraliza conjunto como nos cadastros de clientes/fornecedores */
    align-items: flex-start;
    position: relative;
    min-height: 60px;
    margin: 0 auto;
    max-width: 760px;
    /* Harmoniza com largura típica do container de formulário */
    width: 100%;
    padding: 0;
    /* Remove padding lateral para alinhamento idêntico */
    gap: 3.5rem;
    /* Espaçamento consistente entre círculos */
}

.step {
    position: relative;
    z-index: 3;
    text-align: center;
    background-color: transparent;
    padding: 0;
    flex: 1 1 0;
    /* cada step ocupa mesma fração */
    max-width: 120px;
    /* impede alongar demais em telas largas */
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.step-circle::before {
    display: none;
}

/* Alias para compatibilidade: alguns templates usam <a class="step-circle-link"> */
.step-circle-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.step-circle-link::before {
    display: none;
}

.step-circle.pending,
.step-circle-link.pending {
    color: #9ca3af;
    background: #f8f9fa;
    border-color: #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.step-circle.active,
.step-circle-link.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: white;
    border-color: #0d6efd;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.3);
}

.step-circle.completed,
.step-circle-link.completed {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: white;
    border-color: #198754;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.3);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.step.active .step-label {
    color: #0d6efd;
    transform: scale(1.05);
    font-weight: 700;
}

.step.completed .step-label {
    color: #198754;
    transform: scale(1.02);
    font-weight: 700;
}

.step.pending .step-label {
    color: #9ca3af;
}

/* Efeitos hover para os steps */
.step:hover .step-circle,
.step:hover .step-circle-link {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.step.active:hover .step-circle,
.step.active:hover .step-circle-link {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.step.completed:hover .step-circle,
.step.completed:hover .step-circle-link {
    transform: scale(1.08);
    box-shadow: 0 5px 18px rgba(25, 135, 84, 0.4);
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .wizard-progress-container {
        padding: 0.75rem 0;
    }

    .progress-steps {
        min-height: 50px;
        gap: 0;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 .5rem;
    }

    .step {
        flex: 0 1 22%;
        /* até 4 por linha conforme espaço */
        max-width: 90px;
        margin-bottom: 0.5rem;
    }

    .step-circle,
    .step-circle-link {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .step-label {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }
}

/* ===== FORM CARD COMPACT (renderer de formulário único) ===== */
.card-compact {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}

.card-header-compact {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

.card-body-compact {
    padding-top: 1rem;
}

/* ===== TOOLTIP DE IDENTIFICAÇÃO INTELIGENTE ===== */
.wizard-smart-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
    z-index: 10;
}

.wizard-smart-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.wizard-smart-icon i {
    color: white;
    font-size: 0.875rem;
}

/* ===== WIZARD SECTIONS (PADRONIZADAS) ===== */
.wizard-section {
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.wizard-section-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #e5e7eb !important;
}

/* Ajustes de switches usados no Step 6 */
.form-check.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    border-radius: 0.75em;
}

.form-check.form-switch .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.wizard-section.disabled {
    opacity: 0.6;
    pointer-events: none;
}

table#admins-table input {
    min-width: 110px;
}

.progress.progress-thin {
    height: 4px;
    margin-bottom: 2px;
}

.password-meter .progress-bar {
    transition: width .3s ease;
}

.table-danger td {
    position: relative;
}

.wizard-icon {
    margin-right: 0.5rem !important;
    color: #3b82f6 !important;
    font-size: 1rem !important;
}

/* ===== LABELS PADRONIZADOS ===== */
.wizard-form-label,
.form-label,
.compact-field .form-label {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 0.3rem !important;
    display: block !important;
}

/* ===== GRID SYSTEM CONSISTENTE ===== */
.wizard-form-group {
    width: 100%;
}

.row {
    margin-left: -0.375rem !important;
    margin-right: -0.375rem !important;
}

.row>[class*="col-"] {
    padding-left: 0.375rem !important;
    padding-right: 0.375rem !important;
}

/* ===== WIZARD ALERTS ===== */
.wizard-alert {
    border-radius: 8px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 1px solid #bfdbfe;
}

/* ===== WIZARD CONDITIONAL SECTIONS ===== */
.wizard-conditional-section {
    transition: all 0.3s ease-in-out;
}

.wizard-conditional-section.hidden {
    display: none !important;
}

/* ===== WIZARD COMPACT FIELDS ===== */
.compact-field .form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.3rem;
    font-size: 0.875rem;
}

.wizard-required {
    color: #dc2626;
}

.wizard-field {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.wizard-field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

/* ===== WIZARD BUTTONS OVERRIDE ===== */
.wizard-buttons {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

/* ===== WIZARD SIDEBAR INFO ===== */
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tip-item {
    display: flex;
    align-items: start;
    margin-bottom: 0.5rem;
}

.avatar-lg {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
}

/* ===== PREVIEW DINÂMICO DA EMPRESA ===== */
#preview-nome {
    transition: all 0.3s ease;
    color: #1f2937;
    font-weight: 600;
    font-size: 1.1rem;
}

#preview-subdomain {
    transition: all 0.3s ease;
    color: #6b7280;
    font-size: 0.875rem;
}

#preview-tipo,
#preview-email,
#preview-endereco {
    transition: all 0.3s ease;
    color: #374151;
    font-size: 0.875rem;
}

#preview-categoria,
#preview-status {
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

#preview-icon {
    transition: all 0.3s ease;
}

/* Estados do preview */
.preview-updated {
    animation: highlightUpdate 0.6s ease;
}

@keyframes highlightUpdate {
    0% {
        background-color: rgba(59, 130, 246, 0.1);
    }

    50% {
        background-color: rgba(59, 130, 246, 0.2);
    }

    100% {
        background-color: transparent;
    }
}

/* Melhorias visuais do sidebar preview */
.info-item i {
    width: 20px;
    text-align: center;
    color: #6b7280;
}

.info-item span {
    flex: 1;
    word-break: break-word;
}

.avatar-lg {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

/* Preview responsivo */
@media (max-width: 992px) {
    .col-lg-4 {
        margin-top: 2rem;
    }

    #preview-nome {
        font-size: 1rem;
    }

    #preview-subdomain {
        font-size: 0.8rem;
    }

    .avatar-lg {
        width: 3rem;
        height: 3rem;
    }

    .avatar-lg i {
        font-size: 1.5rem !important;
    }
}

/* ===== FORÇA BARRA DE PROGRESSO SEMPRE CLARA ===== */
.wizard-progress-container {
    background: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none !important;
    box-shadow: none !important;
}

.progress-line {
    background: #e5e7eb !important;
}

.step-circle {
    background: #ffffff !important;
    border: 1.5px solid #e5e7eb !important;
}

.step-circle.pending {
    color: #9ca3af !important;
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

.step-circle.active {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

.step-circle.completed {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}