/* Main Site Sidebar Styles */

/* Sidebar Active State */
#sidebar a.active {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1528 100%);
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(196, 30, 58, 0.3);
}

#sidebar a.active i {
    color: white !important;
}

/* Sidebar Hover Effect with Sliding Animation */
#sidebar a {
    position: relative;
    overflow: hidden;
}

#sidebar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 0;
}

#sidebar a:hover::before {
    left: 100%;
}

/* Ensure text and icons stay above the animation */
#sidebar a span,
#sidebar a i {
    position: relative;
    z-index: 1;
}

/* Specific hover colors for special menu items */
#sidebar a.hover\:bg-gradient-to-r.hover\:from-purple-500:hover {
    background: linear-gradient(to right, #a855f7, #9333ea) !important;
    color: white !important;
}

/* Custom Scrollbar for Sidebar */
#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#sidebar::-webkit-scrollbar-thumb {
    background: #c41e3a;
    border-radius: 3px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: #8b1528;
}

/* Fade-in Animation for Hero */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}
