/* Upload Page */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-secondary);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.upload-area.has-file {
  border-color: var(--success);
  border-style: solid;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.upload-area h3 {
  margin-bottom: 0.5rem;
}

.upload-area p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.file-info {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.file-info .filename {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.file-info .filesize {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Model Analysis Result */
.analysis-result {
  margin-top: 2rem;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.analysis-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.analysis-item .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.analysis-item .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Price Comparison */
.price-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.price-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.price-option:hover,
.price-option.selected {
  border-color: var(--accent);
}

.price-option .material-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.price-option .material-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.price-option .material-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.upload-progress {
  margin-top: 1rem;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s;
  width: 0%;
}
