/* ========================================
   SIDEBAR MOBILE MENU STYLES
   ======================================== */

/* Hide sidebar elements on desktop */
.sidebar-overlay,
.sidebar-menu,
.sidebar-toggle {
    display: none;
}

/* Mobile/Tablet Styles - Show hamburger menu */
@media (max-width: 1199px) {
    /* Hide desktop navigation on mobile/tablet */
    .desktop-nav {
        display: none !important;
    }

    /* Sidebar Toggle Button */
    .sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        background: transparent;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 8px 10px;
        cursor: pointer;
        z-index: 100;
        margin: 0;
    }

    .sidebar-toggle .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #0b0c41;
        border-radius: 1px;
        transition: all 0.3s ease;
    }

    .sidebar-toggle .icon-bar + .icon-bar {
        margin-top: 4px;
    }

    .sidebar-toggle:hover .icon-bar {
        background-color: #FBA301;
    }

    /* Sidebar Overlay */
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Sidebar Menu */
    .sidebar-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        max-width: 85%;
        height: 100%;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .sidebar-menu.active {
        right: 0;
    }

    /* Sidebar Header */
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
    }

    .sidebar-logo {
        max-width: 140px;
        height: auto;
        object-fit: contain;
    }

    .sidebar-close {
        background: none;
        border: none;
        font-size: 24px;
        color: #333;
        cursor: pointer;
        padding: 5px;
        transition: color 0.3s ease;
    }

    .sidebar-close:hover {
        color: #FBA301;
    }

    /* Sidebar Navigation */
    .sidebar-nav {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .sidebar-nav > li {
        border-bottom: 1px solid #eee;
    }

    .sidebar-nav > li > a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .sidebar-nav > li > a span.fa-solid,
    .sidebar-nav > li > a span.fa-brands {
        width: 24px;
        margin-right: 12px;
        color: #0b0c41;
        font-size: 16px;
    }

    .sidebar-nav > li > a:hover,
    .sidebar-nav > li > a:focus {
        background: #f8f9fa;
        color: #FBA301;
    }

    .sidebar-nav > li > a:hover span.fa-solid,
    .sidebar-nav > li > a:focus span.fa-solid {
        color: #FBA301;
    }

    /* Submenu Toggle */
    .submenu-toggle {
        position: relative;
    }

    .submenu-arrow {
        margin-left: auto !important;
        margin-right: 0 !important;
        width: auto !important;
        font-size: 12px !important;
        transition: transform 0.3s ease;
    }

    .has-submenu.open .submenu-arrow {
        transform: rotate(180deg);
    }

    /* Sidebar Submenu */
    .sidebar-submenu {
        list-style: none;
        margin: 0;
        padding: 0;
        background: #f8f9fa;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-submenu.open .sidebar-submenu {
        max-height: 500px;
    }

    .sidebar-submenu li {
        border-top: 1px solid #eee;
    }

    .sidebar-submenu li a {
        display: block;
        padding: 12px 20px 12px 56px;
        color: #555;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s ease;
    }

    .sidebar-submenu li a:hover {
        background: #eee;
        color: #FBA301;
    }

    /* Sidebar Contact Info */
    .sidebar-contact {
        padding: 20px;
        border-top: 1px solid #eee;
        background: #f8f9fa;
    }

    .sidebar-contact p {
        margin: 0 0 10px;
        font-size: 13px;
        color: #555;
        display: flex;
        align-items: center;
    }

    .sidebar-contact p:last-child {
        margin-bottom: 0;
    }

    .sidebar-contact span {
        width: 20px;
        margin-right: 10px;
        color: #0b0c41;
    }

    .sidebar-contact a {
        color: #333;
        text-decoration: none;
    }

    .sidebar-contact a:hover {
        color: #FBA301;
    }

    /* Sidebar Social Icons */
    .sidebar-social {
        display: flex;
        justify-content: center;
        gap: 15px;
        padding: 20px;
        border-top: 1px solid #eee;
    }

    .sidebar-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #0b0c41;
        color: #fff;
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .sidebar-social a:hover {
        background: #FBA301;
        transform: translateY(-2px);
    }

    /* Body scroll lock when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }
}

/* Extra small devices */
@media (max-width: 575px) {
    .sidebar-menu {
        width: 260px;
    }

    .sidebar-nav > li > a {
        padding: 14px 18px;
        font-size: 14px;
    }

    .sidebar-submenu li a {
        padding: 10px 18px 10px 50px;
        font-size: 13px;
    }

    .sidebar-contact {
        padding: 15px 18px;
    }

    .sidebar-contact p {
        font-size: 12px;
    }
}
