/* static/components/modal.css */

/* --- MODAIS CAJU GO v1.1 --- */

/* O Fundo Escuro (Overlay) */
.modal-overlay {
    display: none; /* O SEGREDO: Começa escondido! */
    position: fixed;
    inset: 0;
    background-color: rgba(10, 30, 18, 0.7); /* Verde muito escuro quase preto (Identidade) */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px); /* Charme extra: desfoque no fundo */
    padding: 16px; /* Garante margem em telas pequenas */
}

/* Quando o JS ativa o modal */
.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* A Janela Branca do Modal */
.modal {
    background: var(--surface);
    width: 100%;
    max-width: 420px;
    padding: 32px 24px;
    border-radius: var(--radius-lg); /* 20px */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Títulos dentro do Modal */
.modal h2, .modal h3 {
    font-family: 'Montserrat Alternates', sans-serif;
    color: var(--verde-floresta);
    margin-bottom: 8px;
}

.modal p {
    font-family: 'Nunito', sans-serif;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Botão de Fechar (X) */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-light); /* Cinza claro */
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--vermelho-delivery); /* Feedback visual de fechar */
    background-color: rgba(234, 29, 44, 0.05);
}

/* Barra de Progresso do Pedido */
.progress-track {
    width: 100%;
    height: 10px; /* Um pouco mais grossa */
    background-color: var(--surface-hover);
    border: 1px solid var(--border-subtle);
    border-radius: 99px;
    overflow: hidden;
    margin: 24px 0;
}

.progress-bar {
    height: 100%;
    background-color: var(--caju-orange); /* A cor da ação! */
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.3); /* Brilho laranja */
}

/* Animação suave de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}