/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Custom scrollbar styles for demo preset selector */
.scrollbar-thin {
  scrollbar-width: thin;
}

.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background-color: #f3f4f6;
  border-radius: 9999px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 9999px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}



/* Smooth hover transitions for photos */
.photo-hover {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.photo-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Photo cursor and viewer styles */
.photo-clickable {
  cursor: pointer;
}

.photo-clickable:hover {
  cursor: pointer;
}

/* Carousel scrollbar hiding */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}



/* Fullscreen photo viewer modal */
.photo-viewer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photo-viewer-modal.active {
  opacity: 1;
  visibility: visible;
}

.photo-viewer-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-viewer-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.photo-viewer-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  z-index: 10000;
}

.photo-viewer-close:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

@media (max-width: 640px) {
  .photo-viewer-close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* Before/After Comparison Styles */
.before-after-container {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.before-after-container.dragging {
  cursor: ew-resize;
}

.before-after-container .aspect-square {
  aspect-ratio: 1 / 1;
}

/* Smooth transitions for the slider */
.before-after-container:not(.dragging) [data-before-after-slider-target="afterContainer"],
.before-after-container:not(.dragging) [data-before-after-slider-target="handle"] {
  transition: all 0.3s ease;
}

/* Handle styling */
.before-after-container [data-before-after-slider-target="handle"] {
  pointer-events: none;
  z-index: 20;
}

.before-after-container [data-before-after-slider-target="handle"] > div:last-child {
  pointer-events: auto;
  z-index: 21;
}

.before-after-container [data-before-after-slider-target="overlay"] {
  z-index: 10;
}

/* Hover effects */
.before-after-container:hover [data-before-after-slider-target="handle"] > div:last-child {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .before-after-container [data-before-after-slider-target="handle"] > div:last-child {
    width: 32px;
    height: 32px;
  }

  .before-after-container [data-before-after-slider-target="handle"] svg {
    width: 14px;
    height: 14px;
  }
}
