/* ════════════════════════════════════════════════════════════════
   NAVBAR ICONS — premium line icons (top bar, side menu, bottom bar)
   One stroke style everywhere, soft blue states. Loaded after layout.css.
   ════════════════════════════════════════════════════════════════ */

.nv-ic {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* ── Top bar icon buttons ── */
#sidebar-toggle,
.top-bar-yt .premium-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: #475569;
    box-shadow: none;
    transform: none;
}

#sidebar-toggle:hover,
.top-bar-yt .premium-btn-icon:hover {
    background: #eff6ff;
    color: #2563eb !important;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

#sidebar-toggle:focus-visible,
.top-bar-yt .premium-btn-icon:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Bell while the notification panel is open */
.bell-wrapper:has(#notificationFlyout[style*="flex"]) #notif-bell {
    background: #2563eb;
    color: #fff !important;
}

/* Search button inside the search bar */
.yt-search-btn-premium .nv-ic {
    width: 18px;
    height: 18px;
}

/* Count badges: small pill with a white ring */
.top-bar-yt .premium-btn-icon .notification-badge-count {
    top: 4px !important;
    right: 3px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px;
    border: 0;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 18px;
    box-shadow: 0 0 0 2px #fff;
}

[dir="rtl"] .top-bar-yt .premium-btn-icon .notification-badge-count {
    right: auto !important;
    left: 3px !important;
}

/* Cart badge in brand blue (notifications stay red) */
#cartCountBadge {
    background: #2563eb;
}

/* Language switcher as a pill */
.top-bar-yt .nav-lang-select {
    border-radius: 999px !important;
    border-width: 1px !important;
    background-color: #fff !important;
    box-shadow: none !important;
}

/* Profile picture with a thin ring */
.top-bar-yt .nav-user-img {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e2e8f0;
}

/* ── Side menu ── */
.nav-link-yt {
    color: #334155;
}

.nav-icon-yt {
    color: #64748b;
    font-size: inherit;
}

.nav-icon-yt .nv-ic {
    width: 20px;
    height: 20px;
}

.nav-link-yt:hover {
    background: #f1f5f9 !important;
    border-color: transparent !important;
    box-shadow: none;
    transform: none;
}

.nav-link-yt:hover .nav-icon-yt {
    transform: none;
}

/* Selected page: soft blue */
.nav-link-yt.active {
    background: #eff6ff;
    color: #2563eb !important;
    border-color: transparent;
    box-shadow: none;
}

.nav-link-yt.active:hover {
    background: #eff6ff !important;
}

.nav-link-yt.active .nav-icon-yt {
    color: #2563eb;
}

.nav-link-yt.active .nv-ic {
    stroke-width: 2;
}

.sidebar-close-btn .nv-ic {
    width: 18px;
    height: 18px;
}

@media (min-width: 769px) {
    .layout-collapsed .nav-icon-yt .nv-ic {
        width: 22px;
        height: 22px;
    }

    .layout-collapsed .nav-link-yt:hover {
        background: #f1f5f9 !important;
        border-color: transparent !important;
        box-shadow: none;
        transform: none;
    }

    .layout-collapsed .nav-link-yt.active {
        background: #eff6ff !important;
    }
}

/* ── Phone ── */
@media (max-width: 768px) {
    .top-bar-yt .premium-btn-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
    }

    .top-bar-yt .premium-btn-icon .nv-ic {
        width: 19px;
        height: 19px;
    }

    .top-bar-yt .premium-btn-icon .notification-badge-count {
        top: 1px !important;
        right: 0 !important;
        min-width: 16px !important;
        height: 16px !important;
        padding: 0 4px !important;
        font-size: 9.5px !important;
        line-height: 16px !important;
    }

    [dir="rtl"] .top-bar-yt .premium-btn-icon .notification-badge-count {
        right: auto !important;
        left: 0 !important;
    }

    .sidebar-open .nav-icon-yt .nv-ic {
        width: 21px;
        height: 21px;
    }
}

/* ── Bottom bar (phone) ── */
.mobile-bottom-nav {
    border-top: 1px solid #eef2f7;
}

.mobile-bottom-nav .nav-item {
    position: relative;
    align-self: stretch;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 600;
}

.mobile-bottom-nav .nav-item .nv-ic {
    width: 23px;
    height: 23px;
}

.mobile-bottom-nav .nav-item.active {
    color: #2563eb;
}

.mobile-bottom-nav .nav-item.active .nv-ic {
    stroke-width: 2;
}

.mobile-bottom-nav .nav-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 28px;
    height: 3px;
    margin-left: -14px;
    border-radius: 0 0 3px 3px;
    background: #2563eb;
}

.mobile-bottom-nav .center-icon {
    width: 52px;
    height: 52px;
    border: 0;
    box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(37, 99, 235, 0.28);
}

.mobile-bottom-nav .center-icon .nv-ic {
    width: 22px;
    height: 22px;
}
