:root {
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --color-error: #e53e3e;
  --color-success: #38a169;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  background: var(--gradient-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  text-align: center;
}

h1 {
  color: #333;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.input-group {
  margin-bottom: 1.5rem;
}

textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: #667eea;
}

button {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

button:active {
  transform: translateY(0);
}

.message-display {
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid #e0e0e0;
  font-size: 1rem;
  line-height: 1.6;
  word-wrap: break-word;
  white-space: pre-wrap;
  text-align: left;
  min-height: 120px;
}

.message {
  margin-top: 1rem;
  font-size: 0.95rem;
  word-break: break-all;
}

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

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

.error {
  color: var(--color-error);
  font-size: 1rem;
  margin-top: 1rem;
}

.loading {
  color: #666;
  font-size: 1rem;
}
