:root {
  --primary-color: #00a8e8;
  --primary-hover: #0096cc;
  --secondary-color: #f8f9fa;
  --border-color: #e1e4e8;
  --text-color: #333333;
  --error-color: #e74c3c;
  --success-color: #2ecc71;
  --code-bg: #f6f8fa;
  --header-bg: #003459;
  --header-text: #ffffff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 2rem 0;
  text-align: center;
}

header h1 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

main {
  padding: 2rem 0;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--header-bg);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.input-section,
.output-section,
.promo-section {
  width: 100%;
}

.textarea-wrapper {
  position: relative;
  width: 100%;
}

textarea {
  width: 100%;
  min-height: 200px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  resize: vertical;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.2);
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

button {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.primary-button {
  background-color: var(--primary-color);
  color: white;
}

.primary-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.secondary-button {
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.secondary-button:hover {
  background-color: #e9ecef;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

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

.output-container {
  background-color: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: auto;
  max-height: 500px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

pre {
  margin: 0;
  padding: 1rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  white-space: pre-wrap;
}

.error-container {
  background-color: #fdeaea;
  border: 1px solid var(--error-color);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.error-container p {
  color: var(--error-color);
}

.hidden {
  display: none;
}

/* Promo section styles */
.promo-section {
  background-color: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.promo-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.promo-feature {
  padding: 1rem;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

footer {
  background-color: var(--secondary-color);
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
  .button-group {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .promo-features {
    grid-template-columns: 1fr;
  }
}
