/* Custom CSS for NeoVid Adaptive Web UI */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ensure canvas overlays are positioned correctly */
canvas {
    pointer-events: none;
}

/* Image loading placeholder */
img[src=""] {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Focus states for accessibility */
button:focus,
select:focus,
input:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Transition for all interactive elements */
button,
a,
select {
    transition: all 0.2s ease-in-out;
}
