body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #f5f6fa;
}

.container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #1e272e;
    color: white;
    padding: 15px;
}

.sidebar h3 {
    margin-top: 0;
}

.sidebar li {
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
}

.sidebar li:hover {
    background: #485460;
}

/* Main */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Instructions */
.instructions {
    background: white;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

/* Workspace */
.workspace {
    display: flex;
    flex: 1;
    gap: 10px;
    padding: 10px;
}

/* Editor box */
.editor-section {
    flex: 1;
    background: #0f172a;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.editor-header span {
    color: white;
    font-weight: bold;
}

/* Button */
.run-btn {
    background: #22c55e;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

.run-btn:hover {
    background: #16a34a;
}

/* CodeMirror */
.CodeMirror {
    flex: 1;
    height: auto;
    border-radius: 6px;
}

/* Output */
.output-section {
    width: 40%;
    background: #0f172a;
    border-radius: 10px;
    padding: 10px;
    color: #22c55e;
    display: flex;
    flex-direction: column;
}

.output-section h3 {
    color: white;
}

pre {
    flex: 1;
    overflow-y: auto;
}