<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="16dp">

    <!-- Credential Provider Status -->
    <LinearLayout
        android:id="@+id/providerStatusContainer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:gravity="center_vertical"
        android:padding="12dp"
        android:layout_marginBottom="8dp"
        android:background="@drawable/bg_provider_status"
        android:visibility="gone">

        <TextView
            android:id="@+id/providerStatusText"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="@string/provider_enabled"
            android:textSize="14sp"
            android:textColor="?android:attr/textColorPrimary" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/btnEnableProvider"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/btn_enable"
            android:visibility="gone"
            app:strokeColor="@color/provider_button_outline"
            style="@style/Widget.Material3.Button.OutlinedButton" />
    </LinearLayout>

    <TextView
        android:id="@+id/statusText"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minLines="2"
        android:text="@string/waiting_for_key"
        android:textSize="16sp"
        android:gravity="center"
        android:padding="16dp"
        android:textColor="?android:attr/textColorPrimary" />

    <TextView
        android:id="@+id/connectionType"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/not_connected"
        android:textSize="12sp"
        android:gravity="center"
        android:textColor="?android:attr/textColorSecondary" />

    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:layout_marginVertical="16dp"
        android:background="?android:attr/listDivider" />

    <Button
        android:id="@+id/btnDeviceInfo"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minHeight="56dp"
        android:text="@string/btn_show_device_status"
        android:enabled="false" />

    <Button
        android:id="@+id/btnListCredentials"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minHeight="56dp"
        android:layout_marginTop="8dp"
        android:text="@string/btn_list_credentials"
        android:enabled="false" />

    <Button
        android:id="@+id/btnChangePin"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minHeight="56dp"
        android:layout_marginTop="8dp"
        android:text="@string/btn_change_pin"
        android:enabled="false" />

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:layout_marginTop="16dp">

        <TextView
            android:id="@+id/resultText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:fontFamily="monospace"
            android:textSize="12sp"
            android:padding="8dp"
            android:background="?android:attr/colorBackgroundFloating"
            android:textColor="?android:attr/textColorPrimary" />
    </ScrollView>

</LinearLayout>
