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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background: #1e1e1e;
  color: #fff;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

h1 {
  font-size: 24px;
  color: #00ff00;
}

.buttons {
  display: flex;
  gap: 10px;
}

button {
  padding: 8px 16px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

button:hover {
  background: #45a049;
}

.editor-container {
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
}

.CodeMirror {
  height: 300px;
  font-size: 16px;
  border-radius: 4px;
}

.output-container {
  background: #2d2d2d;
  padding: 15px;
  border-radius: 4px;
}

.output-container h3 {
  margin-bottom: 10px;
  color: #00ff00;
}

#output {
  font-family: 'Courier New', Courier, monospace;
  white-space: pre-wrap;
  color: #fff;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .buttons {
    flex-direction: column;
  }
  
  .CodeMirror {
    height: 200px;
    font-size: 14px;
  }
}