@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Base Styles & Fonts */
body {
    font-family: 'Outfit', sans-serif;
    background-color: #0f172a; /* Tailwind slate-900 */
    color: #f8fafc; /* Tailwind slate-50 */
}

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #1e293b; /* slate-800 */
}
::-webkit-scrollbar-thumb {
    background: #475569; /* slate-600 */
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b; /* slate-500 */
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(30, 41, 59, 0.7); /* slate-800 with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card-hover:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* Scanning Line Animation */
@keyframes scan {
    0% {
        top: 0%;
        opacity: 0.1;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0.1;
    }
}

.scanner-area {
    position: relative;
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, transparent, #10b981, #3b82f6, #10b981, transparent);
    box-shadow: 0 0 15px #10b981, 0 0 5px #3b82f6;
    left: 0;
    z-index: 10;
    animation: scan 2.5s linear infinite;
    pointer-events: none;
}

.scanner-line-amber {
    background: linear-gradient(to right, transparent, #f59e0b, #ef4444, #f59e0b, transparent);
    box-shadow: 0 0 15px #f59e0b, 0 0 5px #ef4444;
    animation: scan 2.5s linear infinite;
}

/* Pulse Glow Effects */
@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 15px 5px rgba(16, 185, 129, 0.2);
    }
}

.pulse-target {
    animation: pulse-glow 2s infinite ease-in-out;
}

/* Shimmer Loading Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Speedometer Needle rotation helper */
.needle-transition {
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
