<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <!-- Fake Status Bar View -->
    <View
        android:id="@+id/fakeStatusBar"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:background="@color/silabs_redtheme_status_bar_color" />

    <View
        android:layout_width="match_parent"
        android:layout_height="@dimen/matter_1dp"
        android:background="@color/grey" />

    <!-- Toolbar just below fake status bar -->
    <androidx.appcompat.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="@color/silabs_redtheme_tool_bar_color"
        android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" />

    <!-- Content container replacing the direct fragment + overlay stacking -->
    <FrameLayout
        android:background="@drawable/modal_bg"
        android:id="@+id/content_container"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginBottom="50dp"
        android:layout_weight="1">

        <!-- Fragment (base content) -->
        <androidx.fragment.app.FragmentContainerView
            android:id="@+id/fragment"
            android:name="com.siliconlabs.bledemo.features.demo.connected_lighting.fragments.ConnectedLightingFragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

        <!-- Semi-transparent overlay when showing progress -->
        <View
            android:id="@+id/view_progress_overlay"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#B3FFFFFF"
            android:visibility="gone"
            android:clickable="true"
            android:focusable="true" />

        <!-- Progress bar for showing connection/initialization process -->
        <ProgressBar
            android:id="@+id/progress_bar_initialization"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:visibility="gone"
            android:indeterminate="true"
            android:indeterminateTint="@color/silabs_dark_blue"
            android:indeterminateTintMode="src_in"
            android:contentDescription="@string/loading_ellipsis"
            android:elevation="8dp"
            style="?android:attr/progressBarStyleLarge" />

    </FrameLayout>
</LinearLayout>