/**
 * CSS para o Wizard do Processo Logístico
 * Formulário passo a passo com navegação intuitiva
 */

/* NAVEGAÇÃO DO WIZARD */
.wizard-navigation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wizard-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    min-width: 80px;
}

.wizard-steps .step:hover {
    background-color: rgba(0,123,255,0.1);
    transform: translateY(-2px);
}

.wizard-steps .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.wizard-steps .step.active .step-number {
    background-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.2);
    animation: pulse 2s infinite;
}

.wizard-steps .step.completed .step-number {
    background-color: #28a745;
    position: relative;
}

.wizard-steps .step.completed .step-number::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
}

.wizard-steps .step-title {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #6c757d;
    line-height: 1.2;
}

.wizard-steps .step.active .step-title {
    color: #007bff;
}

.wizard-steps .step.completed .step-title {
    color: #28a745;
}

/* PROGRESSO DO WIZARD */
.wizard-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-progress .progress {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.wizard-progress .progress-bar {
    transition: width 0.6s ease;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
}

/* CONTEÚDO DO WIZARD */
.wizard-content {
    position: relative;
    min-height: 250px;
}

.wizard-step-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.wizard-step-content.active {
    display: block;
}

/* CARDS DAS ETAPAS */
.wizard-step-content .card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wizard-step-content .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.wizard-step-content .card-header {
    border-radius: 0;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
    border-bottom: none;
}

.wizard-step-content .card-body {
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* BOTÕES DE NAVEGAÇÃO */
.wizard-buttons {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 15px;
}

.wizard-buttons .btn {
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wizard-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.wizard-buttons .btn:disabled {
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 4px rgba(0,123,255,0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0,123,255,0.1);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(0,123,255,0.2);
    }
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .wizard-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .wizard-steps .step {
        flex-direction: row;
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }
    
    .wizard-steps .step-number {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .wizard-steps .step-title {
        text-align: left;
    }
    
    .wizard-navigation {
        padding: 15px;
    }
    
    .wizard-progress {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .wizard-progress .progress {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .wizard-step-content .card-body {
        padding: 15px;
    }
    
    .wizard-buttons {
        padding: 15px;
    }
    
    .wizard-buttons .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* MELHORIAS NOS INPUTS */
.wizard-step-content .input-group {
    margin-bottom: 12px;
}

.wizard-step-content .row {
    margin-bottom: 0;
}

.wizard-step-content .row:last-child {
    margin-bottom: 0;
}

.wizard-step-content .input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #dee2e6;
    font-weight: 600;
    color: #495057;
}

.wizard-step-content .form-control,
.wizard-step-content .form-select {
    border-color: #dee2e6;
    transition: all 0.3s ease;
}

.wizard-step-content .form-control:focus,
.wizard-step-content .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    transform: translateY(-1px);
}

/* CORES ESPECÍFICAS POR ETAPA */
.wizard-step-content[data-step="1"] .card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.wizard-step-content[data-step="2"] .card-header {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.wizard-step-content[data-step="3"] .card-header {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.wizard-step-content[data-step="4"] .card-header {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.wizard-step-content[data-step="5"] .card-header {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
}

.wizard-step-content[data-step="6"] .card-header {
    background: linear-gradient(135deg, #343a40 0%, #23272b 100%);
}
