@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
    .text-shadow-neon {
        text-shadow: 0 0 10px rgba(84, 213, 146, 0.5), 0 0 20px rgba(84, 213, 146, 0.3);
    }
    
    .shadow-neon-green {
        box-shadow: 0 0 15px rgba(84, 213, 146, 0.5);
    }
    
    .shadow-neon-blue {
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    }
    
    .shadow-neon-yellow {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }

    .glass-panel {
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .clip-path-slant {
        clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    }
    
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }
    
    .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Animation Keyframes */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

@keyframes ecg-scan {
    0% { left: -10%; }
    100% { left: 110%; }
}

.animate-ecg-scan {
    animation: ecg-scan 2s linear infinite;
}

@keyframes fill-bar {
    0% { width: 0%; }
    100% { width: 30%; } /* Critical level */
}

.animate-fill-bar {
    animation: fill-bar 2s ease-out forwards;
}

/* Hazard Stripes for CA box */
.hazard-stripes {
    background: repeating-linear-gradient(
        45deg,
        #000,
        #000 10px,
        #FFD700 10px,
        #FFD700 20px
    );
}

/* Defibrillator Button Shine */
.btn-shock::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: 0.5s;
}

.btn-shock:hover::after {
    left: 100%;
}

/* Terminal Feed Items */
.feed-item {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Base Styling */
html {
    scroll-behavior: smooth;
}

body {
    cursor: crosshair;
}

/* Perspective container for 3D effects */
.perspective-1000 {
    perspective: 1000px;
}

/* Selection color */
::selection {
    background: #54D592;
    color: #000;
}

/* Electric vibration */
@keyframes vibrate {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.animate-vibrate {
    animation: vibrate 0.3s linear infinite;
}
