.botcoder-editor-container {
    display: flex;
    height: 100vh; /* Actually, inside a canvas it should take 100% */
    width: 100%;
    background-color: var(--surface, #1e293b);
    color: var(--text, #f8fafc);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.botcoder-sidebar {
    width: 250px;
    background-color: var(--surface-hover, #334155);
    border-right: 1px solid var(--border, #475569);
    display: flex;
    flex-direction: column;
}

.botcoder-sidebar-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border, #475569);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.botcoder-sidebar-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.botcoder-btn-icon {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    font-size: 14px;
}
.botcoder-btn-icon:hover { color: var(--text); }

.botcoder-file-tree {
    flex-grow: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.botcoder-file-item {
    padding: 6px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.botcoder-file-item:hover { background-color: rgba(255,255,255,0.05); }

.file-icon { font-size: 14px; }

.botcoder-main-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.botcoder-tabs {
    display: flex;
    background-color: var(--surface-hover, #334155);
    border-bottom: 1px solid var(--border, #475569);
    overflow-x: auto;
}

.botcoder-tab {
    padding: 8px 16px;
    font-size: 13px;
    border-right: 1px solid var(--border, #475569);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--surface-hover, #334155);
    color: var(--text-muted, #94a3b8);
    position: relative;
}

.botcoder-tab.active {
    background-color: var(--surface, #1e293b);
    color: var(--text, #f8fafc);
    border-top: 2px solid var(--accent, #3b82f6);
}

.botcoder-tab-close {
    font-size: 16px;
    margin-left: 4px;
    opacity: 0;
}
.botcoder-tab:hover .botcoder-tab-close { opacity: 1; }
.botcoder-tab-close:hover { color: #ef4444; }

.botcoder-toolbar {
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--surface, #1e293b);
    border-bottom: 1px solid var(--border, #475569);
}

.botcoder-current-file {
    font-size: 14px;
    font-weight: 500;
}

.botcoder-file-status {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    margin-left: 12px;
}

.botcoder-toolbar-right {
    display: flex;
    gap: 8px;
}

.botcoder-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border, #475569);
    border-radius: 4px;
    background-color: transparent;
    color: var(--text, #f8fafc);
    cursor: pointer;
}

.botcoder-btn:hover { background-color: var(--surface-hover, #334155); }

.botcoder-btn-primary {
    background-color: var(--accent, #3b82f6);
    border-color: var(--accent, #3b82f6);
}

.botcoder-btn-primary:hover {
    background-color: #2563eb;
}

.monaco-editor-container {
    flex-grow: 1;
    width: 100%;
}
