/* Recording Button */
.btn-record {
  min-width: 120px;
  font-weight: 600;
  color: white;
  background: #3b82f6;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
  transition: all 0.2s ease;
}

.btn-record:hover {
  background: #2563eb;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.btn-record.is-recording {
  background: #ef4444;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
  animation: recording-pulse 1.5s ease-in-out infinite;
}

.btn-record.is-recording:hover {
  background: #dc2626;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
}

@keyframes recording-pulse {
  0%, 100% {
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 2px 20px rgba(239, 68, 68, 0.6);
  }
}

/* Recording Indicator */
.recording-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: dot-blink 1s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Timer */
.timer {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #3b82f6;
  transition: color 0.2s ease;
}

.timer.is-recording {
  color: #ef4444;
}

.timer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

/* Cards */
.record-card {
  padding: 32px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s ease;
}

.record-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.record-card h2 {
  margin-bottom: 24px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.waveform-card {
  min-height: 100px;
  padding: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.waveform-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  font-size: 0.875rem;
  color: #94a3b8;
}

.waveform-placeholder.hidden {
  display: none;
}

.recordings-card {
  margin-top: 20px;
  padding: 24px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.recordings-card h2 {
  margin-bottom: 16px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}

/* Recording Item */
.recording-item {
  margin-bottom: 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Action Buttons */
.btn-play {
  min-width: 100px;
  font-weight: 600;
  color: white;
  background: #3b82f6;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-play:hover {
  background: #2563eb;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.btn-download {
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.btn-download:hover {
  color: #334155;
  background: #e2e8f0;
}

.btn-pause {
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.btn-pause:hover {
  color: #334155;
  background: #e2e8f0;
}

.btn-delete {
  font-weight: 500;
  color: #ef4444;
  background: transparent;
  border: 1px solid #fecaca;
}

.btn-delete:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.btn-delete-icon {
  min-width: auto;
  padding: 8px;
  color: #94a3b8;
  background: transparent;
  border: none;
}

.btn-delete-icon:hover {
  color: #ef4444;
  background: #fef2f2;
}

/* Recording Controls */
.recording-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.recording-controls-spacer {
  flex: 1;
}

/* Control Groups */
.control-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.primary-controls .controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.secondary-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--color-secondary);
}

.secondary-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.secondary-controls input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
}

/* Mic Select */
.mic-select {
  min-width: 200px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: #475569;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.mic-select:hover {
  border-color: #94a3b8;
}

.mic-select:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Status */
.status-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-secondary);
}

.status-text.is-recording {
  color: #ef4444;
}

/* Utilities */
.text-primary {
  color: #3b82f6;
}

.text-muted {
  color: var(--color-secondary);
}

.waveform-blue {
  --waveform-color: #93c5fd;
  --waveform-progress: #3b82f6;
}

/* Mobile */
@media (max-width: 640px) {
  .record-card {
    padding: 20px;
  }

  .primary-controls .controls {
    flex-wrap: wrap;
  }

  .mic-select {
    min-width: 100%;
    margin-top: 8px;
  }

  .secondary-controls {
    flex-direction: column;
    gap: 8px;
  }

  .recording-controls {
    flex-wrap: wrap;
  }
}
