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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1e1e1e;
    color: #d4d4d4;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

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

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

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

#script-selector {
    background: #3c3c3c;
    color: #cccccc;
    border: 1px solid #3e3e42;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    min-width: 150px;
}

#script-selector:hover {
    background: #454545;
}

#script-selector:focus {
    outline: 1px solid #007acc;
    outline-offset: -1px;
}

.btn {
    padding: 6px 16px;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.btn-primary:hover {
    background: #1177bb;
}

.btn-danger {
    background: #a1260d;
    color: white;
}

.btn-danger:hover {
    background: #c5301a;
}

.btn-run {
    background: #0e639c;
    color: white;
    font-weight: 500;
}

.btn-run:hover {
    background: #1177bb;
}

.main-content {
    display: flex;
    flex: 1;
    gap: 1px;
    background: #3e3e42;
    overflow: hidden;
}

.editor-panel,
.terminal-panel {
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
}

.editor-panel {
    flex: 1;
}

.terminal-panel {
    flex: 1;
}

.editor-header,
.terminal-header {
    background: #2d2d30;
    border-bottom: 1px solid #3e3e42;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #cccccc;
}

#editor {
    flex: 1;
    background: #1e1e1e;
    color: #d4d4d4;
    border: none;
    padding: 15px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    tab-size: 4;
}

#editor::placeholder {
    color: #6a6a6a;
}

.terminal {
    flex: 1;
    background: #1e1e1e;
    padding: 15px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-output {
    color: #d4d4d4;
}

.terminal-error {
    color: #f48771;
}

.terminal-success {
    color: #4ec9b0;
}

.terminal-prompt {
    color: #569cd6;
}

/* Scrollbar styling */
.terminal::-webkit-scrollbar,
#editor::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.terminal::-webkit-scrollbar-track,
#editor::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.terminal::-webkit-scrollbar-thumb,
#editor::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 5px;
}

.terminal::-webkit-scrollbar-thumb:hover,
#editor::-webkit-scrollbar-thumb:hover {
    background: #4e4e4e;
}

