/* ========================================
   ESTILOS DE MODAIS MODERNOS
   ======================================== */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Container */
.modal-container,
.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header - BRANCO E LIMPO */
.modal-header {
    background: #ffffff;
    padding: 24px 30px;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header p {
    margin: 4px 0 0 0;
    color: #6B7280;
    font-size: 0.875rem;
}

/* Botão Fechar Moderno e Limpo */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: transparent;
    /* Sem fundo */
    color: #9CA3AF;
    /* Cinza claro */
    border: none;
    font-size: 28px;
    /* Ícone maior */
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
    padding: 0;
}

.close-btn:hover {
    color: #374151;
    /* Cinza mais escuro no hover */
    background-color: transparent;
    transform: none;
    /* Remove rotação se existir */
}

/* Modal Body */
.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #F9FAFB;
}

/* Botões do Modal */
.modal-footer .btn {
    min-width: 120px;
    height: 48px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}