body {
  font-family: sans-serif;
  background: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  background: #2c3e50;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#run-btn {
  background: #3498db;
  border: none;
  padding: 6px 12px;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

.editor-tabs {
  display: flex;
  background: #34495e;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: #ecf0f1;
  cursor: pointer;
}

.tab-btn.active {
  background: #2c3e50;
}

main {
  flex: 1;
  display: flex;
}

.editor-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 50%;
}

.code-editor {
  flex: 1;
  padding: 10px;
  font-family: monospace;
  font-size: 14px;
  background: #1e1e1e;
  color: #d4d4d4;
  border: none;
  outline: none;
  resize: none;
  height: 100%;
}

.preview-section {
  flex: 1;
  width: 50%;
  border-left: 1px solid #ccc;
  display: flex;
  flex-direction: column;
}

.preview-section h2 {
  background: #34495e;
  color: white;
  padding: 8px;
  font-size: 16px;
}

#preview {
  flex: 1;
  width: 100%;
  border: none;
  background: white;
}
