/* static/css/sidebar.css */
/* Sidebar Active Link Styling */
.active-nav-link {
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
    position: relative;
    border-radius: 0.5rem;
}

.active-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #2563eb;
    border-radius: 0 2px 2px 0;
}

/* Underline effect for active accordion button */
.accordion-btn.active-accordion {
    border-bottom: 2px solid #3b82f6;
}

/* Hover effect for accordion buttons */
.accordion-btn:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

/* Active accordion button styling */
.accordion-btn.bg-blue-600 {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.accordion-btn.bg-blue-600:hover {
    background-color: #1d4ed8;
}

/* Smooth transitions for accordion content */
.accordion-content {
    transition: all 0.2s ease-in-out;
}

/* Sidebar link hover effects */
.sidebar-section a:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
    transition: all 0.2s ease;
    transform: translateX(2px);
}

/* Active link with optional underline */
.active-nav-link.underline-active {
    text-decoration: underline;
    text-decoration-color: #3b82f6;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Sidebar section spacing */
.sidebar-section {
    margin-bottom: 0.5rem;
}

/* Accordion icon rotation */
.accordion-icon {
    transition: transform 0.2s ease-in-out;
}

.rotate-180 {
    transform: rotate(180deg);
}