/* Star Supplies & Maintenance - Custom styles */

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Number input - remove spinners by default but keep functional */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

/* Scanner overlay animation */
@keyframes scan-pulse {
  0%, 100% { opacity: 0.6; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
}
#scanner-line {
  animation: scan-pulse 1.5s ease-in-out infinite;
}

/* Scanner video styling */
#scanner-video video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
#scanner-video canvas { display: none; }

/* Click feedback */
button, a { -webkit-tap-highlight-color: transparent; }

/* Image upload dropzone */
.upload-dropzone {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 0.75rem;
  transition: all 0.15s ease;
  cursor: pointer;
}
.upload-dropzone:hover {
  border-color: #E94B2B;
  background: #fff7f3;
}
.upload-dropzone.dropzone-active {
  border-color: #E94B2B;
  background: #ffe9df;
  transform: scale(1.01);
}
.upload-dropzone .preview {
  max-height: 240px;
  object-fit: contain;
}
.progress-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #E94B2B, #ff7849);
  width: 0%;
  transition: width 0.2s ease;
}
