/* Estilos do Modal */
.modal {
    display: none; /* Oculto por padrão */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: slideIn 0.3s;
}

/* Botão de Fechar */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}

/* Títulos */
.modal-content h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.modal-content h3 {
    color: #555;
    margin-top: 20px;
}

/* Conteúdo Scrollável */
.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    text-align: justify;
    line-height: 1.6;
    color: #444;
}

/* Estilização das Listas */
.modal-body ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

/* Links */
.modal-body a {
    color: #1a73e8;
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* Botão de Ação */
.modal-footer {
    text-align: center;
    margin-top: 20px;
}

.modal-footer button {
    background-color: #1a73e8;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.modal-footer button:hover {
    background-color: #1558b0;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); }
    to { transform: translateY(0); }
}

/* Scrollbar Personalizada */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsividade */
@media (max-width: 600px) {
    .modal-content {
        padding: 15px 20px;
    }

    .close-btn {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }

    .modal-footer button {
        width: 100%;
    }
}