/* =============================================================
   User Sidebar CSS — Exact translation from user-sidebar.tsx
   Source: components/users/user-sidebar.tsx
   ============================================================= */

/* Sidebar Container
   TSX: w-72 p-6 bg-[#fcf8f8] border-r border-[#eacdcd] */
.user-sidebar {
    width: 288px;
    padding: 24px 16px;
    background: #fcf8f8;
    border-right: 1px solid #eacdcd;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* User Profile Block
   Avatar: 48px, Name: #0F172A (600), ID: #EF4444 (13px, 500) */
.user-sidebar-header {
    margin-bottom: 24px;
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-mini {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background-size: cover;
    background-position: center;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.user-info-mini h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0F172A;
    margin: 0;
}

.user-info-mini p {
    font-size: 13px;
    font-weight: 500;
    color: #EF4444;
    margin: 0;
}

/* Navigation Items
   Height: 44px, Padding: 16px, Gap: 12px, Radius: 12px, Text: 14px/500 */
.user-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    background: transparent;
    transition: all 150ms ease;
    border-left: 4px solid transparent;
    /* Prepare for active state without layout shift */
}

.nav-item .material-symbols-outlined {
    width: 20px;
    height: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

/* Hover State
   Background: #F3F4F6, 150ms transition */
.nav-item:hover {
    background-color: #F3F4F6;
}

/* Active State
   EXACT Source: bg #FEE2E2, text/icon red, border-left 4px red, radius 12px
   Compensation: Using ::before for the bar to maintain 16px global content alignment */
.nav-item.active {
    background-color: #FEE2E2 !important;
    color: #EF4444 !important;
    position: relative;
    border-left: none !important;
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #EF4444;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.nav-item.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Logout Separation */
.user-sidebar-footer {
    margin-top: 32px;
}

.user-sidebar-footer .nav-item {
    color: #111827;
}

.user-sidebar-footer .nav-item:hover {
    background-color: #F3F4F6;
}


/* Mobile responsive */
@media (max-width: 1024px) {
    .user-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        z-index: 500;
    }

    .user-sidebar.open {
        transform: translateX(0);
    }
}