/* =========================================================================
   MOBILE RESPONSIVENESS FOR DEMO WIDGET MOCKUPS
   Creates native-like navigation for WhatsApp & Messages on mobile
   ========================================================================= */

@media (max-width: 768px) {
    /* 1. Full screen overlay on mobile */
    .desktop-mockup-overlay {
        background: #000; /* Solid black background for full screen apps */
    }

    /* 2. Split-pane navigation to Stacked navigation */
    .wa-web-sidebar, .mac-sidebar {
        width: 100%;
        min-width: 100%;
        display: flex;
        flex-direction: column;
        z-index: 10; /* Sidebar on top initially */
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* Default state of the main view: hidden off-screen to the right */
    .wa-web-main, .mac-main {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 20;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        background: #fff;
    }
    
    /* WhatsApp specific main view background */
    .wa-web-main {
        background: #efeae2;
    }

    /* 3. The "Chat Open" Active State */
    .desktop-app-container.chat-active .wa-web-sidebar,
    .desktop-app-container.chat-active .mac-sidebar {
        /* Optional: slight parallax slide out */
        transform: translateX(-30%);
    }

    .desktop-app-container.chat-active .wa-web-main,
    .desktop-app-container.chat-active .mac-main {
        transform: translateX(0); /* Slide into view */
    }

    /* 4. Chat Header Back Buttons */
    .mobile-back-btn {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #007aff; /* iOS Blue */
        cursor: pointer;
        padding: 8px;
        margin-left: -8px; /* Offset padding */
        font-size: 1rem;
    }
    .wa-header .mobile-back-btn {
        color: #00a884; /* WhatsApp green */
    }



/* Hide back buttons on desktop */
@media (min-width: 769px) {
    .mobile-back-btn {
        display: none !important;
    }

}
}
