<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="24dp"
    android:background="#0f172a">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="⚡ bKash ISP Automation Gateway"
        android:textColor="#38bdf8"
        android:textSize="20sp"
        android:textStyle="bold" />

    <TextView
        android:id="@+id/tvServiceStatus"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:text="🟡 Initializing Service..."
        android:textColor="#34d399"
        android:textSize="13sp" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="24dp"
        android:text="ISP Webhook Endpoint URL:"
        android:textColor="#94a3b8"
        android:textSize="12sp" />

    <EditText
        android:id="@+id/editServerUrl"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#1e293b"
        android:textColor="#f8fafc"
        android:padding="12dp"
        android:layout_marginTop="6dp"
        android:textSize="14sp" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="16dp"
        android:text="HMAC SHA-256 Shared Secret:"
        android:textColor="#94a3b8"
        android:textSize="12sp" />

    <EditText
        android:id="@+id/editSecretKey"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#1e293b"
        android:textColor="#f8fafc"
        android:padding="12dp"
        android:layout_marginTop="6dp"
        android:textSize="14sp" />

    <Button
        android:id="@+id/btnSaveConfig"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:backgroundTint="#0284c7"
        android:text="Save Gateway Configuration" />

    <Button
        android:id="@+id/btnGrantNotification"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:backgroundTint="#475569"
        android:text="Grant Notification Listener Permission" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="24dp"
        android:text="How it works:\n1. Intercepts incoming SMS from bKash / 16247 or notifications\n2. Regex scrapes TrxID, Amount Received, and Ref (ISP Username)\n3. Cryptographically signs packet with HMAC-SHA256\n4. Dispatches POST request to /api/bkash-sim/webhook"
        android:textColor="#64748b"
        android:textSize="12sp" />

</LinearLayout>
