/* This file is for your main application CSS */
@import "./phoenix.css";
@import "./playground.css";

/* Import base theme */
@import "themes/base.css";

/* Import components */
@import "components/theme-toggle.css";

/* Import utilities */
@import "utils/typography.css";
@import "utils/spacing.css";
@import "utils/flexbox.css";
@import "utils/grid.css";
@import "utils/common.css";

/* Add your custom styles below */

/* App-specific styles */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-main {
  flex: 1;
  padding: var(--spacing-md);
}

.app-footer {
  padding: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
}

/* Playground specific styles */
.playground-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.playground-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.language-selector select {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.playground-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.editor-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.code-editor {
  width: 100%;
  height: 400px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  resize: vertical;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.run-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--text-on-primary);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.run-button:hover {
  background-color: var(--primary-color-dark);
}

.output-section {
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  min-height: 400px;
}

.error-output {
  color: var(--error-color);
}

.success-output {
  color: var(--success-color);
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  padding: 1rem;
  background-color: var(--bg-primary);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
