/* Fixed Footer Menu - Versão Melhorada */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    gap: 5px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    flex: 1;
    padding: 6px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(58, 110, 165, 0.08), rgba(230, 179, 37, 0.08));
    transform: translateY(-2px);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
}

.nav-icon-container {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 245, 241, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.nav-item:hover .nav-icon-container {
    background: linear-gradient(135deg, rgba(58, 110, 165, 0.15), rgba(230, 179, 37, 0.15));
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(58, 110, 165, 0.2);
}

.nav-item.active .nav-icon-container {
    background: linear-gradient(135deg, var(--primary-color), #4a7bb5);
    color: white;
    box-shadow: 0 4px 12px rgba(58, 110, 165, 0.3);
}

.nav-icon {
    font-size: 1.1rem;
}

.nav-text {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-color);
    opacity: 0.8;
}

.nav-item.active .nav-text {
    color: var(--primary-color);
    opacity: 1;
    font-weight: 700;
}

/* Central Button - Melhorado */
.central-button {
    position: relative;
    margin-top: -30px;
    z-index: 1001;
}

.central-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--secondary-color), #f0c040);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 6px 20px rgba(230, 179, 37, 0.4);
    font-size: 1.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.central-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
}

.central-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(230, 179, 37, 0.5);
}

.central-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Menu Sanduíche */
.menu-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-trigger:hover {
    background: linear-gradient(135deg, rgba(58, 110, 165, 0.08), rgba(230, 179, 37, 0.08));
    transform: translateY(-2px);
}

.menu-icon-container {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
    background: rgba(248, 245, 241, 0.9);
    transition: all 0.3s ease;
}

.menu-trigger:hover .menu-icon-container {
    background: linear-gradient(135deg, rgba(58, 110, 165, 0.15), rgba(230, 179, 37, 0.15));
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(58, 110, 165, 0.2);
}

.menu-icon {
    font-size: 1.1rem;
    color: var(--text-color);
}

.menu-text {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-color);
    opacity: 0.8;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 200px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-radius: 3px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(58, 110, 165, 0.05), rgba(230, 179, 37, 0.05));
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    color: var(--primary-color);
    font-size: 1rem;
}

.dropdown-item span {
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
}

.dropdown-item .badge {
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 8px 0;
}

/* Overlay para fechar o menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1001;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .fixed-footer {
        border-radius: 0;
    }

    .dropdown-menu {
        width: 180px;
        right: 5px;
    }

    .dropdown-menu::before {
        right: 15px;
    }
}