.rust-playground-section {
  color: #f8fafc;
}

.rust-playground-section * {
  box-sizing: border-box;
}
.rust-playground-section .rust-page {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 40px 0;
}

.rust-playground-section .rust-hero {
  text-align: center;
  margin-bottom: 32px;
}

.rust-playground-section.rust-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.rust-playground-section.rust-hero p {
  color: #cbd5e1;
}

.rust-playground-section .rust-playground {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rust-playground-section .rust-editor-panel,
.rust-playground-section .rust-output-panel {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.rust-playground-section .panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

#rustExampleSelect {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #020617;
  color: #f8fafc;
}

#rustEditor {
  width: 100%;
  min-height: 420px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #475569;
  background: #020617;
  color: #e2e8f0;
  font-family: Consolas, Monaco, monospace;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}

.rust-playground-section .rust-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.rust-playground-section .rust-actions button {
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 600;
}

#runRustBtn {
  background: #22c55e;
  color: #052e16;
}

#resetRustBtn {
  background: #38bdf8;
  color: #082f49;
}

#clearRustOutputBtn {
  background: #f97316;
  color: #431407;
}

#rustOutput {
  min-height: 420px;
  padding: 16px;
  border-radius: 12px;
  background: #020617;
  color: #86efac;
  border: 1px solid #475569;
  white-space: pre-wrap;
  overflow-x: auto;
  font-family: Consolas, Monaco, monospace;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .rust-playground-section .rust-playground {
    grid-template-columns: 1fr;
  }

  .rust-playground-section .panel-header {
    flex-direction: column;
    align-items: stretch;
  }
}
