/* Custom Scrollbar for better UX */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}
.dark ::-webkit-scrollbar-thumb {
    background-color: #334155;
}

/* Hide scrollbar completely utility */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Phosphor Icons Rendering */
i[class^="ph-"], i[class*=" ph-"] {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Modal Open state classes */
.modal-active {
    display: flex !important;
}

.modal-show {
    opacity: 1 !important;
}

.modal-content-show {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

body.modal-open {
    overflow: hidden;
}

/* Hide number input arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.dark .glass-effect {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Filter Buttons */
.filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-btn.active {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Micro-animations */
.customer-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInCard 0.4s ease-out backwards;
}
.customer-card:active {
    transform: scale(0.97);
}
.customer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}
.dark .customer-card:hover {
    box-shadow: 0 12px 20px -3px rgb(0 0 0 / 0.4);
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======================================================== */
/* ULTRA-STABLE 2D LUXURY COCKPIT ANIMATIONS (ZERO JITTER)  */
/* ======================================================== */

@keyframes floatSmooth {
    0%, 100% {
        transform: translate3d(0, 0px, 0);
    }
    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes floatBadge1 {
    0%, 100% {
        transform: translate3d(0, 0px, 0);
    }
    50% {
        transform: translate3d(0, -6px, 0);
    }
}

@keyframes floatBadge2 {
    0%, 100% {
        transform: translate3d(0, 0px, 0);
    }
    50% {
        transform: translate3d(0, 6px, 0);
    }
}

@keyframes holographicGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.01);
    }
}

@keyframes popNumber {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    60% {
        transform: scale(1.04);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-cockpit-float {
    animation: floatSmooth 6s ease-in-out infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.animate-float-badge-1 {
    animation: floatBadge1 4.5s ease-in-out infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.animate-float-badge-2 {
    animation: floatBadge2 5.5s ease-in-out infinite;
    animation-delay: 1s;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* ======================================================== */
/* REAL DOCUMENT / CYBER LASER SCANNER                      */
/* ======================================================== */
.laser-scanner-beam {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 90px;
    pointer-events: none;
    animation: scannerSweep 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.laser-line {
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, transparent 0%, #10b981 15%, #6ee7b7 50%, #10b981 85%, transparent 100%);
    box-shadow: 0 0 12px #10b981, 0 0 25px #34d399, 0 0 35px #10b981;
}

.laser-glow {
    width: 100%;
    height: 70px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 100%);
}

@keyframes scannerSweep {
    0% {
        transform: translateY(-90px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(520px);
        opacity: 0;
    }
}


