:root {
  --primary-bg: #1a1a1a;
  --secondary-bg: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #bbbbbb;
  --accent: #00cc66;
  --accent-hover: #00b359;
  --border-color: #404040;
  --input-bg: #333333;
}

html, body {
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 600px;
  height: 100%;
  background: var(--secondary-bg);
  padding: 1.25rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.logo {
  text-align: center;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.logo svg {
  width: 35px;
  height: 35px;
  fill: var(--accent);
}

h1 {
  text-align: center;
  color: var(--accent);
  font-size: 1.5rem;
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  flex-shrink: 0;
}

.textarea-group {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 0.75rem;
}

textarea {
  width: 100%;
  padding: 0.75rem;
  box-sizing: border-box;
  background: var(--input-bg);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  resize: none;
  flex-grow: 1;
  min-height: 120px;
  transition: all 0.3s ease;
  word-wrap: break-word;
  word-break: break-all;
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
  touch-action: auto;
  pointer-events: auto;
}

textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

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

/* Estilizado de scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--input-bg);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0;
  flex-shrink: 0;
}

button {
  padding: 0.75rem;
  color: var(--primary-bg);
  background-color: var(--accent);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.action-button {
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  font-size: 0.8rem;
  text-align: right;
  width: 100%;
  margin: 0.25rem 0 0.75rem 0;
  transition: color 0.2s ease;
}

.action-button:hover {
  color: var(--accent);
}

.footer {
  text-align: center;
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.footer a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }
  
  .button-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  textarea {
    font-size: 0.85rem;
  }
}