/* Incident Flow Controller Styles */

/* Initial State */
.incident-flow-container {
  min-height: 500px;
  padding: 2rem 0;
}

.initial-section {
  text-align: center;
  padding: 4rem 2rem;
}

.new-incident-button {
  font-size: 1.25rem;
  padding: 1rem 3rem;
  background-color: #dc2626;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.new-incident-button:hover {
  background-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Choice Section */
.choice-section {
  text-align: center;
  padding: 3rem 2rem;
}

.choice-section h2 {
  margin-bottom: 2rem;
  color: #1f2937;
  font-size: 1.5rem;
}

.choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .choice-buttons {
    flex-direction: row;
    justify-content: center;
    max-width: 600px;
  }
}

.choice-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.choice-button:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.choice-button-primary {
  border-color: #3b82f6;
  background: #eff6ff;
}

.choice-button-primary:hover {
  background: #dbeafe;
  border-color: #2563eb;
}

.choice-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
}

.choice-button-primary .choice-icon {
  background: #3b82f6;
  color: white;
}

.choice-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.choice-description {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Voice Section */
.voice-section {
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.voice-header {
  text-align: center;
  margin-bottom: 2rem;
}

.voice-header h2 {
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.voice-header p {
  color: #6b7280;
}

.voice-instructions {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
}

.voice-instructions h3 {
  font-size: 1rem;
  color: #0c4a6e;
  margin-bottom: 0.5rem;
}

.voice-instructions ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #075985;
}

.voice-instructions li {
  margin-bottom: 0.25rem;
}

.voice-instructions .emphasis {
  font-weight: 600;
  color: #dc2626;
}

.voice-controls {
  text-align: center;
  margin-top: 2rem;
}

.voice-back-button {
  margin-top: 2rem;
  color: #6b7280;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.875rem;
}

/* Error States */
.alert.alert-warning {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  color: #92400e;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.error-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.error-options button {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

/* Loading State */
.loading-indicator {
  text-align: center;
  padding: 2rem;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error Handling Styles */
.error-container {
  animation: slideDown 0.3s ease-out;
  margin-bottom: 1.5rem;
}

.error-container .alert {
  border-left: 4px solid currentColor;
  position: relative;
}

.error-container .alert-danger {
  border-left-color: #dc2626;
  background-color: #fef2f2;
  color: #991b1b;
}

.error-container .alert-warning {
  border-left-color: #f59e0b;
  background-color: #fffbeb;
  color: #92400e;
}

.error-container .alert-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.error-container .alert-heading svg {
  flex-shrink: 0;
}

.error-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.error-options .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.error-options .btn svg {
  width: 16px;
  height: 16px;
}

.processing-status {
  background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

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

/* Microphone Permission Helper */
.microphone-help {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.microphone-help h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #374151;
}

.microphone-help ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #6b7280;
}

.microphone-help li {
  margin-bottom: 0.25rem;
}

/* Recording Tips Modal Styles */
.recording-tips-content {
  max-height: 60vh;
  overflow-y: auto;
}

.recording-tips-content .tip-category {
  margin-bottom: 1.5rem;
}

.recording-tips-content .tip-category h6 {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.recording-tips-content ul {
  margin: 0;
  padding-left: 1.25rem;
}

.recording-tips-content li {
  margin-bottom: 0.25rem;
  color: #4b5563;
}

/* Recovery Actions */
.recovery-actions {
  padding: 1rem;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.recovery-actions h5 {
  font-size: 1rem;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.recovery-actions .action-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #fde68a;
}

.recovery-actions .action-item:last-child {
  border-bottom: none;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-muted {
  color: #6b7280;
}

.small {
  font-size: 0.875rem;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.me-2 {
  margin-right: 0.5rem;
}