body, html { margin: 0; padding: 0; height: 100vh; width: 100vw; overflow: hidden; background: #111; color: white; font-family: 'Segoe UI', Tahoma, sans-serif; display: flex; flex-direction: column; }

#top-bar { height: 35px; background: #252525; border-bottom: 1px solid #333; display: flex; align-items: center; padding: 0 10px; z-index: 100; flex-shrink: 0; }
.menu-item { padding: 0 15px; font-size: 12px; cursor: pointer; position: relative; color: #bbb; display: flex; align-items: center; height: 100%; transition: background 0.2s; }
.menu-item:hover { background: #333; color: white; }

.dropdown { display: none; position: absolute; background: #252525; border: 1px solid #444; min-width: 160px; box-shadow: 0 8px 16px rgba(0,0,0,0.5); padding: 0; z-index: 2000; border-radius: 4px; overflow: hidden; }
.menu-item:hover .dropdown { display: block; top: 35px; left: 0; }
.dropdown button { display: block; width: 100%; padding: 10px 15px; background: #252525; border: none; color: #ccc; text-align: left; cursor: pointer; font-size: 12px; border-bottom: 1px solid #333; }
.dropdown button:hover { background: #0078d7 !important; color: white !important; }
.dropdown button:last-child { border-bottom: none; }

#editor-container { display: flex; flex-direction: row; flex: 1; width: 100%; min-height: 0; }
#hierarchy, #inspector { width: 260px; min-width: 260px; background: #181818; border-right: 1px solid #282828; padding: 15px; display: flex; flex-direction: column; overflow-y: auto; }
#inspector { border-right: none; border-left: 1px solid #282828; }

#main-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
#canvas-container { position: relative; flex: 1; background: #000; }
#renderCanvas { width: 100%; height: 100%; display: block; outline: none; }

#asset-browser { height: 200px; background: #181818; border-top: 1px solid #282828; display: flex; flex-direction: column; }
.asset-header { background: #222; padding: 5px 15px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #888; text-transform: uppercase; }
.asset-grid { display: flex; flex-wrap: wrap; padding: 10px; gap: 10px; overflow-y: auto; }
.asset-item { width: 80px; height: 90px; background: #252525; border: 1px solid #333; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.asset-item:hover { background: #333; border-color: #00ff88; }
.asset-icon { font-size: 24px; margin-bottom: 5px; }
.asset-name { font-size: 10px; color: #bbb; text-align: center; width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.canvas-ui-left, .canvas-ui-right { position: absolute; top: 15px; background: rgba(0, 0, 0, 0.7); padding: 8px 12px; border-radius: 4px; font-family: monospace; font-size: 11px; pointer-events: none; border: 1px solid #444; z-index: 5; }
.canvas-ui-left { left: 15px; color: #00ff88; }
.canvas-ui-right { right: 15px; color: #00e5ff; }

h3 { font-size: 11px; text-transform: uppercase; color: #00ff88; margin: 0 0 10px 0; border-bottom: 1px solid #333; padding-bottom: 5px; }
.toolbar { display: flex; gap: 5px; margin-bottom: 15px; }
.toolbar button { flex: 1; background: #333; border: 1px solid #444; color: white; padding: 6px; cursor: pointer; font-size: 10px; border-radius: 3px; }
ul { list-style: none; padding: 0; }
li { padding: 8px; cursor: pointer; font-size: 13px; color: #ccc; border-radius: 4px; margin-bottom: 2px; }
li:hover { background: #333; }
li.selected { background: #0078d7; color: white; }

.prop-group { margin-bottom: 15px; }
label { display: block; color: #888; font-size: 10px; margin-bottom: 5px; }
input, textarea { width: 100%; background: #222; border: 1px solid #444; color: #00ff88; padding: 8px; border-radius: 3px; box-sizing: border-box; }

/* ... Keep previous styles ... */

#console-panel {
    height: 120px;
    background: #0a0a0a;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
}
.console-header {
    background: #1a1a1a;
    padding: 4px 10px;
    font-size: 10px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.console-header button {
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
}
.console-header button:hover { color: #eee; }
#console-output {
    flex: 1;
    overflow-y: auto;
    padding: 5px 10px;
    font-family: 'Consolas', monospace;
    font-size: 11px;
}
.log-entry { margin-bottom: 2px; border-bottom: 1px solid #1a1a1a; padding-bottom: 2px; }
.log-entry.info { color: #aaa; }
.log-entry.error { color: #ff5555; background: rgba(255,0,0,0.1); }
.log-entry.warn { color: #ffaa00; }