#popup-avisos-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#popup-avisos-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#popup-avisos-content h3 {
    margin-top: 0;
    text-align: center;
}

#popup-avisos-content a.popup-link {
    display: inline-block;
    margin-top: 3px;
    color: #0073aa;
    text-decoration: none;
}

/* Close button */
#cerrar-popup {
    background: transparent;
    float: inline-end;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

#cerrar-popup:hover {
    color: #000;
}

/* Pagination */
#popup-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.page-btn {
    background: #f1f1f1;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.page-btn:hover:not([disabled]) {
    background: #e6e6e6;
}

.page-btn[disabled] {
    opacity: 0.6;
    cursor: default;
}

.page-btn.active {
    background: #0073aa;
    color: white;
    border-color: #006494;
}

@media (max-width: 600px) {
    #popup-avisos-content {
        width: 95%;
        padding: 15px;
    }
}
@media (max-width: 400px) {
    #popup-avisos-content h3 {
        font-size: 18px;
    }
}
