/*
 * 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.
 */


/* sortable js classes*/
[data-sortable-target="list"] > li {
  transition: all 0.25s ease;
}
/* Ghost - subtelny drop zone */
.sortable-ghost {
  background: linear-gradient(90deg, 
     oklch(51.1% .262 276.966 / 0.03) 0%, 
     oklch(51.1% .262 276.966 / 0.08) 50%, 
     oklch(51.1% .262 276.966 / 0.03) 100%) !important;
  border: 1px solid oklch(51.1% .262 276.966 / 0.3) !important;
  border-radius: 8px !important;
  margin: 12px 0 !important;
  min-height: 80px !important;
  position: relative !important;
}
/* Chosen - element */
.sortable-chosen {
  background-color: oklch(51.1% .262 276.966 / 0.05) !important;
  border-left: 4px solid oklch(51.1% .262 276.966) !important;
  transform: scale(1.01) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}
/* Drag - element */
.sortable-drag {
  background-color: rgb(255, 255, 255) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
             0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  transform: rotate(1deg) scale(1.02) !important;
  border-radius: 8px !important;
  border: 1px solid oklch(51.1% .262 276.966 / 0.2) !important;
  z-index: 1000 !important;
  opacity: 0.95 !important;
}

.field_with_errors {
  display: contents; /* visually hidden form error wrapper */
}

/* Hide scrollbars until xl screens (PWA) while keeping scroll functionality */
@media (max-width: 1279px) {
  html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none; /* WebKit */
  }
}

/* PWA: Prevent text selection for app-like experience on mobile */
@media (max-width: 1279px) {
  * {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Standard */
    -webkit-touch-callout: none; /* Disable iOS text selection callout */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
  }

  /* Allow text selection in inputs and content areas */
  input, textarea, [contenteditable="true"], .selectable {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
  }
}
