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

 /* Glassmorphism modal backdrop */
.glass-backdrop {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Glass Effect Components */
.glass-effect {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-effect-light {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-effect-enhanced {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 12px rgba(31, 38, 135, 0.08);
}

.glass-link {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 4px rgba(31, 38, 135, 0.08);
  transition: all 0.3s ease;

  & .arrow-icon {
    color: #374151;
  }
}

.glass-link:hover {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.12);
  transform: translateY(-1px);
}

.glass-navbar {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Password toggle button styles */
.password-toggle-btn {
  transition: all 0.2s ease;
}

.password-toggle-btn:hover {
  transform: scale(1.05);
}

.password-toggle-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Ensure the input field has proper padding for the toggle button */
input[type="password"][data-password-toggle-target="input"],
input[type="text"][data-password-toggle-target="input"] {
  padding-right: 2.5rem;
}

/* Sortable ghost class styles */
.bg-primary-500\/10,
.bg-primary-500\/25 {
  background-color: rgba(59, 130, 246, 0.1);
  border: 2px dashed rgba(59, 130, 246, 0.3);
  opacity: 0.8;
}

/* Product image preview styles */
.product-image-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ensure images are visible in preview */
[data-product-images-target="preview"] img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Fix for image preview containers */
[data-product-images-target="preview"] .relative {
  overflow: hidden;
}

[data-product-images-target="preview"] .w-24.h-24 {
  min-width: 96px;
  min-height: 96px;
}

/* Ensure proper layering for image previews */
[data-product-images-target="preview"] .product-image-preview {
  position: relative !important;
  z-index: 1 !important;
}

/* Overlay styling for hover effects */
[data-product-images-target="preview"] .absolute.inset-0 {
  z-index: 2 !important;
  pointer-events: none;
}

[data-product-images-target="preview"] .absolute.inset-0 button {
  pointer-events: auto;
}

/* Sortable handle styling */
[data-product-images-target="preview"] .sortable-image-handle {
  z-index: 3 !important;
}

/* Mobile-specific ghost class styles */
@media (max-width: 768px) {
  .bg-primary-500\/10,
  .bg-primary-500\/25 {
    background-color: rgba(59, 130, 246, 0.25) !important;
    border: 3px dashed rgba(59, 130, 246, 0.6) !important;
    opacity: 0.9 !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4) !important;
  }
}
