/* =========================================================
   Frontend Specific Custom Styles
   (Used alongside Tailwind CSS utility classes)
   ========================================================= */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Custom Selection */
::selection {
    background-color: #f97316;
    /* Tailwind orange-500 */
    color: white;
}

::-moz-selection {
    background-color: #f97316;
    color: white;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    /* Tailwind slate-100 */
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    /* Tailwind slate-300 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
    /* Tailwind slate-400 */
}

/* Hide scrollbar for elements with .no-scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Utility: Backdrop Blur Fixes */
.backdrop-blur-md {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.backdrop-blur-xl {
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

/* Custom Base Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Add custom animations to vue transition states */
.fade-slide-enter-active,
.fade-slide-leave-active {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-slide-enter,
.fade-slide-leave-to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.bounce-up-enter-active {
    animation: bounce-up-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bounce-up-leave-active {
    animation: bounce-up-in 0.4s reverse ease-in;
}

@keyframes bounce-up-in {
    0% {
        transform: translateY(40px) scale(0.9);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Range input standardizations */
input[type=range]::-webkit-slider-thumb {
    pointer-events: all;
    background: #ea580c;
}

input[type=range]::-moz-range-thumb {
    pointer-events: all;
    background: #ea580c;
}