body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  padding: 16px;
  background: #f7fafc;
  color: #0f172a;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(2, 6, 23, 0.08);
}

h1 {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 600;
}

p.lead {
  margin: 0 0 20px 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.5;
}

.row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.col {
  flex: 1;
  min-width: 300px;
}

.col:last-child {
  min-width: 400px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #0f172a;
  font-weight: 500;
}

input[type="text"], select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

textarea {
  min-height: 180px;
  font-family: monospace;
  white-space: pre-wrap;
  resize: vertical;
}

.controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

button {
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s;
}

button:hover {
  background: #1d4ed8;
}

button.secondary {
  background: #64748b;
}

button.secondary:hover {
  background: #475569;
}

#translateBtn {
  width: 100%;
  margin-bottom: 8px;
}

.response-container {
  position: relative;
}

.response-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.response-actions {
  display: flex;
  gap: 8px;
}

.copy-btn {
  padding: 6px 12px;
  font-size: 12px;
  background: #64748b;
  border-radius: 6px;
}

.copy-btn:hover {
  background: #475569;
}

pre {
  background: #0b1220;
  color: #e6eef8;
  padding: 16px;
  border-radius: 8px;
  overflow: auto;
  max-height: 500px;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.status {
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
}

.hint {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.footer {
  margin-top: 24px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.inline {
  display: inline-block;
}

@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  .row {
    flex-direction: column;
    gap: 16px;
  }
  
  .col {
    min-width: auto;
  }
  
  .col:last-child {
    min-width: auto;
  }
}
