: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: 155 100% 37%;
    --primary-btn: 155 100% 32%;
    --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: 155 100% 45%;
    --primary-btn: 155 100% 35%;
    --secondary: 240 4% 16%;
    --ring: 240 4.9% 83.9%;
}

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;
}


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) */
}

/* ==========================================================================
   SweetAlert2 Dark/Light Mode Adaptations
   ========================================================================== */

/* Universal (variable-based) styling */
.swal2-popup {
    background: hsl(var(--muted)) !important;
    color: hsl(var(--text)) !important;
    border-radius: var(--radius) !important;
    font-family: inherit !important;
}

.swal2-title {
    color: hsl(var(--text)) !important;
}

.swal2-html-container,
.swal2-content {
    color: hsl(var(--text)) !important;
    opacity: 0.9;
}

.swal2-confirm.swal2-styled {
    background-color: hsl(var(--primary)) !important;
    color: #ffffff !important;
    border-radius: var(--radius) !important;
}

.swal2-confirm.swal2-styled:focus {
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.4) !important;
}

.swal2-cancel.swal2-styled {
    background-color: hsl(var(--secondary)) !important;
    color: hsl(var(--text)) !important;
    border-radius: var(--radius) !important;
}

.swal2-cancel.swal2-styled:focus {
    box-shadow: 0 0 0 3px hsl(var(--secondary) / 0.4) !important;
}

.swal2-close {
    color: hsl(var(--text)) !important;
    opacity: 0.7;
}

.swal2-close:hover {
    color: hsl(var(--primary)) !important;
    opacity: 1;
}

/* Dark-mode specific overrides */
.dark .swal2-popup {
    border: 1px solid hsl(var(--border)) !important;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.5) !important;
}

.dark .swal2-success-circular-line-left,
.dark .swal2-success-circular-line-right,
.dark .swal2-success-fix {
    background-color: hsl(var(--muted)) !important;
}

.dark .swal2-input,
.dark .swal2-textarea,
.dark .swal2-select {
    background-color: hsl(var(--background)) !important;
    border: 1px solid hsl(var(--border)) !important;
    color: hsl(var(--text)) !important;
}

.dark .swal2-input:focus,
.dark .swal2-textarea:focus,
.dark .swal2-select:focus {
    border-color: hsl(var(--primary)) !important;
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2) !important;
}

.dark .swal2-validation-message {
    background: hsl(var(--background)) !important;
    color: hsl(var(--warning)) !important;
}

/* Dark mode backdrop with blur effect */
.dark .swal2-container.swal2-backdrop-show {
    background: rgba(9, 9, 11, 0.8) !important;
    backdrop-filter: blur(4px);
}

