/* Module: layout/bottom-nav.css ? Bottom Navigation */
/* --------------------------------------------------------------------------
   4. Bottom Navigation Bar
   -------------------------------------------------------------------------- */
.and-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--and-z-nav, 130);
    width: 100%;
    max-width: 100vw;
    background: transparent;
    pointer-events: none;
}

.and-bottom-nav__shell {
    pointer-events: auto;
    position: relative;
    border-radius: 0;
    border-top: 1px solid var(--and-bottom-nav-shell-border);
    padding: var(--and-nav-shell-pt) 12px calc(var(--and-nav-shell-pb) + var(--and-safe-bottom));
    overflow: visible;
}

.and-bottom-nav__shell::before,
.and-bottom-nav__shell::after {
    display: none;
}

.and-bottom-nav__track {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 54px 1fr;
    align-items: end;
    column-gap: 0;
    height: var(--and-nav-row);
    min-height: var(--and-nav-row);
}

.and-bottom-nav__indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        transform var(--and-nav-ease-out),
        opacity var(--and-nav-ease);
    will-change: transform;
}

.and-bottom-nav__indicator.is-fab {
    width: var(--and-nav-fab-size);
    height: var(--and-nav-fab-size);
    border-radius: 50%;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.and-bottom-nav__indicator.is-initial {
    transition: none !important;
}

.and-bottom-nav__side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    align-items: end;
    align-self: end;
    min-width: 0;
    height: var(--and-nav-row);
}

.and-bottom-nav__fab-slot {
    width: 54px;
    height: var(--and-nav-row);
    position: relative;
    justify-self: center;
    align-self: end;
}

.and-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 52px;
    min-width: 44px;
    height: var(--and-nav-row);
    padding: 0;
    color: var(--and-bottom-nav-icon);
    position: relative;
    z-index: 1;
    transition: color var(--and-nav-ease), transform var(--and-nav-ease);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.and-bottom-nav__item.is-pressing {
    transform: scale(0.96);
}

.and-bottom-nav__item.is-active,
.and-bottom-nav__item.is-navigating {
    color: var(--and-bottom-nav-icon-active);
}

.and-bottom-nav__item.is-pressing .and-bottom-nav__svg {
    transform: scale(0.92);
    transition-duration: 0.12s;
}

.and-bottom-nav__item.is-active .and-bottom-nav__svg,
.and-bottom-nav__item.is-navigating .and-bottom-nav__svg {
    transform: none;
    transition-delay: 0s;
}

.and-bottom-nav__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--and-bottom-nav-chip-bg);
    border: 1px solid var(--and-bottom-nav-chip-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    -webkit-backdrop-filter: blur(var(--and-bottom-nav-chip-blur)) saturate(1.15);
    backdrop-filter: blur(var(--and-bottom-nav-chip-blur)) saturate(1.15);
    color: var(--and-bottom-nav-icon);
    transition:
        color var(--and-nav-ease),
        background var(--and-nav-ease),
        border-color var(--and-nav-ease),
        transform var(--and-nav-ease);
}

.and-bottom-nav__svg {
    display: block;
    width: 20px;
    height: 20px;
    overflow: visible;
    shape-rendering: geometricPrecision;
    opacity: 1;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.25;
    color: inherit;
    transition:
        width var(--and-nav-ease),
        height var(--and-nav-ease),
        stroke-width var(--and-nav-ease);
}

.and-bottom-nav__item:not(.and-bottom-nav__item--center).is-active .and-bottom-nav__icon {
    background: var(--and-bottom-nav-chip-active-bg);
    border-color: var(--and-bottom-nav-chip-active-border);
    color: var(--and-bottom-nav-icon-active);
    box-shadow: var(--and-elev-1);
    transform: none;
}

.and-bottom-nav__item:not(.and-bottom-nav__item--center).is-active .and-bottom-nav__svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.25;
    color: var(--and-bottom-nav-icon-active);
}

.and-bottom-nav__item:not(.and-bottom-nav__item--center):active .and-bottom-nav__icon {
    transform: scale(0.94);
    background: #fff;
}

