/* Sidebar Navigation Styles */
.sidebar-nav {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 4px 2px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.sidebar-nav:hover {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.nav-item {
    width: 28px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #666;
    position: relative;
}

.nav-item:hover {
    background: #00CE00;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 206, 0, 0.3);
}

.nav-item.active {
    background: #00CE00;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 206, 0, 0.3);
}

.nav-item svg {
    width: 14px;
    height: 14px;
    transition: all 0.3s ease;
}

.nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 6px 0;
    border-radius: 1px;
}

.scroll-to-top {
    margin-top: 4px;
}

.scroll-to-top:hover {
    background: #303030;
    color: white;
    box-shadow: 0 4px 15px rgba(48, 48, 48, 0.3);
}

/* Tooltip */
.nav-item::before {
    content: attr(data-tooltip-text);
    position: absolute;
    left: 45px;
    background: #303030;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-right-color: #303030;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.nav-item:hover::before,
.nav-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
}

.nav-item:hover::before {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .sidebar-nav {
        left: 15px;
    }
}

@media (max-width: 992px) {
    .sidebar-nav {
        left: 10px;
        padding: 8px 3px;
    }
    
    .nav-item {
        width: 28px;
        height: 28px;
    }
    
    .nav-item svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        display: none;
    }
}

/* Animación de entrada */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px) translateY(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
}

.sidebar-nav {
    animation: slideInLeft 0.6s ease-out;
}

/* Indicador de progreso */
.nav-item.progress-indicator {
    position: relative;
    overflow: hidden;
}

.nav-item.progress-indicator::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #00CE00;
    transition: width 0.3s ease;
    border-radius: 0 0 12px 12px;
} 