/* Floating Editor Styles */
.floating-editor {
    width: 100%;
    max-width: 800px; /* Increased width */
    margin: 50px auto; /* Reduce spacing between heading and editor */
    background-color: var(--grey-background);
    color: var(--text-color);
    border-radius: 15px;
    box-shadow: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    border: none;
    overflow: hidden;
}

.editor-section-title {
    text-align: center;
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-family: 'Lora', serif;
}


.editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    justify-content: flex-start;
    align-items: center;
}

.editor-toolbar button {
    background-color: var(--paper-grey); /* White paper background */
    color: var(--text-color); /* Dark text */
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: normal;
    text-transform: none;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.editor-toolbar button:hover {
    background-color: var(--grey-background); /* More noticeable hover effect */
    box-shadow: none;
}

.clear-editor-btn {
    background-color: var(--paper-grey); /* White paper background */
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 5px;
    margin-left: auto; /* Push to the right */
    transition: background-color 0.2s ease;
}

.clear-editor-btn:hover {
    background-color: var(--grey-background); /* More noticeable hover effect */
}

.clear-editor-btn svg {
    fill: var(--text-color); /* Icon color */
    width: 20px;
    height: 20px;
}

.editor-content {
    flex-grow: 1;
    flex-shrink: 1;
    min-height: 0;
    max-height: 400px;
    overflow-y: auto;
    background-color: var(--white);
    color: var(--text-color);
    border: none; /* No border */
    border-radius: 12px; /* Slightly less than parent */
    padding: 15px;
    font-family: 'Lora', serif;
    line-height: 1.6;
    outline: none;
}

.editor-content:focus {
    border-color: transparent; /* No border on focus */
}

/* Placeholder for contenteditable */
.editor-content[data-placeholder]:empty::before {
    content: attr(data-placeholder);
    color: #999; /* Placeholder text color */
    pointer-events: none; /* Allow clicking through to the editable content */
}

/* Basic contenteditable styling for rich text */
.editor-content b, .editor-content strong {
    font-weight: bold;
}

.editor-content i, .editor-content em {
    font-style: italic;
}

.editor-content blockquote {
    border-left: 4px solid #777;
    margin-left: 0;
    padding-left: 10px;
    color: #bbb;
    font-style: italic;
}