/* Voice Dictation — Styles */
:root {
  --primary: #3b82f6;
  --danger: #ef4444;
  --success: #22c55e;
  --bg: #1e293b;
  --card: #334155;
  --text: #f1f5f9;
  --muted: #94a3b8;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 2rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

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

.controls {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #475569;
  border-radius: 6px;
  background: #0f172a;
  color: var(--text);
  font-size: 0.9rem;
}

.recorder {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.recorder button {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: #2563eb;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-secondary {
  background: var(--muted);
  color: white;
}

.status {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.preview,
.result {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

#transcribed-text,
#rewritten-text {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #475569;
  border-radius: 6px;
  background: #0f172a;
  color: var(--text);
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9rem;
  resize: vertical;
}

.result-text {
  min-height: 100px;
  margin-bottom: 1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2rem;
}

/* Animacje */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.recording .status {
  animation: pulse 1.5s infinite;
  color: var(--danger);
}
