/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Smooth scrolling for the image strip */
#image-strip-container {
    scroll-behavior: smooth;
}

/* Style for the image thumbnails */
#image-strip-container .flex-shrink-0 {
    transition: transform 0.2s ease-in-out;
}

#image-strip-container .flex-shrink-0:hover {
    transform: scale(1.05);
}

/* Style for the remove button */
#image-strip-container button[type="button"] {
    transition: all 0.2s ease-in-out;
}

#image-strip-container button[type="button"]:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Style for the main preview */
#main-preview {
    transition: opacity 0.3s ease-in-out;
}

/* Loading state */
.image-loading {
    position: relative;
    background-color: #f3f4f6;
    overflow: hidden;
}

.image-loading::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}