.and-bottom-nav__item:not(.and-bottom-nav__item--center).is-active:active .and-bottom-nav__icon {
    background: var(--and-bottom-nav-chip-active-bg);
    transform: scale(0.96);
}

.and-bottom-nav__item[data-spa-nav="favorit"].is-active .and-bottom-nav__svg path {
    fill: rgba(255, 90, 0, 0.22);
    stroke: currentColor;
    opacity: 1;
}

.and-bottom-nav__fab {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, -36%);
    width: var(--and-nav-fab-size);
    height: var(--and-nav-fab-size);
    border-radius: 50%;
    background: linear-gradient(160deg, #ff8a3d 0%, #ff5a00 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--and-elev-fab);
    transition:
        transform var(--and-nav-ease-out),
        box-shadow var(--and-nav-ease),
        background var(--and-nav-ease);
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}

.and-bottom-nav__item--center {
    max-width: none;
    flex: none;
    gap: 0;
    padding: 0;
    width: var(--and-nav-fab-size);
    height: var(--and-nav-fab-size);
    color: #ffffff;
}

.and-bottom-nav__item--center .and-bottom-nav__icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #ffffff;
}

.and-bottom-nav__svg--center {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    stroke-width: 2;
}

.and-bottom-nav__item--center.is-active {
    color: #ffffff;
    transform: translate(-50%, calc(-36% - 2px)) scale(1.04);
    box-shadow: 0 4px 14px rgba(255, 90, 0, 0.32);
}

.and-bottom-nav__item--center.is-active .and-bottom-nav__svg--center {
    width: 22px;
    height: 22px;
}

.and-bottom-nav__item--center:active,
.and-bottom-nav__fab:active {
    transform: translate(-50%, -36%) scale(0.94);
}

.and-bottom-nav__item--center.is-active:active {
    transform: translate(-50%, calc(-36% - 1px)) scale(1.02);
}

.and-bottom-nav__fab .and-bottom-nav__svg {
    display: block;
}

@media (prefers-reduced-motion: reduce) {

    .and-bottom-nav__item,
    .and-bottom-nav__icon,
    .and-bottom-nav__fab,
    .and-bottom-nav__indicator,
    .and-nav-drawer__indicator {
        transition: none !important;
    }
}

/* Buku module ? bottom nav 5 tab (ikon + label) */
.and-bottom-nav--buku .and-bottom-nav__shell {
    padding-top: 6px;
    padding-bottom: calc(6px + var(--and-safe-bottom));
}

.and-bottom-nav--buku .and-bottom-nav__track {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center;
    column-gap: 0;
    height: auto;
    min-height: var(--and-buku-nav-row);
}

.and-bottom-nav--buku .and-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: var(--and-buku-nav-row);
    padding: 2px 0 0;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.and-bottom-nav--buku .and-bottom-nav__icon {
    width: 40px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--and-bottom-nav-chip-bg);
    border: 1px solid var(--and-bottom-nav-chip-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    -webkit-backdrop-filter: blur(var(--and-bottom-nav-chip-blur)) saturate(1.15);
    backdrop-filter: blur(var(--and-bottom-nav-chip-blur)) saturate(1.15);
    color: var(--and-bottom-nav-icon);
}

.and-bottom-nav--buku .and-bottom-nav__svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.25;
    color: inherit;
}

.and-bottom-nav--buku .and-bottom-nav__label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    color: #64748b;
}

.and-bottom-nav--buku .and-bottom-nav__item.is-active,
.and-bottom-nav--buku .and-bottom-nav__item.is-navigating {
    color: var(--and-bottom-nav-icon-active);
}

.and-bottom-nav--buku .and-bottom-nav__item.is-active .and-bottom-nav__label {
    color: var(--and-bottom-nav-icon-active);
}

.and-bottom-nav--buku .and-bottom-nav__item.is-active .and-bottom-nav__icon {
    background: var(--and-bottom-nav-chip-active-bg);
    border-color: var(--and-bottom-nav-chip-active-border);
    color: var(--and-bottom-nav-icon-active);
    transform: none;
}

.and-bottom-nav--buku .and-bottom-nav__indicator {
    width: 40px;
    height: 36px;
    border-radius: 12px;
}