#editor-container {
    display: flex;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.4;
    background-color: #1e1e1e;
    color: #e0e0e0;
}

#line-numbers {
    width: 40px;
    background-color: #252526;
    text-align: right;
    padding: 10px 5px 0 0;
    color: #858585;
    overflow: hidden;
    user-select: none;
    border-right: 1px solid #3c3c3c;
}

#line-numbers div {
    padding: 0 5px;
    text-align: right;
}

#line-numbers .current {
    color: #ffffff;
    font-weight: bold;
}

#editor-content {
    flex-grow: 1;
    padding: 10px;
    outline: none;
    white-space: pre;
    overflow: auto;
    caret-color: #ffffff;
    tab-size: 4;
}

#editor-content::selection {
    background-color: #264f78;
}

#search-box {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #252526;
    border: 1px solid #3c3c3c;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

#search-box input {
    background: #1e1e1e;
    border: 1px solid #3c3c3c;
    color: #e0e0e0;
    padding: 4px 8px;
    border-radius: 2px;
}

#search-box button {
    background: #0078d4;
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 2px;
    cursor: pointer;
}

#search-box button:hover {
    background: #106ebe;
}

#close-search {
    background: #3c3c3c !important;
    padding: 0 8px !important;
}

#goto-dialog input {
    background: #1e1e1e;
    border: 1px solid #3c3c3c;
    color: #e0e0e0;
    padding: 6px;
    border-radius: 2px;
    width: 100%;
    box-sizing: border-box;
}

#goto-dialog button {
    background: #3c3c3c;
    border: 1px solid #4c4c4c;
    color: #e0e0e0;
    padding: 4px 12px;
    border-radius: 2px;
    cursor: pointer;
}

#goto-dialog button:hover {
    background: #4c4c4c;
}

#goto-dialog button:last-child {
    background: #0078d4;
}

/* Syntax highlighting tokens (see public/js/editor/tokenizer.js) */
.tok-keyword { color: #569cd6; }
.tok-constant { color: #4fc1ff; }
.tok-string { color: #ce9178; }
.tok-interpolation { color: #d7ba7d; }
.tok-comment { color: #6a9955; font-style: italic; }
.tok-number { color: #b5cea8; }
.tok-builtin { color: #4ec9b0; }
.tok-function { color: #dcdcaa; }
.tok-variable { color: #9cdcfe; }
.tok-tag { color: #569cd6; }
.tok-attribute { color: #9cdcfe; }
.tok-operator { color: #d4d4d4; }
.tok-punctuation { color: #d4d4d4; }

.bracket-match {
    outline: 1px solid #888;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.ghost-suggestion {
    color: #6b6b6b;
    opacity: 0.8;
    font-style: italic;
    pointer-events: none;
    user-select: none;
}

/* Tab bar (rendered by public/js/editor/tabs.js into #tabs-container) */
#tabs-container {
    display: flex;
    background-color: #252526;
    border-bottom: 1px solid #3c3c3c;
    overflow-x: auto;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: #969696;
    border-right: 1px solid #3c3c3c;
    cursor: pointer;
    white-space: nowrap;
}

.tab.active {
    color: #e0e0e0;
    background-color: #1e1e1e;
    border-top: 2px solid #0078d4;
}

.tab-close {
    opacity: 0.6;
}

.tab-close:hover {
    opacity: 1;
    color: #ff4444;
}

/* New-file template picker (public/js/core/core.js) */
.new-file-menu {
    position: fixed;
    background: #252526;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
    padding: 4px 0;
    z-index: 200;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.new-file-item {
    padding: 6px 12px;
    color: #e0e0e0;
    cursor: pointer;
}

.new-file-item:hover {
    background: #094771;
}
