﻿/* === Adjust translucency here === */
:root {
    /* 0.00 = fully transparent, 1.00 = fully opaque */
    --pba-sidenav-surface-alpha: 0.62;
    --pba-sheet-surface-alpha: 0.72;
    --pba-nav-overlay-alpha: 0.35;
}

/* Center “More” button — compact circular */
.pba-tab-center-btn {
    width: 40px;
    height: 40px;
    margin-left: 5px;
    margin-right: 5px;
    transform: translateY(-49px);
    border-radius: 50%;
    padding: 0;
    display: grid;
    place-items: center;
    background: rgba(10, 132, 255, 0.14);
    border: 1px solid rgba(10, 132, 255, 0.22);
    box-shadow: var(--pba-shadow-subtle);
    flex-shrink: 0; /* critical: never steal width */
}

.pba-tab-more-fab {
    position: absolute;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom) - 30px);
    width: 35px;
    height: 35px;
    transform: translateX(-50%) translateY(-76px);
    border-radius: 50%;
    padding: 0;
    display: grid;
    place-items: center;
    background: rgba(10, 132, 255, 0.16);
    border: 1px solid rgba(10, 132, 255, 0.24);
    box-shadow: var(--pba-shadow-subtle);
    z-index: 2;
}

    .pba-tab-more-fab i {
        font-size: 1rem;
        line-height: 1;
    }

    .pba-tab-more-fab.active {
        background: rgba(10, 132, 255, 0.28);
        border-color: rgba(10, 132, 255, 0.36);
    }

/* Icon only */
.pba-tab-center-btn i {
    font-size: 1.1rem;
    line-height: 1;
}

/* Hide text if ever present */
.pba-tab-center-btn span {
    display: none;
}

/* Active / open state */
.pba-tab-center-btn.active {
    background: rgba(10, 132, 255, 0.22);
    border-color: rgba(10, 132, 255, 0.32);
}

/* ---------------------------
   Desktop Sidebar Overlay Layer
   --------------------------- */
.pba-sidenav-layer {
    position: fixed;
    inset: 0;
    z-index: 9999; /* above topbar/modals */
    display: block;
}

/* Overlay behind sidebar */
.pba-sidenav-overlay {
    position: absolute;
    inset: 0;
    z-index: 0; /* behind sidebar */
    background: rgba(0, 0, 0, var(--pba-nav-overlay-alpha));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Sidebar panel above overlay */
.pba-sidenav-panel {
    z-index: 1;
}

/* The actual sidebar */
.pba-sidenav.pba-sidenav-overlay-mode {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px; /* was 280px */
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(17, 24, 39, var(--pba-sidenav-surface-alpha));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--pba-shadow-subtle);
}

.pba-sidenav.is-collapsed {
    width: 76px;
}

.pba-sidenav-inner {
    height: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* NEW: brand/logo */
.pba-sidenav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: var(--pba-radius-lg);
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.22);
    color: rgba(226, 232, 240, 0.92);
}

    .pba-sidenav-brand:hover {
        background: rgba(10, 132, 255, 0.10);
        border-color: rgba(10, 132, 255, 0.18);
    }

.pba-sidenav.is-collapsed .pba-sidenav-brand {
    justify-content: center;
    padding: 10px 0;
}

.pba-sidenav-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(10, 132, 255, 0.14);
    border: 1px solid rgba(10, 132, 255, 0.18);
    flex: 0 0 auto;
}

    .pba-sidenav-brand-mark i {
        font-size: 1.2rem;
        line-height: 1;
    }

.pba-sidenav-brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pba-sidenav-brand-name {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.pba-sidenav-brand-sub {
    font-size: 0.78rem;
    opacity: 0.78;
    line-height: 1.1;
}

.pba-sidenav-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: var(--pba-radius-lg);
    background: rgba(2, 6, 23, 0.30);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.pba-sidenav-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(226, 232, 240, 0.92);
}

.pba-sidenav-expand-btn {
    border: 0;
    background: transparent;
    color: rgba(226, 232, 240, 0.92);
    width: 40px;
    height: 40px;
    border-radius: 14px;
}

.pba-sidenav-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
}

/* NEW: section label + divider */
.pba-sidenav-section-label {
    padding: 8px 10px 2px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.55);
}

.pba-sidenav.is-collapsed .pba-sidenav-section-label {
    display: none;
}

.pba-sidenav-divider {
    height: 1px;
    margin: 8px 6px;
    background: rgba(148, 163, 184, 0.14);
}

.pba-sidenav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 12px;
    color: rgba(226, 232, 240, 0.90);
    text-decoration: none;
    border-radius: var(--pba-radius-lg);
    border: 1px solid transparent;
    background: rgba(2, 6, 23, 0.18);
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.pba-sidenav.is-collapsed .pba-sidenav-item {
    justify-content: center;
    padding: 0;
    gap: 0;
}

.pba-sidenav-item i {
    font-size: 1.1rem;
    opacity: 0.95;
}

.pba-sidenav-item:hover {
    transform: translateY(-1px);
    background: rgba(10, 132, 255, 0.12);
    border-color: rgba(10, 132, 255, 0.18);
}

.pba-sidenav-item.active {
    background: rgba(10, 132, 255, 0.18);
    border-color: rgba(10, 132, 255, 0.28);
}

/* Hide desktop sidebar layer on mobile */
@media (max-width: 767.98px) {
    .pba-sidenav-layer {
        display: none;
    }
}

/* ---------------------------
   Mobile Sheet (simple open/close)
   --------------------------- */
.pba-mobile-sheet-layer {
    position: fixed;
    inset: 0;
    z-index: 9000; /* above normal content */
    pointer-events: none;
}

.pba-shell-sheet-open .pba-mobile-sheet-layer {
    pointer-events: auto;
}

/* Overlay behind the sheet */
.pba-mobile-sheet-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, var(--pba-nav-overlay-alpha));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Sheet above overlay */
.pba-mobile-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    background: rgba(17, 24, 39, var(--pba-sheet-surface-alpha));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--pba-shadow-soft);
    transform: translate3d(0, 110%, 0);
    transition: transform 220ms cubic-bezier(.2, .9, .2, 1);
    will-change: transform;
    pointer-events: none;
}

    .pba-mobile-sheet.is-open {
        transform: translate3d(0, 0%, 0);
        pointer-events: auto;
    }

.pba-mobile-sheet-handle {
    display: none;
}
/* no swipe handle needed now */

.pba-mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 8px;
}

.pba-mobile-sheet-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(226, 232, 240, 0.94);
}

.pba-mobile-sheet-search {
    padding: 0 14px 10px;
}

.pba-mobile-sheet-content {
    padding: 0 14px 16px;
    max-height: 72vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.pba-mobile-sheet-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.pba-sheet-item {
    text-decoration: none;
    color: rgba(226, 232, 240, 0.92);
    border-radius: 18px;
    padding: 12px 10px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

    .pba-sheet-item:hover {
        transform: translateY(-1px);
        background: rgba(10, 132, 255, 0.12);
        border-color: rgba(10, 132, 255, 0.18);
    }

    .pba-sheet-item.active {
        background: rgba(10, 132, 255, 0.18);
        border-color: rgba(10, 132, 255, 0.28);
    }

.pba-sheet-item-ico {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(10, 132, 255, 0.10);
    border: 1px solid rgba(10, 132, 255, 0.12);
}

    .pba-sheet-item-ico i {
        font-size: 1.1rem;
    }

.pba-sheet-item-txt {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
}

/* Hide sheet on md+ */
@media (min-width: 768px) {
    .pba-mobile-sheet-layer {
        display: none;
    }
}


































