* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #1e1e1e;
    color: #d4d4d4;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background: #252526;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3c3c3c;
}

.header h1 {
    font-size: 18px;
    font-weight: 500;
    color: #cccccc;
}

.controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #0e639c;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #1177bb;
}

.btn-secondary {
    background: #3c3c3c;
    color: #cccccc;
}

.btn-secondary:hover {
    background: #4c4c4c;
}

.btn-icon {
    font-size: 12px;
}

.status {
    font-size: 12px;
    color: #808080;
    padding: 4px 10px;
    background: #2d2d2d;
    border-radius: 4px;
}

.status.ready {
    color: #4ec9b0;
    background: #1e3a34;
}

.status.running {
    color: #dcdcaa;
    background: #3a3a1e;
}

.status.error {
    color: #f48771;
    background: #3a1e1e;
}

.container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.editor-panel {
    border-right: 1px solid #3c3c3c;
}

.panel-header {
    background: #2d2d2d;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #3c3c3c;
}

#editor {
    flex: 1;
    min-height: 0;
}

#screen_container {
    flex: 1;
    background: #000;
    overflow: auto;
    padding: 8px;
}

#screen_container > div {
    color: #0f0;
    background: #000;
}

#screen_container canvas {
    display: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #3c3c3c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4c4c4c;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
