.app-nav-dock-spacer {
    height: calc(92px + env(safe-area-inset-bottom, 0px));
}

.app-nav-dock-wrap {
    position: fixed;
    z-index: 1000;
    left: 290px;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
}

body.no-sidebar .app-nav-dock-wrap {
    left: 0;
}

.app-nav-dock {
    pointer-events: auto;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    min-height: 64px;
    padding: 7px 8px;
    background: #fff;
    border: 1px solid rgba(67, 216, 133, 0.35);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(6, 71, 55, 0.1);
}

.app-nav-dock-item,
.footer-nav-btn.app-nav-dock-item {
    appearance: none;
    border: 0;
    background: transparent;
    box-sizing: border-box;
    color: #064737;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 88px;
    font-family: inherit;
    min-height: 48px;
    padding: 4px 10px;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
    opacity: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.app-nav-dock-item i,
.footer-nav-btn.app-nav-dock-item i {
    font-size: 20px;
    line-height: 1;
    color: inherit;
    filter: none;
    transform: none;
}

.app-nav-dock-item span,
.footer-nav-btn.app-nav-dock-item span {
    font-size: 11px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    color: inherit;
    text-transform: none;
}

.app-nav-dock-item:hover,
.footer-nav-btn.app-nav-dock-item:hover {
    background: transparent;
    color: #04382c;
    text-decoration: none;
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.app-nav-dock a.app-nav-dock-item,
.app-nav-dock a.app-nav-dock-item:focus {
    background: transparent;
    color: #064737 !important;
    text-decoration: none;
}

.app-nav-dock a.app-nav-dock-item:hover {
    background: transparent;
    color: #04382c !important;
}

.app-nav-dock-item:focus-visible,
.footer-nav-btn.app-nav-dock-item:focus-visible {
    outline: 2px solid #43D885;
    outline-offset: 2px;
}

.app-nav-dock-item.active,
.footer-nav-btn.app-nav-dock-item.active {
    background: rgba(67, 216, 133, 0.16);
    color: #064737;
    border-radius: 13px;
    box-shadow: none;
    transform: none;
    animation: none;
}

.app-nav-dock-item.active i,
.footer-nav-btn.app-nav-dock-item.active i,
.app-nav-dock-item.active span,
.footer-nav-btn.app-nav-dock-item.active span {
    color: #064737;
    transform: none;
    filter: none;
}

body.dark-mode .app-nav-dock {
    background: #0d2420;
    border-color: rgba(67, 216, 133, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

body.dark-mode .app-nav-dock-item,
body.dark-mode .footer-nav-btn.app-nav-dock-item {
    color: rgba(255, 255, 255, 0.78);
}

body.dark-mode .app-nav-dock-item:hover,
body.dark-mode .footer-nav-btn.app-nav-dock-item:hover {
    background: transparent;
    color: #ffffff;
}

body.dark-mode .app-nav-dock a.app-nav-dock-item,
body.dark-mode .app-nav-dock a.app-nav-dock-item:focus {
    background: transparent;
    color: rgba(255, 255, 255, 0.78) !important;
}

body.dark-mode .app-nav-dock a.app-nav-dock-item:hover {
    background: transparent;
    color: #ffffff !important;
}

body.dark-mode .app-nav-dock-item.active,
body.dark-mode .footer-nav-btn.app-nav-dock-item.active,
body.dark-mode .app-nav-dock-item.active:hover,
body.dark-mode .footer-nav-btn.app-nav-dock-item.active:hover {
    background: rgba(67, 216, 133, 0.16);
    color: #43D885;
}

body.dark-mode .app-nav-dock-item.active i,
body.dark-mode .footer-nav-btn.app-nav-dock-item.active i,
body.dark-mode .app-nav-dock-item.active span,
body.dark-mode .footer-nav-btn.app-nav-dock-item.active span {
    color: #43D885;
}

@media (max-width: 768px) {
    .app-nav-dock-wrap {
        left: 0;
    }
}

@media (max-width: 520px) {
    .app-nav-dock-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }

    .app-nav-dock {
        width: max-content;
        max-width: 100%;
        border-radius: 18px;
        gap: 2px;
        padding: 6px;
    }

    .app-nav-dock-item,
    .footer-nav-btn.app-nav-dock-item {
        flex-shrink: 0;
        min-width: 44px;
        padding: 4px;
    }

    .app-nav-dock-item span,
    .footer-nav-btn.app-nav-dock-item span {
        font-size: 11px;
        white-space: nowrap;
    }
}
