* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: 'Share Tech Mono', 'VT323', monospace;
    overflow-x: hidden;
}

/* CRT Effects */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.flicker {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 255, 0, 0.02);
    animation: flicker 0.15s infinite;
    pointer-events: none;
}

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

/* Glitch text effect */
.glitch-text {
    text-shadow: 
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        0 0 30px #00ff00;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { 
        text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    }
    92% { 
        text-shadow: -2px 0 #ff0000, 2px 0 #00ffff;
        transform: translateX(-2px);
    }
    94% { 
        text-shadow: 2px 0 #ff0000, -2px 0 #00ffff;
        transform: translateX(2px);
    }
}

/* Panel styling */
.panel {
    box-shadow: 
        0 0 10px rgba(0, 255, 0, 0.3),
        inset 0 0 30px rgba(0, 255, 0, 0.05);
    backdrop-filter: blur(2px);
    transition: box-shadow 0.3s ease;
}

.panel:hover {
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.5),
        inset 0 0 30px rgba(0, 255, 0, 0.08);
}

.panel-header {
    background: linear-gradient(90deg, rgba(0, 255, 0, 0.1), transparent);
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    animation: typing 0.5s steps(40, end);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Blink animation */
.animate-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Green filter for images */
.filter-green {
    filter: sepia(100%) saturate(300%) brightness(70%) hue-rotate(80deg);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 4px;
}

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

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 2px;
}

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

/* Input styling */
input::placeholder {
    color: #006600;
}

input:focus {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

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

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

button:active {
    transform: scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .panel {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
}

/* Additional glow effects */
.text-green-400 {
    text-shadow: 0 0 5px rgba(74, 222, 128, 0.5);
}

.text-green-500 {
    text-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
}

.border-green-500 {
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.3);
}

/* Pulse animation for indicators */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, rgba(0, 50, 0, 0.3) 0%, transparent 70%),
        linear-gradient(rgba(0, 20, 0, 0.8), rgba(0, 10, 0, 0.9));
    pointer-events: none;
    z-index: -1;
}