@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    cursor: crosshair;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

@media print {
    html {
        display: none !important;
    }
}

/* Animations from App.jsx */
@keyframes scan {
    0%, 100% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
}
@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px #66e6ce, 0 0 20px #66e6ce; }
    50% { text-shadow: 0 0 20px #66e6ce, 0 0 40px #66e6ce; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
@keyframes glitch {
    0%, 100% { clip-path: inset(0); }
    20% { clip-path: inset(20% 0 60% 0); }
    40% { clip-path: inset(50% 0 10% 0); }
    60% { clip-path: inset(10% 0 40% 0); }
    80% { clip-path: inset(40% 0 20% 0); }
}
@keyframes matrix {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.15; }
}
@keyframes loading {
    0% { width: 0%; transform: translateX(-100%); }
    50% { width: 100%; transform: translateX(0); }
    100% { width: 0%; transform: translateX(100%); }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Classes */
.scan-line {
    animation: scan 3s linear infinite;
    height: 2px;
    background: linear-gradient(90deg, transparent, #66e6ce, transparent);
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 5;
}
.glow-text {
    animation: glow 2s ease-in-out infinite;
    font-weight: 700;
}
.float {
    animation: float 3s ease-in-out infinite;
}
.glitch {
    animation: glitch 4s infinite;
}
.matrix-bg {
    animation: matrix 4s ease-in-out infinite;
}
.neon-border {
    border: 2px solid #66e6ce;
    box-shadow: 0 0 20px rgba(102, 230, 206, 0.3), inset 0 0 20px rgba(102, 230, 206, 0.1);
    transition: all 0.3s ease;
}
.neon-border:hover {
    box-shadow: 0 0 40px rgba(102, 230, 206, 0.6), inset 0 0 30px rgba(102, 230, 206, 0.2);
    transform: translateY(-2px);
}
.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

/* Utility for hiding/showing */
.hidden {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000; 
}
::-webkit-scrollbar-thumb {
    background: #66e6ce; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4cd3b9; 
}

/* Background Grid */
.bg-grid {
    background-image: linear-gradient(rgba(102,230,206,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102,230,206,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}
