#savebar {

    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: black;
    padding:5px;

    background-size: 10px 10px;
    color: white;
    text-align: center;
    z-index: 999;
}
/* Position the Clear and Save buttons */
.button-group {
    position: absolute;
    top: -12px; /* Keep above content */
    right: 0; /* Move group left */
    display: inline-flex;
    gap: 2px; /* Adjust spacing between buttons */
    z-index: 10;
}

.individual-save, .clear-field {
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 12px;
    min-width: 40px;
    text-align: center;
    transition: background 0.3s ease-in-out,box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
    cursor: pointer;
    display: none; /* Initially hidden */

}

.clear-field {
    background: rgba(255, 164, 0, 0.9); /* Orange */

}

.individual-save {
    background: rgba(0, 164, 0, 0.9); /* Green */
}

.clear-field:hover {
    background: rgba(255, 121, 0, 1); /* Orange */
    box-shadow: 0 0 6px rgba(255, 164, 0, 0.8);

}

.individual-save:hover {
    background: rgba(0, 121, 0, 1); /* Green */
    box-shadow: 0 0 6px rgba(0, 164, 0, 0.8);
}

.editable-field:hover .button-group button,
.button-group button:hover {
    display: inline-block;

}

.editable-field.editing:hover .button-group button{
    display: none;

}

#profile-edit-banner {
    text-align: center;
    width: 100%;
    height:100%
}
#profile-edit-banner {
    position: absolute;
    display: flex;
    left: -100%;
    bottom: 0;
    background-color: rgba(0, 128, 0, 0.75); /* green */
    color: white;
    text-align: center;
    z-index: 1000;
    transition: left 0.5s ease-in-out;
    align-items:center;
    justify-content:center;
}

#profile-edit-banner.error {
    background-color: rgba(255, 0, 0, 0.75); /* red */
}

#profile-edit-banner.show {
    left: 0;
}

/* Clear float */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}
/* Common style for all edit notices */

.editable-field {
    min-height: 36px;
    vertical-align: middle;

}

.edit-notice {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 25px;
    border-radius: 3px;
    text-align: center;
    vertical-align: middle;
    min-height: 30px;
}

/* Show edit notice on hover */
.editable-field:hover .edit-notice {
    display: flex;
    justify-content: center;
    align-items: center;
}




.editable-field.editing .edit-notice {
    display: none;
}

.editable-field[data-new-content='true']:hover .individual-save,
.list-field[data-new-content='true']:hover .individual-save {
    display: block;
}

.editable-field[data-new-content="true"], 
.list-field[data-new-content="true"] {
    border: 2px solid red;
}
/* begin savebar */
/* Savebar */
#savebar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: black;
    color: white;
    text-align: center;
    z-index: 1000;
}

/* SVG Carbon Fiber Look */
/* Add your SVG element here */

/* Buttons */

#global-save-button, #autosave-box {
    float: right; /* Floats buttons and checkbox to the right */
    margin-right: 10px; /* Adds some margin for spacing */
}

#clearAllBtn {
    float: left; /* Floats buttons and checkbox to the right */
    margin-right: 10px; /* Adds some margin for spacing */
}
#global-save-button, #clearAllBtn {
    font-size: 18px;
    padding: 10px 15px;
    background: rgba(89, 1, 30, 0.6);
    color: white;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.close-editor{
    font-size: 18px;
    padding: 10px 15px;
    background: rgba(89, 1, 30, 0.75);
    color: white;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.close-editor:hover {
    background: rgba(89, 1, 30, 1);
    box-shadow: 0 0 15px black;
}
#global-save-button:hover, #autosave-box:hover, #clearAllBtn:hover {
    background: rgba(89, 1, 30, 1);
    box-shadow: 0 0 10px white;
}

/* Checkbox */
#autoSaveCheckbox {
    display: none;
}

#autoSaveCheckbox + label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    line-height: 20px;
    float: right;
}

#autoSaveCheckbox + label::before, #autoSaveCheckbox + label::after {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

#autosave-box {

    border: 1px solid white;
    background: rgba(89, 1, 30, 0.6);
    padding: 10px 10px 10px 20px;
}

#autoSaveCheckbox:checked + label::before {
    background: rgba(89, 1, 30, 1);
}

#autoSaveCheckbox + label::after {
    content: "";
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transition: all 0.3s ease;
    transform: scale(0);
}

#autoSaveCheckbox:checked + label::after {
    transform: translateY(-50%) rotate(45deg) scale(1);
}

/* LIST MODAL */
#listEditModal {
    display: flex; /* Force show */
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 80vw;

    position: relative;
}

.modal-content input {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
}
.modal-content ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 10px; /* Adjust spacing */
    list-style: none;
    padding: 0;
}

.checkbox-list li {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between checkbox and text */
}

.checkbox-list li label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    white-space: nowrap; /* Prevents wrapping */
}

.checkbox-list li input[type="checkbox"] {
    margin: 0 6px;
    width: 16px; /* Standard checkbox size */
    height: 16px;
    flex-shrink: 0; /* Prevents checkbox from resizing */
}
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: black;
}

/* Tiny MCE */
.editable-field .tox-tinymce{
    border: 2px solid black;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
    overflow: hidden;
    position: relative;
    visibility: inherit !important;
}
.tox .tox-promotion, .tox-menubar {
    display: none !important;
}