.coin-finder-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.coin-finder h1 {
  text-align: center;
  color: #333;
  margin-bottom: 10px;
}

.coin-finder-intro {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.finder-step {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.finder-step h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.step-content {
  margin-bottom: 20px;
}

.country-selector,
.era-selector,
.shape-selector,
.size-selector,
.symbol-selector,
.text-search,
.year-input,
.mint-selector {
  margin-bottom: 15px;
}

.country-selector label,
.era-selector label,
.shape-selector label,
.size-selector label,
.symbol-selector label,
.text-search label,
.year-input label,
.mint-selector label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

.form-select,
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.shape-options,
.size-options {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.shape-option,
.size-option {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.shape-option:hover,
.size-option:hover {
  border-color: #3498db;
}

.shape-option input,
.size-option input {
  margin-right: 8px;
}

.shape-option input:checked + span,
.size-option input:checked + span {
  font-weight: bold;
}

.symbol-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.symbol-options label {
  display: flex;
  align-items: center;
  padding: 8px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-weight: normal;
}

.symbol-options input {
  margin-right: 8px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-right: 10px;
}

.btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-primary:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

.btn-success {
  background-color: #27ae60;
  color: white;
}

.btn-success:hover {
  background-color: #229954;
}

.finder-results {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 30px;
  margin-top: 20px;
}

.finder-results h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  border-bottom: 2px solid #27ae60;
  padding-bottom: 10px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 18px;
}

.error {
  text-align: center;
  padding: 40px;
  color: #e74c3c;
  font-size: 16px;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #7f8c8d;
  font-size: 16px;
}

.coin-results {
  display: grid;
  gap: 20px;
}

.coin-result {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.coin-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.coin-result h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2c3e50;
}

.coin-result h3 a {
  color: #3498db;
  text-decoration: none;
}

.coin-result h3 a:hover {
  text-decoration: underline;
}

.coin-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.coin-details p {
  margin: 5px 0;
  color: #555;
}

.coin-details strong {
  color: #333;
}

.estimated-value {
  color: #27ae60 !important;
  font-size: 1.1em;
}

/* Photo preview */
.photo-preview {
  margin: 20px 0;
  text-align: center;
}

.photo-preview img {
  max-width: 300px;
  max-height: 300px;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* AI Photo Section */
.ai-photo-section {
  background: #f0f8ff;
  border: 2px solid #3498db;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
}

.ai-photo-section h2 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 10px;
}

.ai-photo-section p {
  color: #666;
  margin-bottom: 20px;
}

.photo-upload-container {
  display: flex;
  gap: 15px;
  align-items: center;
}

.photo-upload-container input[type="file"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#analyze-coin-photo {
  white-space: nowrap;
}

#analyze-coin-photo:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-results {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 5px;
  border: 1px solid #dee2e6;
}

.ai-analysis-result {
  padding: 15px;
}

.ai-analysis-result h4 {
  color: #27ae60;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.analysis-body {
  line-height: 1.8;
  color: #333;
}

.analysis-body h1,
.analysis-body h2,
.analysis-body h3,
.analysis-body h4,
.analysis-body h5 {
  color: #2c3e50;
  margin-top: 20px;
  margin-bottom: 10px;
}

.analysis-body p {
  margin: 10px 0;
}

.analysis-body strong {
  color: #2c3e50;
}

.divider {
  text-align: center;
  margin: 40px 0;
  position: relative;
}

.divider span {
  background: white;
  padding: 0 20px;
  position: relative;
  color: #95a5a6;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #dee2e6;
  z-index: -1;
}

.alert {
  padding: 12px 20px;
  border-radius: 4px;
  margin: 10px 0;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
  .coin-finder-wrapper {
    padding: 10px;
  }
  
  .finder-step {
    padding: 20px;
  }
  
  .shape-options,
  .size-options {
    flex-direction: column;
  }
  
  .coin-details {
    grid-template-columns: 1fr;
  }
}