.container {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 100vh;
}
.file-bar {
    background: #2d2d30;
    min-height: 35px;
    display: flex;
    align-items: center;
}
.file-tab {
    padding: 8px 16px;
    color: #969696;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid #1e1e1e;
    white-space: nowrap;
    transition:
        background 0.15s,
        color 0.15s;
    user-select: none;
}
.file-tab.active {
    background: #1e1e1e;
    color: #fff;
    border-bottom: 2px solid #0e639c;
}
.file-tab:hover {
    background: #37373d;
    color: #ccc;
}
.file-icon {
    font-size: 14px;
}
.run-button {
    margin-left: auto;
    padding: 6px 16px;
    background: #0e639c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.run-button:hover {
    background: #1177bb;
}
.run-button:hover:not(:disabled) {
    background: #1177bb;
}
.run-button:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.stop-button {
    margin-left: 5px;
    padding: 6px 16px;
    background: #d13438;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.stop-button:hover {
    background: #e81123;
}
.stop-button:hover:not(:disabled) {
    background: #e81123;
}
.stop-button:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.build-output {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e1e1e;
    border-top: 1px solid #007acc;
    max-height: 250px;
    overflow-y: auto;
    padding: 12px;
    color: #ccc;
    font-family: "Courier New", monospace;
    font-size: 14px;
    white-space: pre-wrap;
    display: none;
    z-index: 10;
}

.build-output.show {
    display: block;
}

.build-output .stdout {
    color: #4ec9b0;
}

.build-output .stderr {
    color: #f48771;
}

.build-output .success {
    color: #89d185;
}

.close-output {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
}

.close-output:hover {
    color: #fff;
}

#editor {
    flex: 1;
    width: 100%;
    z-index: 1;
}
