/* ============================================================
   BATI+ PREMIUIM DASHBOARD TRANSFORMATION (SIDEBAR MODE)
   ============================================================ */

@media (min-width: 769px) {
    /* Main Layout: Side-by-Side */
    .phone-container {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        flex-direction: row !important; /* Sidebar on the left, Content on the right */
        display: flex !important;
    }

    /* Transform TAB BAR to SIDEBAR */
    .tab-bar {
        position: relative !important;
        flex-direction: column !important;
        width: 240px !important;
        height: 100vh !important;
        background: var(--bleu-titre) !important;
        padding: 40px 0 !important;
        justify-content: flex-start !important;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
        border-radius: 0 !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .tab-bar .tab {
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding: 15px 25px !important;
        width: 100% !important;
        gap: 15px !important;
        color: rgba(255,255,255,0.7) !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .tab-bar .tab.active {
        background: rgba(255,255,255,0.1) !important;
        color: white !important;
        border-left: 4px solid var(--rose-action);
    }

    .tab-bar .tab-icon {
        font-size: 20px !important;
        margin-bottom: 0 !important;
    }

    /* Adjust Screens for Sidebar */
    .screen {
        flex: 1 !important;
        position: relative !important;
        height: 100vh !important;
    }

    .scroll-content {
        padding: 40px 50px !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
    }

    /* Optimization of Material Cards for Density */
    #sites-list, #stock-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 20px !important;
    }

    .card {
        min-height: 140px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        transition: transform 0.2s, box-shadow 0.2s !important;
        cursor: pointer !important;
    }

    .card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    }

    /* Header Styling */
    .app-bar, .form-header {
        padding: 15px 50px !important;
        background: white !important;
        color: var(--bleu-titre) !important;
        border-bottom: 1px solid #eee !important;
        box-shadow: none !important;
    }

    .app-bar h1, .form-header h2 {
        font-weight: 800 !important;
        letter-spacing: -1px !important;
    }

    /* Add a "floating" style for the main FAB button if it exists */
    .btn-fab, button[style*="border-radius: 50%"] {
        right: 40px !important;
        bottom: 40px !important;
        width: 65px !important;
        height: 65px !important;
        box-shadow: 0 10px 30px rgba(236, 64, 122, 0.4) !important;
    }

    /* Back Arrow visibility fix (Pro Design) */
    .back-arrow {
        color: var(--bleu-titre) !important;
        left: 30px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-weight: bold !important;
    }

    .back-arrow:hover {
        transform: translateY(-50%) translateX(-3px) !important;
    }
}

