/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 2rem;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #121212;
}

h1, h2 {
  text-align: center;
  color: #e0e0e0;
  margin-bottom: 2rem;
}

/* New Visit Section Box */
.main-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
}

/* Subtext */
.subtext {
  color: #aaa;
  margin-bottom: 2rem;
}

/* Controls container - horizontal layout */
.controls-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Action Buttons */
.action-button {
  background-color: #1565c0;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.action-button:hover {
  background-color: #0d47a1;
}

/* Hide refresh button */
.refresh-button {
  display: none !important;
}

/* Submit Button */
.submit-button {
  background-color: #2e7d32;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background-color: #1b5e20;
}

/* New Visit Button */
.new-visit-button {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background-color: #1565c0;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Results Screen */
.results-container {
  max-width: 800px;
  margin: 0 auto;
}

.result-section {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.result-section h2 {
  margin-top: 0;
  color: #e0e0e0;
}

/* Content Areas */
.content-area {
  background: #2a2a2a;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  color: #e0e0e0;
}

/* Collapsible Headers */
.collapsible h3 {
  color: #ccc;
  margin: 1rem 0 0.5rem 0;
}

/* Canvas and Audio */
#photoCanvas {
  max-width: 100%;
  border-radius: 4px;
  margin-top: 1rem;
}

#audioPlayback {
  width: 100%;
  margin-top: 0.5rem;
}

/* File Info */
#filesInfo {
  background: #2a2a2a;
  padding: 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  color: #e0e0e0;
}

/* Previous Visits Section */
.previous-visits {
  max-width: 600px;
  margin: 1rem auto;
  background-color: #2a2a2a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
  color: #999;
}

/* Disabled State */
button:disabled {
  background-color: #555;
  cursor: not-allowed;
} 

/* Follow-up Container */
.followup-container {
  display: none;  /* Hidden by default */
  background: #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.followup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.followup-icon {
  background: #1565c0;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.followup-title {
  font-weight: 600;
  color: #e0e0e0;
  margin: 0;
}

.why-button {
  background-color: transparent;
  color: #1565c0;
  border: 1px solid #1565c0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.why-button:hover {
  background-color: rgba(21, 101, 192, 0.1);
}

.custom-followup {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.followup-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid #424242;
  background-color: #1e1e1e;
  color: #e0e0e0;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.followup-input:focus {
  outline: none;
  border-color: #1565c0;
}

.submit-followup {
  background-color: #1565c0;
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.submit-followup:hover {
  background-color: #0d47a1;
}

.followup-response {
  margin-top: 1rem;
  padding: 1rem;
  background: #1e1e1e;
  border-radius: 6px;
  border-left: 4px solid #1565c0;
}