/* Modern Mobile Navigation Bar */
.mobile-nav-container {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    z-index: 9998;
    padding: 4px 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    max-width: 360px;
    margin: 0 auto;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8e9aaf;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    gap: 10px;
    flex: 1;
}

.mobile-nav-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: all 0.2s ease;
}

/* Active State */
.mobile-nav-item.active {
    color: #1d99a7;
}

.mobile-nav-item.active .mobile-nav-icon {
    fill: #1d99a7;
}

/* Hover Effects */
@media (hover: hover) {
    .mobile-nav-item:hover {
        color: #1d99a7;
        background: rgba(29, 153, 167, 0.08);
    }
}

/* Modern Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9997;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Modern Mobile Menu Drawer (Bottom Sheet) */
.mobile-menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    top: auto;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-menu.active {
    bottom: 0;
}

/* Handle indicator for drawer */
.mobile-menu::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 8px;
}

.mobile-menu-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.mobile-menu-close {
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: #e0e0e0;
}

.mobile-menu-close-icon {
    width: 16px;
    height: 16px;
    fill: #666;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-item {
    padding: 14px 16px;
    color: #444;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    background: #f9f9f9;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-menu-item:hover {
    background: #fff;
    border-color: #1d99a7;
    color: #1d99a7;
    transform: translateX(-4px);
}

.mobile-menu-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    fill: currentColor;
    transition: opacity 0.2s;
}

.mobile-menu-item:hover .mobile-menu-icon {
    opacity: 1;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-nav-container {
        display: block;
    }
}