/* Custom Tailwind Imports via CDN already handle base/components/utilities */

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-container {
    background: rgba(15, 23, 42, 0.6);
    /* km-slate with opacity */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Funnel Transitions */
.step-enter {
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-exit {
    animation: slideOutLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(-40px) scale(0.98);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove Spinner Arrows for Number Inputs */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    /* Firefox */
}

/* Custom Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    margin: 10px 0;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #06b6d4;
    /* km-cyan */
    cursor: pointer;
    margin-top: -9px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5), inset 0 0 0 4px #0f172a;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type=range]::-webkit-slider-thumb:hover,
input[type=range]::-webkit-slider-thumb:active {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.6), inset 0 0 0 4px #0f172a;
    background: #2563eb;
    /* km-blue */
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

input[type=range]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #06b6d4;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5), inset 0 0 0 4px #0f172a;
    border: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type=range]::-moz-range-thumb:hover,
input[type=range]::-moz-range-thumb:active {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.6), inset 0 0 0 4px #0f172a;
    background: #2563eb;
}

/* Checkboxes */
.custom-checkbox {
    appearance: none;
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background-color: #2563eb;
    /* km-blue */
    border-color: #06b6d4;
    /* km-cyan */
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.custom-checkbox:checked::after {
    content: "✓";
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
}

/* Loading animations */
.loader-dot {
    animation: loader 1.4s infinite ease-in-out both;
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loader {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.2;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Buttons for Funnel */
.km-btn {
    display: inline-block;
    width: 100%;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    font-size: 18px;
    font-weight: 500;
    color: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.km-btn:hover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.km-btn.selected {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.15);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    color: white;
}