/* === Nav Header === */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-brand-icon {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    display: block;
}

.nav-brand-text {
    font-size: 1.125rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 0.375rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-toggle:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

/* === Nav Body === */
.nav-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    overflow-y: auto;
}

.nav-section {
    padding: 0 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* === Nav Items === */
.nav-section ::deep .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    white-space: nowrap;
    box-sizing: border-box;
}

.nav-section ::deep .nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.nav-section ::deep .nav-item.active {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.nav-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

/* === Nav Footer === */
.nav-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.5rem 0.75rem;
}

.nav-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.nav-user-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.875rem;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.nav-logout-btn:hover {
    background: var(--status-danger-bg);
    color: var(--status-danger);
    border-color: rgba(239, 68, 68, 0.15);
}

.nav-version {
    text-align: center;
    font-size: 0.6875rem;
    color: var(--text-muted);
    padding-top: 0.5rem;
    opacity: 0.6;
}

/* === Mobile === */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0.75rem;
        left: 0.75rem;
        z-index: 200;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        width: 2.5rem;
        height: 2.5rem;
    }

    .nav-body {
        display: none;
    }

    .nav-body.open {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: linear-gradient(180deg, #0f1629 0%, #1a0a2e 100%);
        padding-top: 4.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }

    .nav-header {
        padding-left: 3.75rem;
        padding-right: 0.75rem;
    }
}

@media (min-width: 769px) {
    .nav-body {
        height: calc(100vh - 4.5rem);
    }
}
