/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import "tailwindcss";

/* Drag and Drop Styles */
[data-stage] {
  transition: background-color 0.2s ease, border-color 0.2s ease;
  min-height: 200px;
}

[data-stage].bg-sky-100 {
  border: 2px dashed #3b82f6;
  background-color: #dbeafe !important;
}

[data-job-id] {
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

[data-job-id]:hover {
  transform: translateY(-1px);
}

[data-job-id]:active {
  transform: scale(1.02);
}

/* Prevent child elements from interfering with drag */
[data-job-id] a {
  pointer-events: auto;
}

[data-job-id] a[draggable="false"] {
  pointer-events: auto;
}

/* Ensure drop zones are always available */
[data-stage] {
  position: relative;
}

[data-stage]:empty::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

/* Custom scrollbar for horizontal overflow */
.overflow-x-auto::-webkit-scrollbar {
  height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
