/* Pixelix - Global Styles */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Upload zone */
.upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: #3b6dff;
  background: #f0f5ff;
}
.upload-zone.dragover {
  transform: scale(1.01);
}

/* Preview image */
.preview-img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Slider custom */
input[type="range"] {
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b6dff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(59,109,255,0.3);
}

/* Progress bar */
.progress-bar {
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b6dff, #6490ff);
  border-radius: 2px;
  transition: width 0.3s;
  width: 0%;
}

/* Button states */
.btn-primary {
  background: #3b6dff;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #1e4bff; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: #93b4ff;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: white;
  color: #374151;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: #3b6dff; color: #3b6dff; }

/* Stats badge */
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}
.stat-badge.green { background: #d1fae5; color: #065f46; }
.stat-badge.blue { background: #dbeafe; color: #1e40af; }
.stat-badge.amber { background: #fef3c7; color: #92400e; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Batch file list */
.file-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
}
.file-list-item .file-name {
  flex: 1;
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-list-item .file-size {
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .preview-img { max-height: 250px; }
  h1 { font-size: 1.75rem !important; }
}
