/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #667eea;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.mobile-logo {
    max-width: 90px;
    height: auto;
}

.mobile-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.mobile-close-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Mobile Navigation */
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav > ul > li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 30px;
}

/* Mobile Submenu */
.mobile-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-submenu-toggle .arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.mobile-submenu.active .arrow {
    transform: rotate(180deg);
}

.mobile-submenu-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.2);
}

.mobile-submenu.active .mobile-submenu-items {
    max-height: 300px;
}

.mobile-submenu-items a {
    padding: 12px 40px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-submenu-items a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 50px;
}

/* Mobile Overlay */
.mobile-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;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Show mobile menu button on mobile and tablet */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Adjust body padding for mobile menu button */
    body {
        padding-top: 130px;
        margin-top: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-sidebar {
        width: 280px;
        left: -280px;
    }
    
    .mobile-menu-btn {
        width: 45px;
        height: 45px;
        top: 15px;
        left: 15px;
    }
}
