<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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="wrap_content"
    android:padding="24dp">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="800dp"
        android:layout_gravity="center_horizontal"
        android:background="@drawable/bg_dialog_rounded"
        android:padding="36dp">

        <!-- ==========================================
             上半部: 標題與副標
             ========================================== -->
        <LinearLayout
            android:id="@+id/layoutHeader"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:gravity="center_horizontal"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:layout_marginTop="24dp">

            <TextView
                android:id="@+id/tvTitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/product_delivery_success"
                android:textSize="44sp"
                android:textStyle="bold"
                android:textColor="@color/black"
                android:layout_marginBottom="16dp" />

            <TextView
                android:id="@+id/tvSubtitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/please_go_to_cabinet_to_pick_up_goods"
                android:textSize="32sp"
                android:textColor="@color/primary"
                android:textStyle="bold" />
        </LinearLayout>

        <!-- ==========================================
             中間部: 圓形貨道數字
             ========================================== -->
        <TextView
            android:id="@+id/tvLaneNumber"
            android:layout_width="260dp"
            android:layout_height="260dp"
            android:background="@drawable/bg_circle_primary"
            android:gravity="center"
            android:text="99"
            android:textColor="@color/white"
            android:textSize="110sp"
            android:textStyle="bold"
            app:layout_constraintTop_toBottomOf="@id/layoutHeader"
            app:layout_constraintBottom_toTopOf="@id/btnConfirm"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent" />

        <!-- ==========================================
             下半部: 按鈕與商標區域
             ========================================== -->
        <androidx.appcompat.widget.AppCompatButton
            android:id="@+id/btnConfirm"
            android:layout_width="match_parent"
            android:layout_height="72dp"
            android:background="@drawable/bg_button_primary"
            android:text="@string/confirm_goods_taken_hardcoded"
            android:textSize="26sp"
            android:textColor="@color/onPrimary"
            android:textAllCaps="false"
            app:layout_constraintBottom_toTopOf="@id/tvBrand"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:layout_marginBottom="16dp" />

        <TextView
            android:id="@+id/tvBrand"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Powered by Star Helper | 由 Star Helper 提供技術支援"
            android:textSize="14sp"
            android:textColor="@color/outline"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:layout_marginBottom="8dp" />

    </androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>
