/* Mobile Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #bdc3c7;
    padding: 8px 4px;
    min-width: 60px;
    transition: color 0.3s;
}

.nav-item:hover, .nav-item:focus {
    color: #3498db;
    text-decoration: none;
}

.nav-item.active {
    color: #3498db;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-text {
    font-size: 11px;
    font-weight: 500;
}

/* Hide old menu on mobile */
@media (max-width: 768px) {
    .menu-open, .ozmenu {
        display: none !important;
    }
    
    .container.body-content {
        padding-bottom: 80px;
    }
}

/* Desktop body content adjustment */
@media (min-width: 769px) {
    .container.body-content {
        padding-bottom: 20px;
    }
}

/* Show old menu on desktop, hide bottom nav */
@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

/* Desktop Hamburger Menu Improvements */
@media (min-width: 769px) {
    .menu-open {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: #2c3e50;
        border-radius: 8px;
        padding: 12px;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        transition: all 0.3s ease;
    }
    
    .menu-open:hover {
        background: #34495e;
        transform: scale(1.05);
    }
    
    .menu-open .open {
        display: block;
        width: 24px;
        height: 18px;
        position: relative;
    }
    
    .menu-open .open::before,
    .menu-open .open::after,
    .menu-open .open {
        background: #ecf0f1;
        height: 3px;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .menu-open .open::before,
    .menu-open .open::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
    }
    
    .menu-open .open::before {
        top: -7px;
    }
    
    .menu-open .open::after {
        top: 7px;
    }
    
    .ozmenu {
        position: fixed;
        top: 0;
        left: -350px;
        width: 320px;
        height: 100vh;
        background: #2c3e50;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.3);
        overflow-y: auto;
    }
    
    .ozmenu.active {
        left: 0;
    }
    
    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
        padding: 8px;
    }
    
    .menu-close .close {
        display: block;
        width: 20px;
        height: 20px;
        position: relative;
    }
    
    .menu-close .close::before,
    .menu-close .close::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        background: #ecf0f1;
        border-radius: 1px;
    }
    
    .menu-close .close::before {
        transform: rotate(45deg);
    }
    
    .menu-close .close::after {
        transform: rotate(-45deg);
    }
    
    .ozmenu-nav {
        list-style: none;
        padding: 80px 0 20px 0;
        margin: 0;
    }
    
    .ozmenu-nav .item {
        border-bottom: 1px solid #34495e;
    }
    
    .ozmenu-nav .item a {
        display: block;
        padding: 18px 25px;
        color: #ecf0f1;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .ozmenu-nav .item a:hover {
        background: #34495e;
        color: #3498db;
        padding-left: 35px;
    }
    
    .ozmenu-nav .item .fa {
        margin-right: 12px;
        width: 20px;
        text-align: center;
    }
    
    .ozmenu-nav .dropdown {
        background: #34495e;
        display: none;
        transition: all 0.3s ease;
    }
    
    .ozmenu-nav .nav-dropdown.opened + .dropdown {
        display: block;
    }
    
    .ozmenu-nav .nav-dropdown::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    
    .ozmenu-nav .nav-dropdown.opened::after {
        transform: rotate(180deg);
    }
    
    .ozmenu-nav .dropdown ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .ozmenu-nav .dropdown .item {
        border-bottom: 1px solid #2c3e50;
    }
    
    .ozmenu-nav .dropdown .item a {
        padding: 15px 45px;
        font-size: 14px;
        color: #bdc3c7;
    }
    
    .ozmenu-nav .dropdown .item a:hover {
        background: #2c3e50;
        color: #3498db;
        padding-left: 55px;
    }
    
    /* Menu overlay */
    #menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    #menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* Submenu for bottom nav */
.nav-submenu {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: #34495e;
    display: none;
    flex-direction: column;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1001;
}

.nav-submenu.show {
    display: flex;
}

.submenu-item {
    padding: 16px 20px;
    color: #ecf0f1;
    text-decoration: none;
    border-bottom: 1px solid #2c3e50;
    display: flex;
    align-items: center;
}

.submenu-item:hover {
    background: #2c3e50;
    color: #3498db;
    text-decoration: none;
}

.submenu-item .fa {
    margin-right: 12px;
    width: 20px;
}