/* Sidebar Styles */
#sidebar {
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.dark #sidebar {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

/* Sidebar Items */
.sidebar-item {
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-item:hover {
    transform: scale(1.05);
}

.sidebar-item:active {
    transform: scale(0.95);
}

/* Logo Animation */
#sidebar .w-10.h-10.rounded-full {
    transition: all 0.3s ease;
}

#sidebar .w-10.h-10.rounded-full:hover {
    transform: rotate(360deg);
}

/* Notification Badge */
.notification-badge {
    animation: pulse 2s infinite;
    font-size: 10px;
    font-weight: bold;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Tooltip */
#sidebar-tooltip {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Active Item Indicator */
.sidebar-item.bg-primary-700::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #9333ea;
    border-radius: 0 2px 2px 0;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        width: 60px;
    }
    
    .sidebar-item {
        width: 48px;
        height: 48px;
    }
    
    #sidebar .w-10.h-10 {
        width: 40px;
        height: 40px;
    }
}

/* Hover Effects */
.sidebar-item:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(45deg, #9333ea, #c084fc);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.6;
    pointer-events: none;
}

/* Dark mode adjustments */
.dark .sidebar-item:hover::after {
    background: linear-gradient(45deg, #a855f7, #d8b4fe);
}

/* Accessibility */
.sidebar-item:focus {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
}

.sidebar-item:focus-visible {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
}

/* Loading state */
.sidebar-loading {
    position: relative;
    overflow: hidden;
}

.sidebar-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}