/* static/css/core/bottom_nav.css */
/* Estilos globais da navbar inferior mobile, efeito de vidro, bolinha de luz e estados ativos */

.bottom-nav,
.bottom-nav * {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

.bottom-nav {
    background-color: rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.18) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    contain: layout style;
    border-top: 1px solid rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.25) !important;
    box-shadow: 0 -4px 20px rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.10) !important;
    position: fixed;
    overflow: hidden;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 58px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.bottom-nav .nav-item {
    color: var(--cor-destaque) !important;
    opacity: 1 !important;
    padding: 2px 0 0 0 !important;
    gap: 2px !important;
    transition: opacity 0.2s ease, color 0.15s ease;
    position: relative;
    z-index: 15;
}

.bottom-nav .nav-item .icon-wrapper {
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px !important;
    width: 24px !important;
    margin: 0 !important;
    position: relative;
    z-index: 15;
}

.bottom-nav .nav-item i, 
.bottom-nav .nav-item svg, 
.bottom-nav .nav-item span, 
.bottom-nav .nav-item small {
    color: var(--cor-destaque) !important;
    stroke: var(--cor-destaque) !important;
    opacity: 1 !important;
}

.bottom-nav .nav-item svg {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 2.2px;
    transition: stroke 0.1s ease, color 0.1s ease, transform 0.15s ease, opacity 0.15s ease;
    position: relative;
    z-index: 15;
}

.bottom-nav .nav-item span,
.bottom-nav .nav-item small {
    transition: color 0.1s ease;
}

/* Bolinha de Luz Deslizante Acima dos Ícones no Trilho Superior */
.bottom-nav-trilho {
    position: absolute !important;
    top: 1px !important;
    bottom: auto !important;
    left: 0 !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.55) 0%, rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.8) 42%, rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.2) 75%, transparent 100%) !important;
    box-shadow: 
        0 2px 10px rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.6),
        0 4px 18px rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.3) !important;
    filter: blur(1.5px) !important;
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease, box-shadow 0.25s ease !important;
    pointer-events: none !important;
    z-index: 30 !important;
    opacity: 0;
    will-change: transform;
}

html.dark .bottom-nav-trilho {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.65) 0%, rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.9) 45%, rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.25) 75%, transparent 100%) !important;
    box-shadow: 
        0 2px 12px rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.7),
        0 5px 22px rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.35) !important;
    filter: blur(1.5px) !important;
}

.bottom-nav .nav-item .nav-label {
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 600;
    margin-top: 2px !important;
    position: relative;
    z-index: 20;
}

.bottom-nav .nav-item:active,
.bottom-nav .nav-item.pressed {
    transform: none !important;
    opacity: 1 !important;
}

.bottom-nav .nav-item:active i,
.bottom-nav .nav-item:active svg,
.bottom-nav .nav-item:active span,
.bottom-nav .nav-item:active small,
.bottom-nav .nav-item.pressed i,
.bottom-nav .nav-item.pressed svg,
.bottom-nav .nav-item.pressed span,
.bottom-nav .nav-item.pressed small {
    color: var(--cor-destaque) !important;
    stroke: var(--cor-destaque) !important;
    opacity: 1 !important;
}

.bottom-nav .nav-item.active-nav-item i,
.bottom-nav .nav-item.active-nav-item svg,
.bottom-nav .nav-item.active-nav-item span,
.bottom-nav .nav-item.active-nav-item small {
    color: var(--cor-destaque) !important;
    stroke: var(--cor-destaque) !important;
    opacity: 1 !important;
    font-weight: 800;
}

.bottom-nav .nav-item.active-nav-item .icon-wrapper {
    transform: none !important;
    filter: none !important;
}

.bottom-nav .nav-item.active-nav-item svg {
    stroke-width: 2.6px;
}

.bottom-nav .nav-item.active-nav-item i,
.bottom-nav .nav-item.active-nav-item svg,
.bottom-nav .nav-item.active-nav-item small,
.bottom-nav .nav-item.active-nav-item span {
    font-weight: 800;
}

html.dark .bottom-nav {
    background-color: rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.20) !important;
    background-image: none !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.30) !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.45), 0 -1px 12px rgba(var(--cor-destaque-rgb, 157, 56, 220), 0.15) !important;
    position: fixed;
    overflow: hidden;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 58px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

@media (min-width: 1024px) {
    .bottom-nav {
        display: none !important;
    }
}

html.dark .bottom-nav > .nav-item {
    position: relative;
    z-index: 1;
}

/* Ícones e Textos Inativos no Modo Escuro: Branco Puro e Nítido */
html.dark .bottom-nav .nav-item {
    color: #ffffff !important;
    opacity: 0.9 !important;
}

html.dark .bottom-nav .nav-item small,
html.dark .bottom-nav .nav-item .icon-outlined,
html.dark .bottom-nav .nav-item i,
html.dark .bottom-nav .nav-item svg,
html.dark .bottom-nav .nav-item span {
    color: #ffffff !important;
    stroke: #ffffff !important;
    opacity: 0.9 !important;
}

html.dark #menu-mic-button i,
html.dark #menu-mic-button svg {
    color: var(--cor-destaque) !important;
    stroke: var(--cor-destaque) !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Ícones e Textos Ativos / Selecionados / Toque no Modo Escuro: Cor Dinâmica Aceso */
html.dark .bottom-nav .nav-item.active-nav-item,
html.dark .bottom-nav .nav-item:active,
html.dark .bottom-nav .nav-item.pressed {
    color: var(--cor-destaque) !important;
    opacity: 1 !important;
}

html.dark .bottom-nav .nav-item.active-nav-item small,
html.dark .bottom-nav .nav-item.active-nav-item i,
html.dark .bottom-nav .nav-item.active-nav-item svg,
html.dark .bottom-nav .nav-item.active-nav-item span,
html.dark .bottom-nav .nav-item:active small,
html.dark .bottom-nav .nav-item:active i,
html.dark .bottom-nav .nav-item:active svg,
html.dark .bottom-nav .nav-item:active span,
html.dark .bottom-nav .nav-item.pressed small,
html.dark .bottom-nav .nav-item.pressed i,
html.dark .bottom-nav .nav-item.pressed svg,
html.dark .bottom-nav .nav-item.pressed span {
    color: var(--cor-destaque) !important; 
    stroke: var(--cor-destaque) !important;
    font-weight: 800;
    opacity: 1 !important;
}

html.dark .bottom-nav .nav-item.active-nav-item .icon-wrapper,
html.dark .bottom-nav .nav-item:active .icon-wrapper,
html.dark .bottom-nav .nav-item.pressed .icon-wrapper {
    transform: none !important;
    filter: none !important;
}

html.dark .bottom-nav .nav-item.active-nav-item .nav-label,
html.dark .bottom-nav .nav-item:active .nav-label,
html.dark .bottom-nav .nav-item.pressed .nav-label {
    text-shadow: none !important;
}

body.modal-open .bottom-nav {
    display: none !important;
}
