/**
 * Unified Sidebar CSS
 * Consistent styling for sidebar across all pages
 */

/* Basic dropdown styling */
.dropdown-content {
    transition: none !important;
}

/* Ensure dropdown arrow transitions smoothly */
.dropdown-arrow {
    transition: transform 0.3s ease !important;
}

/* Ensure dropdown arrow rotates properly */
.dropdown-arrow.rotate-180 {
    transform: rotate(180deg) !important;
}

/* Fix for Safari and older browsers */
button:focus .dropdown-arrow {
    outline: none !important;
}

/* Ensure sidebar has correct dimensions */
.sidenav {
    width: 280px !important;
    min-width: 280px !important;
}

/* Ensure main content has correct margins */
.main-content {
    margin-left: 280px !important;
    width: calc(100% - 280px) !important;
}

/* Reduce bottom margins of the sidebar */
.sidenav .navbar-nav {
    margin-bottom: 1rem !important;
    padding-bottom: 2rem !important;
}

/* Fix icon alignment in sidebar */
.nav-link .flex-shrink-0 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Highlight active dropdown items */
.dropdown-content .nav-link.bg-emerald-50 {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: rgb(4, 120, 87) !important;
    font-weight: 600 !important;
}

/* Add hover effect to dropdown items */
.dropdown-content .nav-link:hover {
    background-color: rgba(229, 231, 235, 0.5) !important;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .sidenav {
        transform: translateX(-100%) !important;
    }

    body.g-sidenav-pinned .sidenav {
        transform: translateX(0) !important;
    }
}
