/* Modal Styles */
.modal {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: top 0.5s ease-out;

}

.modal.show {
    top: 50%;
    transform: translate(-50%, -50%);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-header h3 {
    margin: 0;
    flex-grow: 1;
}

#filenameInput {
    flex-grow: 2;
    margin: 0 10px;
    padding: 5px;
    border: 1px solid #ddd;
    text-align: center;
    border-radius: 4px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.modal-footer button {
    margin-left: 10px;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

#modalEditor {
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-x: auto;
}