/* ===============================================
   NAV ITEM COMPONENT
   Navigation item with icon and label
   =============================================== */

.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px var(--space-sm) 4px var(--space-sm);  /* Consistent 8px horizontal padding */
    margin: 0 var(--space-xs) 2px var(--space-xs);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    font-size: var(--text-sm);
    position: relative;
    height: 32px;
    text-decoration: none;
    outline: none;
    border: none;
    background: none;
    width: calc(100% - 8px);  /* Account for margins */
    text-align: left;
    font-family: inherit;
}

.nav-item:hover {
    background-color: rgba(0, 0, 0, 0.075);  /* More visible */
    color: var(--text-secondary);
}

.nav-item.active {
    background-color: rgba(22, 163, 74, 0.1);  /* Slightly stronger */
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.nav-item.active .nav-icon {
    color: var(--color-primary);
}

.nav-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.25);  /* Green focus ring */
    z-index: 10;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    pointer-events: none;
    font-size: 18px;
    transition: none;
}

.nav-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--text-base);
    line-height: 1.4;
    pointer-events: none;
    min-width: 0;  /* Allows text-overflow to work */
}