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

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

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

/* 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-stamp-photo {
  white-space: nowrap;
}

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

/* 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-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;
}

.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,
.year-selector,
.denomination-selector,
.color-selector,
.perforation-selector,
.text-search {
  margin-bottom: 15px;
}

.country-selector label,
.year-selector label,
.denomination-selector label,
.color-selector label,
.perforation-selector label,
.text-search label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

.form-select,
input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.year-input {
  margin-top: 15px;
}

.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

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

.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;
}

.results-count {
  font-weight: bold;
  color: #27ae60;
  margin-bottom: 20px;
}

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

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

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

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

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

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

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

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

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

.stamp-details .description {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  color: #666;
  font-style: italic;
}

@media (max-width: 768px) {
  .stamp-finder-wrapper {
    padding: 10px;
  }
  
  .finder-step {
    padding: 20px;
  }
  
  .stamp-details {
    grid-template-columns: 1fr;
  }
}