* { box-sizing: border-box; font-family: sans-serif; }
body { margin: 0; display: flex; height: 100vh; background: #1e1e1e; color: #fff; overflow: hidden; }

#sidebar { width: 260px; background: #252526; border-right: 1px solid #3c3c3c; display: flex; flex-direction: column; height: 100vh; }
.panel-header { padding: 10px; background: #2d2d2d; font-size: 12px; color: #858585; text-transform: uppercase; }
.toolbar { padding: 8px; display: flex; gap: 5px; background: #2d2d2d; }
#file-tree { flex-grow: 1; overflow-y: auto; padding: 10px; }

/* Элементы дерева */
.tree-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; margin-bottom: 2px; border-radius: 3px; }
.tree-row:hover { background: #2a2d2e; }
.tree-item { flex-grow: 1; padding: 4px 6px; cursor: pointer; font-size: 14px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.tree-row.selected { background: #37373d; border-left: 3px solid #007acc; }

/* Кнопки управления внутри дерева */
.action-btn { background: transparent; border: none; color: #aaa; cursor: pointer; padding: 2px 6px; font-size: 12px; border-radius: 3px; }
.action-btn:hover { background: #444; color: #fff; }
.delete-btn:hover { background: #a72828; color: #fff; }
.run-btn:hover { background: #28a745; color: #fff; }
.export-btn:hover { background: #007acc; color: #fff; }

#editor-container { flex-grow: 1; display: flex; flex-direction: column; padding: 15px; height: 100vh; }
#current-file-title { margin-bottom: 10px; color: #9cdcfe; font-size: 14px; font-family: monospace; }
textarea { flex-grow: 1; width: 100%; background: #1e1e1e; color: #d4d4d4; border: 1px solid #3c3c3c; font-family: monospace; font-size: 16px; padding: 15px; resize: none; outline: none; }
textarea:disabled { background: #1a1a1a; }

.btn { background: #3c3c3c; color: white; border: none; padding: 6px 12px; cursor: pointer; border-radius: 3px; font-size: 12px; }
.btn:hover { background: #4f4f4f; }

iframe { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; border: none; background: #fff; z-index: 99999; }
