body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #282a36; /* Dracula bg match */
    color: #f8f8f2;
    font-family: 'Segoe UI', sans-serif;
}

.toolbar {
    height: 50px;
    background-color: #44475a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #6272a4;
}

.title {
    font-weight: bold;
    font-size: 1.2rem;
    color: #bd93f9;
}

.status {
    font-family: monospace;
    color: #50fa7b;
    font-weight: bold;
    text-transform: uppercase;
}

.btn {
    background-color: #ff79c6;
    color: #282a36;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background-color: #ff92d0;
}

#editor-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.CodeMirror {
    height: 100%;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 16px;
    line-height: 1.6;
}

/* 
   "WYSIWYG" Styling for Markdown Source 
   This makes the source code itself look rich.
*/

/* Headers */
.cm-header-1 { font-size: 2.0em; color: #ff79c6; font-weight: bold; }
.cm-header-2 { font-size: 1.75em; color: #bd93f9; font-weight: bold; }
.cm-header-3 { font-size: 1.5em; color: #8be9fd; font-weight: bold; }
.cm-header-4 { font-size: 1.3em; color: #50fa7b; font-weight: bold; }

/* Emphasis */
.cm-strong { color: #f1fa8c; font-weight: 900 !important; }
.cm-em { color: #f1fa8c; font-style: italic; }

/* Links */
.cm-link { color: #8be9fd; text-decoration: underline; }
.cm-url { color: #6272a4; }

/* Lists */
.cm-variable-2 { color: #50fa7b; } /* List bullets often map here in some themes */
.cm-keyword { color: #ff79c6; }

/* Code Blocks */
.cm-comment { color: #6272a4; }
.cm-quote { color: #f1fa8c; font-style: italic; border-left: 3px solid #6272a4; display: inline-block; padding-left: 5px; }

/* Cursor */
.CodeMirror-cursor {
    border-left: 2px solid #ff79c6 !important;
}

/* Vim mode cursor block */
.cm-fat-cursor .CodeMirror-cursor {
    background: #ff79c6 !important;
    opacity: 0.5;
}
