
/* General Modal Styling */
#modal {
    position: fixed;
    z-index: 1000;
    right: 0;
    top: 0;
    width: 100%; /* Cover the entire screen width */
    height: 100%; /* Cover the entire screen height */
}

/* Modal Content */
#modal .modal-content {
    background-color: var(--secondary-color); /* Set background color */
    margin: 20px; /* Adjust margin to move modal away from edges */
    padding: 20px;
    border: 1px solid #888;
    width: 300px; /* Fixed width for a smaller modal */
    border-radius: 8px;
    position: absolute;
    top: 20px; /* Adjust top margin */
    right: 20px; /* Adjust right margin */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Header */
#modal .modal-content h2 {
    margin-top: 0;
    font-size: 18px; /* Adjust font size if needed */
    text-align: center;
}

/* Modal Fields */
#modal .modal-fields {
    display: flex;
    flex-direction: column; /* Stack the fields vertically */
    margin-bottom: 20px; /* Space between fields and buttons */
}

#modal .modal-fields .field-container {
    display: flex;
    align-items: center; /* Align items on the same line */
    margin-bottom: 10px;
}

#modal .modal-fields label {
    width: 85px; /* Fixed width for labels to align with inputs */
    margin: 0;
    font-weight: bold;
    text-align: left; /* Align text to the right */
    margin-right: 10px; /* Space between label and input */
    white-space: nowrap;
}

#modal .modal-fields input,
#modal .modal-fields select,
#modal .modal-fields option {
    width: calc(100% - 95px); /* Adjust width considering label width */
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--accent-color);
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

/* Buttons */
#modal .modal-buttons {
    display: flex;
    justify-content: center; /* Center buttons horizontally */
    gap: 10px; /* Space between buttons */
}

#modal .modal-buttons button {
    border: 1px solid var(--accent-color);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
