/* ============================================
   SYSFLOW Track - Modal Personalizado
   Substitui alert() e confirm() nativos
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 24px 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

body.dark-mode .modal-container {
    background: #303134;
    color: #e8eaed;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-icone {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
}

.modal-icone.sucesso { color: #34a853; }
.modal-icone.erro { color: #ea4335; }
.modal-icone.confirmacao { color: #fbbc04; }
.modal-icone.info { color: #1a73e8; }

.modal-titulo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #202124;
}

body.dark-mode .modal-titulo {
    color: #e8eaed;
}

.modal-mensagem {
    font-size: 15px;
    color: #5f6368;
    margin-bottom: 24px;
    line-height: 1.5;
}

body.dark-mode .modal-mensagem {
    color: #9aa0a6;
}

.modal-botoes {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-botoes .btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-primario {
    background: #1a73e8;
    color: #ffffff;
}

.modal-btn-primario:hover {
    background: #1557b0;
}

.modal-btn-secundario {
    background: #e8eaed;
    color: #5f6368;
}

body.dark-mode .modal-btn-secundario {
    background: #5f6368;
    color: #e8eaed;
}

.modal-btn-secundario:hover {
    background: #dadce0;
}

body.dark-mode .modal-btn-secundario:hover {
    background: #6c7075;
}

.modal-btn-perigo {
    background: #ea4335;
    color: #ffffff;
}

.modal-btn-perigo:hover {
    background: #c5221f;
}

.modal-btn-sucesso {
    background: #34a853;
    color: #ffffff;
}

.modal-btn-sucesso:hover {
    background: #2d9249;
}