/* Mobile Sidebar Menu Styles v1.0 */

/* Overlay */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Container */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -80%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}
.mobile-sidebar.active {
    left: 0;
}

/* Header - Amarillo marca con gradiente suave */
.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fed700 0%, #f5d000 100%);
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.mobile-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mobile-sidebar-close {
    background: none;
    border: none;
    color: #333;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease;
}
.mobile-sidebar-close:hover {
    transform: scale(1.1);
}

/* Menu List */
.mobile-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-sidebar-menu > li {
    border-bottom: 1px solid #eee;
}

/* Menu Items - Fondo blanco */
.mobile-sidebar-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #ffffff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}
.mobile-sidebar-menu > li > a:hover,
.mobile-sidebar-menu > li > a:active {
    background: #f5f5f5;
}
.mobile-sidebar-menu > li > a .menu-arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.3s ease;
}
.mobile-sidebar-menu > li.open > a .menu-arrow {
    transform: rotate(180deg);
}

/* Submenu - Blanco con gradiente muy sutil */
.mobile-sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: #fafafa;
    transition: max-height 0.3s ease;
}
.mobile-sidebar-menu > li.open > .mobile-sidebar-submenu {
    max-height: 500px;
}
.mobile-sidebar-submenu li a {
    display: block;
    padding: 12px 20px 12px 35px;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    background: #ffffff;
}
.mobile-sidebar-submenu li a:hover,
.mobile-sidebar-submenu li a:active {
    background: #f5f8fc;
    color: #2d8cf0;
    padding-left: 40px;
}
.mobile-sidebar-submenu li:last-child a {
    border-bottom: none;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    position: absolute;
    left: -10px;
    top: 22px;
    width: 45px;
    height: 45px;
    background: transparent !important;
    border: none !important;
    font-size: 24px;
    color: #343E49 !important;
    cursor: pointer;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Media Queries */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .navbar-default {
        display: none !important;
    }
}
