
    /* ============================================================
       ESTILOS COOLADMIN - MODAL DE CARREGAMENTO
    ============================================================ */

    /* Overlay */
.loading-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeInOverlay 0.3s ease;
}

.loading-modal-overlay.active {
    display: flex;
}

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

/* Modal */
.loading-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 48px 36px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.05);
    animation: slideUpModal 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Borda superior decorativa */
.loading-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4e73df, #36b9cc, #1cc88a);
    border-radius: 16px 16px 0 0;
    transition: background 0.5s ease;
}

.loading-modal-overlay.error-state .loading-modal::before {
    background: linear-gradient(90deg, #dc3545, #e74a3b);
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Spinner */
.loading-spinner {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    position: relative;
}

.loading-spinner svg {
    transform: rotate(-90deg);
    width: 72px;
    height: 72px;
}

.loading-spinner .circle-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 4;
}

.loading-spinner .circle-progress {
    fill: none;
    stroke: #4e73df;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: spinProgress 1.2s linear infinite;
}

.loading-modal-overlay.error-state .loading-spinner .circle-progress {
    stroke: #dc3545;
}

@keyframes spinProgress {
    0% {
        stroke-dashoffset: 151;
    }
    50% {
        stroke-dashoffset: 30;
    }
    100% {
        stroke-dashoffset: 151;
    }
}

/* Ícone de erro */
.error-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: none;
    align-items: center;
    justify-content: center;
    animation: shakeError 0.5s ease;
}

.error-icon svg {
    width: 64px;
    height: 64px;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* Títulos */
.loading-modal h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.3px;
}

.loading-modal p {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 22px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* Passos */
.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin: 0 0 6px 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #f8f9fc;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    font-family: 'Inter', sans-serif;
    border: 1px solid transparent;
}

.step.active {
    background: #eef2ff;
    border-color: #4e73df;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.08);
}

.step.done {
    background: #e8f5e9;
    border-color: #1cc88a;
    color: #1a1a2e;
}

.step.error-step {
    background: #fce4ec;
    border-color: #dc3545;
    color: #1a1a2e;
}

.step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #6c757d;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.step.active .step-icon {
    background: #4e73df;
    color: #fff;
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.3);
}

.step.done .step-icon {
    background: #1cc88a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(28, 200, 138, 0.3);
}

.step.error-step .step-icon {
    background: #dc3545;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.step .step-icon .fa-check {
    display: none;
}

.step .step-icon .fa-xmark {
    display: none;
}

.step .step-icon .fa-spinner {
    display: none;
}

.step.active .step-icon .fa-spinner {
    display: inline-block !important;
}

.step.done .step-icon .fa-check {
    display: inline-block !important;
}

.step.done .step-icon .fa-spinner {
    display: none !important;
}

.step.error-step .step-icon .fa-xmark {
    display: inline-block !important;
}

/* Botão retry */
.btn-retry {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    background: #4e73df;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.25);
    margin: 16px auto 0;
    width: fit-content;
}

.btn-retry:hover {
    background: #375ac7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 115, 223, 0.35);
}

.btn-retry:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.2);
}

.btn-retry i {
    font-size: 14px;
}

/* Mensagem de erro */
.error-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #dc3545;
    background: #fce4ec;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin-top: 12px;
}

.error-message i {
    font-size: 16px;
}

/* Responsividade */
@media (max-width: 480px) {
    .loading-modal {
        padding: 32px 24px 28px;
    }

    .loading-modal h3 {
        font-size: 18px;
    }

    .step {
        font-size: 13px;
        padding: 8px 12px;
    }

    .step-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

