/* General modal styling */
#popupModal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
}

#popupModal .modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px; /* Adjust width as needed */
    max-width: 90%; /* Responsive max width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Updated form input styling */
#popupModal .modal-content input[type="text"],
#popupModal .modal-content input[type="number"],
#popupModal .modal-content input[type="checkbox"],
#popupModal .modal-content textarea {
    width: 100%; /* Full width of modal content */
    padding: 8px;
    box-sizing: border-box;
    font-size: 14px;
    margin-top: 5px;
}

/* Label styling */
#popupModal .modal-content label {
    font-size: 14px;
    margin-top: 8px;
    display: inline-block;
}

/* Footer buttons */
#popupModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

#popupModal .modal-footer button {
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#popupModal .modal-footer button:hover {
    background-color: #ddd;
}

/* Popup menu styling */
.popup-menu {
    position: absolute;
    display: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 120px;
    z-index: 1000;
}

.popup-menu ul {
    list-style: none;
    margin: 0;
    padding: 5px 0;
}

.popup-menu li {
    padding: 8px 12px;
    cursor: pointer;
}

.popup-menu li:hover {
    background-color: #f0f0f0;
}

/* UI container for elements */
#uiContainer .ui-element {
    position: absolute;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkbox-label {
    cursor: pointer;
}
