/* public/css/menu.css */
:root {
    --bg-dark: #0a0b10;
    --accent-cyan: #00f2ff;
    --text-gray: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--bg-dark);
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
}

/* Contenedor del menú con aceleración por hardware */
.sidebar-cyber {
    width: 100%;
    height: 100vh;
    background: #0a0b10;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    /* --- ANTI-LAG OPTIMIZATION --- */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.logo-text {
    color: white;
    font-weight: 800;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--accent-cyan);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.logo-text span {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.menu-category {
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: bold;
    margin: 20px 0 10px 10px;
    letter-spacing: 1.5px;
    opacity: 0.7;
}

.menu-list {
    list-style: none;
    padding: 0;
}

/* Enlaces del menú optimizados */
.menu-item a {
    text-decoration: none;
    color: var(--text-gray);
    display: block;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    border-left: 3px solid transparent; /* Evita redibujar bordes */
    
    /* --- ANTI-LAG OPTIMIZATION --- */
    /* Transiciones más rápidas y solo en propiedades específicas, no en 'all' */
    transition: background-color 0.2s ease, padding-left 0.2s ease, color 0.2s ease;
    will-change: background-color, padding-left;
}

.menu-item a:hover {
    background: rgba(0, 242, 255, 0.1); /* Efecto cristal más ligero */
    color: white;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 20px;
    text-shadow: 0 0 5px var(--accent-cyan);
}

.menu-item a.active {
    background: rgba(0, 242, 255, 0.15);
    color: white;
    border-left: 4px solid var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* Efecto de línea de escaneo para la bienvenida */
.scanline {
    width: 100%;
    height: 2px;
    background: rgba(0, 242, 255, 0.2);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.scanline::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
    animation: scan 3s infinite linear;
}

@keyframes scan {
    0% { left: -20px; } /* Inicia desde afuera para que no se corte feo */
    100% { left: 100%; }
}