/* Voice Notes App - Minimal Design */

:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --surface: #ffffff;
  --surface-alt: #f9fafb;
  --on-surface: #1f2937;
  --on-surface-secondary: #6b7280;
  --error: #ef4444;
  --success: #10b981;
  --radius-lg: 12px;
  --radius-md: 8px;
  --transition: 150ms ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f3f4f6 0%, #e0e7ff 100%);
  min-height: 100vh;
  color: var(--on-surface);
}

.app-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

header h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.subtitle {
  color: var(--on-surface-secondary);
  font-size: 0.9rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Recording Panel */
.recording-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mic-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.mic-button:hover {
  transform: scale(1.05);
  background: var(--primary-light);
}

.mic-button.recording {
  background: var(--error);
  animation: pulse 1.5s infinite;
}

.mic-button.recording:hover {
  background: #dc2626;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.timer {
  font-size: 1.5rem;
  font-weight: monospace;
  margin: 16px 0;
  color: var(--on-surface);
}

.status-text {
  color: var(--on-surface-secondary);
  font-size: 0.9rem;
}

/* Transcript Panel */
.transcript-panel, .notes-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.transcript-output {
  min-height: 120px;
  padding: 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.empty-state {
  color: var(--on-surface-secondary);
  text-align: center;
  font-style: italic;
  padding: 20px;
}

/* Notes List */
.notes-list {
  max-height: 200px;
  overflow-y: auto;
}

.note-item {
  background: var(--surface-alt);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.note-item:hover {
  background: #f3f4f6;
}

.note-item .note-time {
  font-size: 0.75rem;
  color: var(--on-surface-secondary);
}

/* Buttons */
.secondary-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

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

/* Hidden utility class */
.hidden {
  display: none !important;
}