/* Mobile Floating Footer Styles */
.mobile-floating-footer {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-floating-footer.show {
    transform: translateY(0);
}

.floating-footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.floating-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 15px;
    min-height: 70px;
}

.floating-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    border-radius: 16px;
    min-width: 65px;
    position: relative;
}

.floating-nav-item:hover,
.floating-nav-item.active {
    color: #51cbce;
}

.floating-nav-item.active {
    background: rgba(81, 203, 206, 0.1);
}

.nav-icon {
    position: relative;
    font-size: 22px;
    /* Iconic 20px+ size */
    margin-bottom: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-nav-item.active .nav-icon {
    transform: translateY(-2px);
}

.nav-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.nav-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff3b30;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.3);
}

.floating-footer-spacer {
    height: 100px;
    width: 100%;
}

/* Responsive behavior */
@media (max-width: 991.98px) {
    .mobile-floating-footer {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .mobile-floating-footer {
        display: none !important;
    }

    .floating-footer-spacer {
        display: none !important;
    }
}

/* Dark mode support */
html[data-chrome-dark="true"] .mobile-floating-footer {
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

html[data-chrome-dark="true"] .floating-nav-item {
    color: #a0aec0;
}

html[data-chrome-dark="true"] .nav-badge {
    border-color: #1e1e1e;
}

/* Animation for showing/hiding on scroll */
.mobile-floating-footer.scroll-hidden {
    transform: translateY(200%);
}

/* Safe area support for notched phones */
@supports (padding: max(0px)) {
    .floating-nav-items {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
}