/* ====== SIDEBAR FIX CODE====== */
.fi-sidebar-header {
    background-color: #0f1115 !important;
    position: relative;
}

.fi-sidebar-header:is(.dark *) {
    background-color: #0f1115 !important;
}

/* Center the logo absolutely */
.fi-sidebar-header .fi-logo {
    position: absolute;
    top: 15px;
    left: 40%;
    transform: translateX(-50%);
}

/* Prevent buttons from overlapping logo */
.fi-sidebar-header button {
    z-index: 20;
}

/* ====== SIDEBAR NAV ====== */
.fi-sidebar-nav {
    scrollbar-gutter: stable;
    background-color: #0f1115 !important;
}

/* Webkit scrollbar styling */
.fi-sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.fi-sidebar-nav::-webkit-scrollbar-track {
    background: #0f1115;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Firefox scrollbar */
.fi-sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) #0f1115;
}

/* ====== SIDEBAR BODY ====== */
.fi-sidebar {
    background: #0f1115;
    color: #e5e7eb;
}

/* ====== GROUP LABELS ====== */
.fi-sidebar-group-label {
    color: #14afa7;
    letter-spacing: .08em;
    font-weight: 600;
    font-size: .72rem;
}

/* ====== ITEM BUTTONS ====== */
.fi-sidebar-item-button {
    border-radius: 12px;
    padding: .625rem .625rem;
    gap: .75rem;
    color: #cfd3da;
    background: transparent !important;
}

/* Hover */
.fi-sidebar-item-button:hover,
.fi-sidebar-item-button:focus-visible {
    background: rgba(255, 255, 255, .05) !important;
    color: #14afa7;
}

/* ====== ACTIVE ITEM (pill) ====== */
.fi-sidebar-item-button.is-active,
.fi-sidebar-item-button[aria-current="page"],
.fi-sidebar-item-button.bg-gray-100,
.dark .fi-sidebar-item-button.dark\:bg-white\/5 {
    background: #1f2430 !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

/* ====== ITEM ICONS ====== */
.fi-sidebar-item-icon {
    color: currentColor !important;
    opacity: .95;
    width: 1.3rem;
    height: 1.3rem;
}

/* ====== ITEM LABELS ====== */
.fi-sidebar-item-label {
    color: currentColor !important;
    font-weight: 500;
}

/* ====== NAV BADGE (count) ====== */
.fi-sidebar .fi-badge {
    background: #14afa7 !important;
    color: #0f1115 !important;
    box-shadow: inset 0 0 0 1px rgba(20, 175, 167, .35) !important;
}
