/* Modal styles */
.modal {
    position: fixed;
    z-index: 1;
    /* Use Flexbox to center the modal content */
    display: none;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal content scrollbar styles */
.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* New styles for buttons */
.modal-content button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
}

.modal-content button:hover {
    background-color: #0056b3;
}

.modal-content button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.modal-content #cancel-config-button {
    background-color: #dc3545;
}

.modal-content #cancel-config-button:hover {
    background-color: #c82333;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.modal-content #clear-button {
    background-color: #dc3545;
}

.modal-content #clear-button:hover {
    background-color: #c82333;
}

/* Position settings button in the top-left corner */
.settings-button {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.settings-button i {
    font-size: 24px;
}

.modal-content .button-container-end {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.modal-content .button-container-start {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close:hover,
.modal .close:focus {
    color: #555;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    /* Remove default margin */
}

.modal-header .close {
    position: static;
    /* Override previous absolute positioning */
    padding: 0 10px;
    line-height: 1;
    margin: -5px -10px 0 0;
    /* Fine-tune alignment */
}
.checkbox-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-container label {
    margin: 0;
}