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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0f172a;
  color: #e2e8f0;
  overflow: hidden;
  height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #0f172a;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: #020617;
  border-bottom: 1px solid #1e293b;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-terminal {
  width: 24px;
  height: 24px;
  color: #34d399;
}

.title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #34d399;
}

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

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #059669;
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
  background-color: #10b981;
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-secondary {
  background-color: transparent;
  color: #94a3b8;
}

.btn-secondary:hover {
  color: white;
}

.btn-icon {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.btn-icon:hover {
  color: #f87171;
}

.icon {
  width: 16px;
  height: 16px;
}

.icon-small {
  width: 12px;
  height: 12px;
}

/* Main Content */
.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Editor Pane */
.editor-pane {
  width: 50%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1e293b;
}

/* Example Navigation */
.example-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background-color: #020617;
  border-bottom: 1px solid #1e293b;
  font-size: 0.875rem;
}

.example-link {
  color: #94a3b8;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
  cursor: pointer;
}

.example-link:hover {
  color: #34d399;
  background-color: rgba(52, 211, 153, 0.1);
}

.pane-header {
  background-color: rgba(15, 23, 42, 0.5);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editor {
  flex: 1;
  width: 100%;
  background-color: #0f172a;
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: none;
  border: none;
  outline: none;
  color: #cbd5e1;
}

.editor::selection {
  background-color: rgba(16, 185, 129, 0.3);
}

/* Output Pane */
.output-pane {
  width: 50%;
  display: flex;
  flex-direction: column;
  background-color: #020617;
}

.console-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #1e293b;
  overflow: hidden;
}

.console-content {
  flex: 1;
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  overflow-y: auto;
  font-weight: 500;
}

.console-placeholder {
  color: #475569;
  font-style: italic;
}

.log-line {
  margin-bottom: 0.25rem;
  color: #6ee7b7;
  border-left: 2px solid #1e293b;
  padding-left: 0.75rem;
}

/* AST Section */
.ast-section {
  height: 33.333%;
  display: flex;
  flex-direction: column;
  background-color: #0f172a;
  border-top: 1px solid #1e293b;
}

.ast-content {
  flex: 1;
  padding: 1rem;
  overflow: auto;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  color: #93c5fd;
}

.ast-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

