/* Colores */
:root {
  --fondo-1: #1a1a1a;
  --fondo-2: #2a2a2a;
  --fondo-3: #3a3a3a;
  --texto: #f0f0f0;
  --boton-1: #444444;
  --boton-2: #111111;
  --accent: #0056b3;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--texto);
  background-color: var(--fondo-1);
  max-width: clamp(320px, 90%, 1200px);
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding-bottom: 2rem;
}

h2 {
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.2;
}

/* Contenedor de controles */
.controlsContainer {
  background-color: var(--fondo-2);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 20px var(--fondo-1);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.inputGroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inputGroup label {
  font-weight: 500;
  font-size: 0.95rem;
}

.inputField {
  background-color: var(--fondo-3);
  color: var(--texto);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.inputField:focus {
  outline: none;
  border-color: var(--accent);
}

.inputField::placeholder {
  color: #888;
}

/* Botones */
.generateButton {
  background-color: var(--accent);
  color: var(--texto);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0.875rem 1.5rem;
  transition: transform 0.2s;
}

.generateButton:hover {
  transform: scale(1.01);
}

.generateButton:active {
  transform: translateY(1px);
}

/* Contenedor de salida */
.outputContainer {
  background-color: var(--fondo-2);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 20px var(--fondo-1);
}

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

.copyButton {
  background-color: var(--accent);
  color: var(--texto);
  font-family: inherit;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.copyButton:hover {
  background-color: var(--boton-2);
}

.copyButton.copied {
  background-color: var(--accent);
}

.outputArea {
  background-color: var(--fondo-3);
  color: var(--texto);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 500px;
  white-space: pre;
  margin: 0;
}

/* Scrollbar personalizada */
.outputArea::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.outputArea::-webkit-scrollbar-track {
  background: var(--fondo-2);
  border-radius: 4px;
}

.outputArea::-webkit-scrollbar-thumb {
  background: var(--boton-1);
  border-radius: 4px;
}

.outputArea::-webkit-scrollbar-thumb:hover {
  background: var(--boton-2);
}
