/* Custom styles for retro debug aesthetic */
body {
    background: linear-gradient(45deg, #0a0a0a 25%, transparent 25%),
                linear-gradient(-45deg, #0a0a0a 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #0a0a0a 75%),
                linear-gradient(-45deg, transparent 75%, #0a0a0a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Scanline effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Glitch effect for reality reset */
@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); }
}

.glitch {
    animation: glitch 0.3s infinite;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Retro button styling */
button {
    text-shadow: 0 0 5px currentColor;
    transition: all 0.2s ease;
}

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

/* Retro text glow */
h1, h3 {
    text-shadow: 0 0 10px currentColor;
}

/* Range slider styling */
input[type="range"] {
    background: transparent;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-track {
    background: #333;
    height: 4px;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: #00ff00;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: 2px solid #004400;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Terminal cursor blink */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

input[type="text"]::after {
    content: '█';
    animation: blink 1s infinite;
    color: #00ff00;
}

/* Panel styling */
.border {
    box-shadow: inset 0 0 0 1px currentColor, 0 0 10px rgba(0, 255, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    body::before {
        background-size: 10px 10px;
    }
}