:root {
    --background: 240 4.8% 95.9%;
    --text: 240 10% 3.9%;
    --warning: 0 72% 51%;
    --success: 142 71% 45%;
    --success-secondary: 160 84% 39%;
    --muted: 0 0% 100%;
    --border: 240 5.9% 90%;
    --primary: 235 51% 31%;
    --primary-btn: 235 45% 50%;
    --secondary: 240 6% 90%;
    --ring: 240 10% 3.9%;
    --radius: 0.5rem;
}

.dark {
    --background: 240 10% 3.9%;
    --text: 0 0% 98%;
    --warning: 0 84% 60%;
    --success: 142 69% 58%;
    --success-secondary: 161 94% 30%;
    --muted: 270 4% 10%;
    --border: 240 3.7% 15.9%;
    --primary: 235 91% 72%;
    --primary-btn: 235 81% 70%;
    --secondary: 240 4% 16%;
    --ring: 240 4.9% 83.9%;
}

html:not(.dark) .img-dark {
    display: none;
}

html.dark .img-light {
    display: none;
}


input {
    &:-webkit-autofill, &:-webkit-autofill:hover

{
    -webkit-text-fill-color: hsl(var(--text));
    -webkit-box-shadow: 0 0 0 40rem hsl(var(--muted)) inset, 0 0 0 1px hsl(var(--muted)) inset;
}

&:-webkit-autofill:focus {
    -webkit-text-fill-color: hsl(var(--text));
    -webkit-box-shadow: 0 0 0 40rem hsl(var(--muted)) inset, 0 0 0 1px hsl(var(--muted)) inset;
}

}

::selection {
    background: #8884;
}

::-webkit-scrollbar {
    width: .34rem;
    height: .5rem
}

::-webkit-scrollbar-track {
    background-color: hsl(var(--muted)) !important
}

::-webkit-scrollbar-thumb {
    border-radius: calc(var(--radius) - 4px);
    background-color: hsl(var(--secondary)) !important
}


html {
    scrollbar-color: hsl(215.4 16.3% 46.9% / .3)
}

    html.dark {
        scrollbar-color: hsl(215.4 16.3% 56.9% / .3)
    }


::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 2147483646;
}

.dark::view-transition-old(root) {
    z-index: 2147483646;
}

.dark::view-transition-new(root) {
    z-index: 1;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input[type="number"] {
    -webkit-appearance: none;
    margin: 0;
    -moz-appearance: textfield !important;
}


.scroll-lock {
    overflow-y: scroll;
    position: fixed;
    width: 100%;
    top: var(--window-scroll-top);
}

:root {
    overflow-y: scroll;
}

* {
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--text));
}

@media only screen and (min-width: 1024px) {

    .border-gradient::before {
        background: radial-gradient( 300px circle at var(--x) var(--y), hsl(var(--primary)) 0, transparent 100% );
    }
}


.swiper-button-prev,
.swiper-button-next {
    background-color: #09090b;
    color: #ffffff;
}


.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
}

.swiper .swiper-pagination-bullet,
.swiper .swiper-pagination-bullet-active {
    background-color: black; /* bg-black */
    transition: all 0.3s; /* transition-all duration-300 */
    height: 0.375rem; /* h-1.5 (1.5 * 0.25rem) */
    width: 0.375rem; /* w-1.5 (1.5 * 0.25rem) */
}

.swiper .swiper-pagination-bullet-active {
    width: 1.25rem; /* w-5 (5 * 0.25rem) */
    border-radius: 0.5rem; /* rounded-lg */
    background-color: hsl(var(--primary)); /* bg-primary (replace #primary with the actual color value) */
}

.flex-auto {
    flex: auto;
}

button:disabled {
    opacity: .7
}

    button:disabled .spinner-icon {
        display: inline-block;
    }

    button:disabled > i:not(spinner-icon) {
        display: none;
    }

/* Show the spinner when the button is not disabled (in case of loading state) */
button:not(:disabled) .spinner-icon {
    display: none;
}

button:not(:disabled) .animate-spin {
    display: none !important;
}

.opacity-75 {
    opacity: .5;
}

.opacity-50 {
    opacity: .5;
}

.opacity-25 {
    opacity: .25;
}

.w-12 {
    width: 3rem;
}

.w-13 {
    width: 3.25rem;
}

.hover\:bg-primary\/10:hover {
    background-color: hsl(var(--primary) / 0.1) !important;
}
