/* Dark theme support for EasyMDE markdown editor */
.mud-theme-dark .EasyMDEContainer .CodeMirror {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.mud-theme-dark .EasyMDEContainer .CodeMirror-cursor {
    border-left-color: #e0e0e0 !important;
}

.mud-theme-dark .EasyMDEContainer .editor-toolbar {
    background-color: #2d2d2d !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.mud-theme-dark .EasyMDEContainer .editor-toolbar button {
    color: #e0e0e0 !important;
}

.mud-theme-dark .EasyMDEContainer .editor-toolbar button:hover,
.mud-theme-dark .EasyMDEContainer .editor-toolbar button.active {
    background-color: #424242 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.mud-theme-dark .EasyMDEContainer .editor-toolbar i.separator {
    border-left-color: rgba(255, 255, 255, 0.12) !important;
    border-right-color: rgba(255, 255, 255, 0.12) !important;
}

.mud-theme-dark .EasyMDEContainer .CodeMirror-selected {
    background-color: #424242 !important;
}

.mud-theme-dark .EasyMDEContainer .editor-preview,
.mud-theme-dark .EasyMDEContainer .editor-preview-side {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

.mud-theme-dark .EasyMDEContainer .cm-header {
    color: #569cd6 !important;
}

.mud-theme-dark .EasyMDEContainer .cm-strong {
    color: #4ec9b0 !important;
}

.mud-theme-dark .EasyMDEContainer .cm-em {
    color: #ce9178 !important;
}

.mud-theme-dark .EasyMDEContainer .cm-link {
    color: #9cdcfe !important;
}

.mud-theme-dark .EasyMDEContainer .cm-url {
    color: #3794ff !important;
}

.mud-theme-dark .EasyMDEContainer .cm-quote {
    color: #608b4e !important;
}

.mud-theme-dark .EasyMDEContainer .cm-comment {
    color: #6a9955 !important;
}

/* Light theme adjustments (optional, for consistency) */
.mud-theme-light .EasyMDEContainer .CodeMirror {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.mud-theme-light .EasyMDEContainer .editor-toolbar {
    background-color: #f5f5f5 !important;
}

.mud-theme-light .EasyMDEContainer .editor-toolbar button {
    color: #000000 !important;
}
