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

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

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

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

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e74c3c;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #555;
    color: white;
}

.btn-secondary:hover {
    background: #666;
}

.btn-docs {
    background: #4ec9b0;
    color: #1e1e1e;
}

.btn-docs:hover {
    background: #5ed9c0;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-icon:hover {
    opacity: 1;
}

main.editor-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.editor-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #3e3e42;
}

.terminal-panel {
    width: 40%;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
}

.panel-header {
    background: #2d2d30;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3e3e42;
    font-size: 0.85rem;
    color: #aaa;
}

.file-name {
    color: #e74c3c;
    font-weight: 500;
}

#editor {
    flex: 1;
    width: 100%;
}

#terminal {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.terminal-output {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-error {
    color: #f48771;
}

.terminal-success {
    color: #89d185;
}

.terminal-info {
    color: #75beff;
}

.terminal-prompt {
    color: #4ec9b0;
    margin-top: 1rem;
}

.terminal-prompt:first-child {
    margin-top: 0;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

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

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