/**
 * Global bottom nav (all pages when logged in). Same look as user area.
 */
:root {
    --ud-primary: #ff7400;
    --ud-text-tertiary: #94a3b8;
    --ud-surface: #ffffff;
    --ud-border: rgba(0, 0, 0, 0.08);
    --ud-bottom-nav-height: 76px;
    --ud-safe-bottom: env(safe-area-inset-bottom, 0px);
}

.ud-bottom-nav--global {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--ud-bottom-nav-height) + var(--ud-safe-bottom));
    padding-top: 8px;
    padding-bottom: calc(12px + var(--ud-safe-bottom));
    background: var(--ud-surface);
    border-top: 1px solid var(--ud-border);
    z-index: 5000;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

@media (max-width: 1279px) {
    .ud-bottom-nav--global {
        display: flex;
    }
}

body.ud-has-bottom-nav {
    padding-bottom: calc(var(--ud-bottom-nav-height) + var(--ud-safe-bottom) + 20px);
}

@media (min-width: 1280px) {
    body.ud-has-bottom-nav {
        padding-bottom: 0;
    }
}

.ud-bottom-nav--global .ud-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--ud-text-tertiary);
    font-size: 0.625rem;
    font-weight: 500;
    transition: color 0.2s;
    min-width: 0;
    min-height: 44px;
}

.ud-bottom-nav--global .ud-bottom-nav__item--active {
    color: var(--ud-primary);
}

.ud-bottom-nav--global .ud-bottom-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.ud-bottom-nav--global .ud-bottom-nav__icon svg {
    width: 24px;
    height: 24px;
}

.ud-bottom-nav--global .ud-bottom-nav__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}
