/* Growth Style - Bottom Navigation */
html, body {
    height: 100%;
    overflow-x: hidden;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 430px;
    height: 65px;
    background: var(--azul-escuro, #1a3a5f);
    backdrop-filter: blur(20px);
    border-top: 3px solid var(--verde-growth, #00a64e);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    /* Propriedades para melhorar o comportamento fixed em mobile */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 10px 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    min-width: 60px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    color: var(--branco, #ffffff);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    color: white;
    background-color: rgba(0, 166, 78, 0.25);
}

.nav-item.active::before {
    transform: scaleX(1);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-item.active .nav-label {
    font-weight: 700;
    color: white;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-icon i {
    width: 22px;
    height: 22px;
    transition: all 0.3s ease;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

/* Notification badge */
.nav-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: var(--vermelho, #e74c3c);
    color: var(--branco, #ffffff);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--azul-escuro, #1a3a5f);
}

.nav-item.active .nav-badge {
    background: var(--verde-escuro, #008a3e);
    border-color: rgba(0, 166, 78, 0.15);
}

/* Central action button (if needed) */
.nav-center-action {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--verde-growth) 0%, var(--verde-escuro) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco, #ffffff);
    box-shadow: 0 6px 20px rgba(0, 166, 78, 0.4);
    transition: all 0.3s ease;
    border: 4px solid var(--azul-escuro, #1a3a5f);
}

.nav-center-action:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 166, 78, 0.5);
}

.nav-center-action i {
    width: 24px;
    height: 24px;
}

@media (max-width: 430px) {
    .bottom-nav {
        width: 100VW;
        max-width: 100%;
        padding: 0 20px;
        left: 0;
        right: 0;
    }
    
    .nav-item {
        padding: 8px 12px;
        min-width: 55px;
    }
    
    .nav-icon i {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 375px) {
    .bottom-nav {
        height: 65px;
        padding: 0 15px;
    }
    
    .nav-item {
        padding: 6px 10px;
        gap: 4px;
    }
    
    .nav-label {
        font-size: 10px;
    }
    
    .nav-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: 4px;
        right: 6px;
    }
}

/* Safe area support for modern mobile devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Melhoria adicional para iOS */
    @media (max-width: 430px) {
        .bottom-nav {
            padding-bottom: max(20px, env(safe-area-inset-bottom));
        }
    }
}

/* Bottom nav variations */
.bottom-nav-green {
    background: var(--verde-growth, #00a64e);
    border-top: 3px solid var(--verde-escuro, #008a3e);
}

.bottom-nav-green .nav-item {
    color: rgba(255, 255, 255, 0.8);
}

.bottom-nav-green .nav-item:hover {
    color: var(--branco, #ffffff);
    background-color: rgba(255, 255, 255, 0.15);
}

.bottom-nav-green .nav-item.active {
    color: var(--azul-escuro, #1a3a5f);
    background-color: rgba(255, 255, 255, 0.2);
}

.bottom-nav-green .nav-item.active::before {
    background: var(--azul-escuro, #1a3a5f);
}