@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc33;
}

/* Matrix-style glitch effects */
@keyframes glitch {
    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); }
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Scan line effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: scan 2s linear infinite;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.3;
}

/* CRT screen effect */
.window-content {
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
}

/* Terminal cursor */
.terminal-cursor {
    background-color: #00ff41;
    animation: flicker 1s infinite;
}

/* Selection styling */
::selection {
    background: #00ff41;
    color: #000;
}

/* Focus glow */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Disable text selection on draggable elements */
.cursor-grab, .cursor-grabbing {
    user-select: none;
}

/* Matrix green glow */
.text-matrix-green {
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.8);
}

/* Window animations */
.window-enter {
    animation: windowEnter 0.3s ease-out;
}

@keyframes windowEnter {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Noise texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 4px 4px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

button:hover {
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .min-w-96 {
        min-width: 90vw;
    }
    
    .taskbar button {
        padding: 8px;
        font-size: 14px;
    }
}