<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent">
    <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="20dp">
        <TextView android:id="@+id/hospital" android:layout_width="match_parent" android:layout_height="wrap_content" android:textSize="20sp" android:textStyle="bold" android:textColor="@color/purple" />
        <TextView android:id="@+id/who" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="4dp" />
        <LinearLayout android:id="@+id/wardBox" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:visibility="gone" android:layout_marginTop="8dp">
            <com.google.android.material.textfield.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Patient UHID (ward mode, optional)" style="@style/Widget.Material3.TextInputLayout.OutlinedBox">
                <com.google.android.material.textfield.TextInputEditText android:id="@+id/wardUhid" android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="textCapCharacters" />
            </com.google.android.material.textfield.TextInputLayout>
        </LinearLayout>
        <com.google.android.material.button.MaterialButton android:id="@+id/take" android:layout_width="match_parent" android:layout_height="88dp" android:layout_marginTop="16dp" android:text="Take reading" android:textSize="22sp" />
        <TextView android:id="@+id/status" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:gravity="center" android:textSize="16sp" />
        <com.google.android.material.materialswitch.MaterialSwitch android:id="@+id/autoListen" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="12dp" android:text="Always listen for my devices (recommended at home)" />
        <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="12dp" android:orientation="horizontal">
            <com.google.android.material.button.MaterialButton android:id="@+id/manual" android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" android:text="Type reading" style="@style/Widget.Material3.Button.OutlinedButton" />
            <com.google.android.material.button.MaterialButton android:id="@+id/photo" android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:text="Photo of device" style="@style/Widget.Material3.Button.OutlinedButton" />
        </LinearLayout>
        <com.google.android.material.button.MaterialButton android:id="@+id/medicines" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:text="My medicines" style="@style/Widget.Material3.Button.TonalButton" />
        <com.google.android.material.button.MaterialButton android:id="@+id/health" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:text="Share data from my watch (Health Connect)" style="@style/Widget.Material3.Button.TonalButton" />
        <TextView android:id="@+id/schedule" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="16dp" />
        <TextView android:id="@+id/queue" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:textStyle="bold" />
        <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Recent" android:textStyle="bold" android:layout_marginTop="16dp" />
        <TextView android:id="@+id/history" android:layout_width="match_parent" android:layout_height="wrap_content" android:lineSpacingExtra="4dp" />
        <TextView android:id="@+id/helpline" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="16dp" android:textColor="#D93848" android:textStyle="bold" />
        <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="16dp" android:orientation="horizontal">
            <com.google.android.material.button.MaterialButton android:id="@+id/sync" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Send now" style="@style/Widget.Material3.Button.TextButton" />
            <com.google.android.material.button.MaterialButton android:id="@+id/unpair" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Unpair" style="@style/Widget.Material3.Button.TextButton" />
        </LinearLayout>
    </LinearLayout>
</ScrollView>
