






/* ===== MOBILE BOTTOM NAVIGATION ===== */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97); /* MAIS OPACO */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(76, 175, 80, 0.2);
    z-index: 9999;
    padding: 10px 0 14px;
    border-radius: 22px 22px 0 0;
    transition: 0.3s ease;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* ===== NAV ITEM ===== */

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    padding: 8px 12px;
    border-radius: 30px;
    transition: all 0.25s ease;
    position: relative;
}

.mobile-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: all 0.25s ease;
}

/* ===== ATIVO COM BARRA VERDE ===== */

/* ===== BARRA ATIVA SUAVE (GRADIENTE PREMIUM) ===== */


/* Hover/ touch effects */
.mobile-nav-item:active {
    background: rgba(76, 175, 80, 0.15);
    transform: scale(0.95);
}

.mobile-nav-item:active i {
    transform: scale(0.9);
}

/* Indicator for active item */
.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;          /* mais larga */
    height: 5px;          /* mais grossa */
    background: linear-gradient(90deg, #4CAF50, #f44336);
    border-radius: 20px;
    animation: pulseWidth 2.2s ease-in-out infinite;
}

@keyframes pulseWidth {
    0%, 100% { width: 38px; opacity: 0.75; }
    50% { width: 48px; opacity: 1; }
}




/* Toque estilo iOS */
.mobile-nav-item:active {
    transform: scale(0.92);
}

/* ===== DROPDOWN RESTAURADO ===== */

.mobile-dropdown-container {
    position: relative;
}

.mobile-nav-item.dropdown-toggle::after {
    display: none !important; /* sem seta lateral */
}

.mobile-dropdown-menu {
    position: absolute;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    border-radius: 25px;
    padding: 14px;
    min-width: 240px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.mobile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    transition: 0.25s ease;
}

.mobile-dropdown-item i {
    font-size: 18px;
    width: 28px;
    color: #4CAF50;
}

.mobile-dropdown-item:hover {
    background: rgba(76, 175, 80, 0.12);
    transform: translateX(5px);
}

/* ===== OVERLAY ===== */

.mobile-dropdown-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 9998;
}

.mobile-dropdown-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ===== BOTÃO DARK MODE (SÓ NA BARRA) ===== */

.mobile-theme-toggle {
    position: absolute;
    right: 15px;
    top: -18px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s ease;
}

.mobile-theme-toggle:hover {
    transform: rotate(20deg);
}

/* ===== DARK MODE ATIVO ===== */

.mobile-bottom-nav.dark {
    background: rgba(30, 30, 30, 0.98);
}

.mobile-bottom-nav.dark .mobile-nav-item {
    color: #bbb;
}

.mobile-bottom-nav.dark .mobile-nav-item.active {
    color: #4CAF50;
}

.mobile-bottom-nav.dark .mobile-dropdown-menu {
    background: rgba(40, 40, 40, 0.98);
}

.mobile-bottom-nav.dark .mobile-dropdown-item {
    color: #ddd;
}

/* ===== MOBILE ONLY ===== */

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    body {
        padding-bottom: 85px;
    }
}

/* ===== DARK MODE ===== */

.mobile-bottom-nav.dark {
    background: rgba(30, 30, 30, 0.98);
}

.mobile-bottom-nav.dark .mobile-nav-item {
    color: #bbb;
}

/* Hover verde no dark */
.mobile-bottom-nav.dark .mobile-nav-item:hover {
    color: #4CAF50;
}

.mobile-bottom-nav.dark .mobile-nav-item:hover i {
    color: #4CAF50;
}

/* Dropdown dark */
.mobile-bottom-nav.dark .mobile-dropdown-menu {
    background: rgba(40, 40, 40, 0.98);
}

.mobile-bottom-nav.dark .mobile-dropdown-item {
    color: #ddd;
}

.mobile-bottom-nav.dark .mobile-dropdown-item:hover {
    background: rgba(76, 175, 80, 0.2);
}

.mobile-bottom-nav.dark {
    background: rgba(0, 0, 0, 0.85);       /* preto quase total, mas transparente */
    backdrop-filter: blur(20px);            /* blur suave, elegante */
    -webkit-backdrop-filter: blur(20px);   /* suporte Safari/iOS */
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* borda discreta */
    transition: background 0.3s ease, transform 0.35s ease, opacity 0.3s ease;
}


.mobile-bottom-nav.dark .mobile-nav-item {
    color: #ccc;  /* mais visível sobre o preto */
}

.mobile-bottom-nav.dark .mobile-nav-item.active {
    color: #4CAF50;  /* verde ativo */
}

.mobile-bottom-nav.dark .mobile-nav-item:hover {
    color: #4CAF50;
}

.mobile-bottom-nav.dark .mobile-dropdown-menu {
    background: rgba(20, 20, 20, 0.92); /* menu dropdown também fumê */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.mobile-bottom-nav.dark .mobile-dropdown-item {
    color: #ddd;
}

.mobile-bottom-nav.dark .mobile-dropdown-item:hover {
    background: rgba(76, 175, 80, 0.2);
}







/* ===== ESCONDER E MOSTRAR ===== */

.mobile-bottom-nav.hide {
    transform: translateY(120%); /* desce mais */
    opacity: 0.4;               /* leve fade */
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.mobile-bottom-nav.show {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.35s ease, opacity 0.3s ease;
}



