.richtext-editor {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
}

[data-theme='dark'] .richtext-editor {
    background: #2d3748;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.richtext-editor .editor-column,
.richtext-editor .markdown-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.editor-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.editor-toolbar button {
    padding: 0.5rem 1rem;
    background: var(--ifm-color-primary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

[data-theme='dark'] .editor-toolbar button {
    background: var(--ifm-color-primary-light);
}

.editor-toolbar button:hover {
    background: var(--ifm-color-primary-dark);
}

[data-theme='dark'] .editor-toolbar button:hover {
    background: var(--ifm-color-primary-lighter);
}

.richtext-input {
    width: 100%;
    min-height: 400px;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background: #f9fafb;
    color: #1f2a44;
    outline: none;
}

[data-theme='dark'] .richtext-input {
    border-color: #4b5563;
    background: #1f2a44;
    color: #f9fafb;
}

.markdown-output {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 1rem;
    background: #f9fafb;
    min-height: 400px;
    text-align: left;
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    overflow-y: auto;
    margin-top: auto;
}

[data-theme='dark'] .markdown-output {
    border-color: #4b5563;
    background: #1f2a44;
}

@media (max-width: 768px) {
    .richtext-editor {
        flex-direction: column;
        gap: 1rem;
    }

    .richtext-input,
    .markdown-output {
        min-height: 200px;
    }
}