/* ============================================
   ESTILOS DOS MODALS
   ============================================ */

/* Overlay do modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 11, 13, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

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

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Container do modal */
.modal-container {
    background: #FFFFFF;
    border-radius: 24px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(11, 11, 13, 0.25);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cabeçalho do modal */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #E7E8EC;
    background: #FAFBFC;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #17171A;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.modal-header h2 .badge {
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
    background: #FFCB05;
    padding: 2px 10px;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #F1F2F4;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #E5E7EB;
    color: #17171A;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* Corpo do modal */
.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #F1F2F4;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Conteúdo do modal */
.modal-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #17171A;
    margin: 24px 0 8px 0;
}

.modal-content h3:first-child {
    margin-top: 0;
}

.modal-content p {
    font-size: 14px;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 12px;
}

.modal-content ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px 0;
}

.modal-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #4B5563;
    padding: 6px 0;
}

.modal-content ul li::before {
    content: "•";
    color: #FFCB05;
    font-weight: 900;
    font-size: 18px;
    line-height: 1.4;
    flex-shrink: 0;
}

.modal-content .highlight-box {
    background: #FFFBEB;
    border-left: 4px solid #FFCB05;
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 16px 0;
}

.modal-content .highlight-box p {
    margin: 0;
    color: #78350F;
    font-weight: 500;
}

.modal-content .highlight-box strong {
    color: #17171A;
}

/* Rodapé do modal */
.modal-footer {
    padding: 20px 32px;
    border-top: 1px solid #E7E8EC;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #FAFBFC;
    flex-shrink: 0;
}

.modal-footer .btn-secondary {
    padding: 10px 24px;
    border: 1.5px solid #D1D5DB;
    background: transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', Arial, sans-serif;
}

.modal-footer .btn-secondary:hover {
    background: #F1F2F4;
    border-color: #9CA3AF;
    color: #17171A;
}

.modal-footer .btn-primary {
    padding: 10px 28px;
    background: #FFCB05;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #17171A;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', Arial, sans-serif;
}

.modal-footer .btn-primary:hover {
    background: #FFD42E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 203, 5, 0.3);
}

/* Responsividade dos modals */
@media (max-width: 640px) {
    .modal-container {
        max-height: 95vh;
        border-radius: 20px;
    }

    .modal-header {
        padding: 18px 20px;
    }

    .modal-header h2 {
        font-size: 17px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 16px 20px;
        flex-direction: column-reverse;
    }

    .modal-footer button {
        width: 100%;
        justify-content: center;
    }
}
