/*
 * 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 styles */
.sortable-ghost {
  opacity: 1 !important;
  background: transparent !important;
  position: relative;
  min-height: 20px; /* Ensure ghost has minimum height for page sections */
}

/* Hide all content in ghost placeholder */
.sortable-ghost > * {
  visibility: hidden !important;
}

/* Show empty bordered box as placeholder */
.sortable-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px dashed #3b82f6;
  background: #eff6ff;
  border-radius: 0.75rem;
  visibility: visible !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 10;
}

.sortable-drag {
  opacity: 1;
  cursor: grabbing !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Hide hover controls during drag */
.sortable-drag .group-hover\/array-item\:opacity-100 {
  opacity: 0 !important;
}

/* Hide form content during drag - only show header (for inspector) */
.sortable-ghost [data-inspector-array-card-target="content"],
.sortable-drag [data-inspector-array-card-target="content"] {
  display: none !important;
}

/* Analytics Progress Bar Shimmer Animation */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-shimmer {
  animation: shimmer 3s infinite;
}

/* Chat Widget Custom Animations */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradientShift {
  animation: gradientShift 4s ease infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slideInFromRight {
  animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
