/* ─── app.css — minimal CSS that Tailwind cannot handle ─── */

/* Three.js canvas always behind content */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Push all page content above the canvas */
body>* {
    position: relative;
    z-index: 1;
}

/* Webkit autofill override (Tailwind cannot target this pseudo-class) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 60px #140c28 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Button shimmer sweep */
@keyframes shimmer {

    0%,
    100% {
        left: -80%;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    60% {
        left: 140%;
        opacity: 0;
    }
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-15deg);
    animation: shimmer 3.5s ease-in-out infinite;
}

/* Card slide-up entrance */
@keyframes card-appear {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

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

.card-appear {
    animation: card-appear 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Tab active gradient glow */
.tab-active {
    background: linear-gradient(135deg, rgba(200, 80, 192, 0.45), rgba(65, 88, 208, 0.45));
    box-shadow: 0 2px 14px rgba(200, 80, 192, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Toast slide-in */
@keyframes toast-in {
    from {
        transform: translateX(110%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-anim {
    animation: toast-in 0.3s ease-out both;
}

/* Float animation for dashboard cards */
@keyframes float {

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

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

.float-anim {
    animation: float 5s ease-in-out infinite;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 80, 192, 0.35);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 80, 192, 0.6);
}

/* Dark native <select> dropdown — prevents white option panel on Windows/macOS */
select option {
    background-color: #150d2e;
    color: #ffffff;
}