/* Modal Background */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

/* Modal Content */
.modal-content {
    background: white;
    width: 700px;
    max-width: 90%;
    padding: 20px;
    text-align: center;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

/* Close Button */
.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

/* Modal Background */
.modal-overlay {
    display: none; /* Ensure it's hidden initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Enable vertical scrolling if modal is too large */
}

/* Modal Content */
.modal-content {
    background: white;
    width: 600px;
    max-width: 90%;
    padding: 20px;
    text-align: center;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-height: 90vh; /* Limit height to viewport */
    overflow-y: auto; /* Scroll inside modal if needed */
}

/* Close Button */
.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

/* Scrollable Table */
.table-container {
    max-height: 300px; /* Ensure scrolling within modal content */
    overflow-y: auto;
    border: 1px solid #ddd;
}

/* Table Styling */
.website-table {
    width: 100%;
    border-collapse: collapse;
}

.website-table th, .website-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.website-table th {
    background: #f4f4f4;
}

/* Selected Websites */
.selected-website {
    isplay: inline-block;
    background: #f1f1f1;
    padding: 5px 10px;    
    border-radius: 5px;
}

.remove-website {
    color: red;
    cursor: pointer;
    margin-left: 5px;
}

#website-popup #save-websites{
    margin-top: 15px;
}
#website-selection #selected-websites-summary{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 1em;
}
#website-selection .website-label-title{
    display: flex;
    flex-wrap: wrap;   
    gap: 5px;
}