<?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"
    android:fillViewport="true"
    android:background="#1E293B">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="24dp">

        <!-- Title -->
        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="RIT Driver Tracker"
            android:textColor="#FFFFFF"
            android:textSize="28sp"
            android:textStyle="bold"
            android:gravity="center"
            android:layout_marginTop="24dp"
            android:layout_marginBottom="8dp" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="Live Background Geolocation Broadcaster"
            android:textColor="#94A3B8"
            android:textSize="12sp"
            android:gravity="center"
            android:layout_marginBottom="32dp" />



        <!-- Route Number Input -->
        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="BUS ROUTE NUMBER"
            android:textColor="#94A3B8"
            android:textSize="11sp"
            android:textStyle="bold"
            android:layout_marginBottom="6dp" />

        <EditText
            android:id="@+id/etRouteNumber"
            android:layout_width="match_parent"
            android:layout_height="52dp"
            android:background="@android:drawable/editbox_background"
            android:hint="R01"
            android:text="R01"
            android:inputType="textCapCharacters"
            android:padding="12dp"
            android:textSize="14sp"
            android:layout_marginBottom="20dp" />

        <!-- Driver PIN Input -->
        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="DRIVER SECURITY PIN"
            android:textColor="#94A3B8"
            android:textSize="11sp"
            android:textStyle="bold"
            android:layout_marginBottom="6dp" />

        <EditText
            android:id="@+id/etDriverPin"
            android:layout_width="match_parent"
            android:layout_height="52dp"
            android:background="@android:drawable/editbox_background"
            android:hint="Enter Security PIN"
            android:text="RITDRIVER"
            android:inputType="textPassword"
            android:padding="12dp"
            android:textSize="14sp"
            android:layout_marginBottom="32dp" />

        <!-- Start Sharing Button -->
        <Button
            android:id="@+id/btnStartSharing"
            android:layout_width="match_parent"
            android:layout_height="56dp"
            android:backgroundTint="#F97316"
            android:text="START LOCATION SHARING"
            android:textColor="#FFFFFF"
            android:textStyle="bold"
            android:textSize="15sp"
            android:layout_marginBottom="16dp" />

        <!-- Stop Sharing Button -->
        <Button
            android:id="@+id/btnStopSharing"
            android:layout_width="match_parent"
            android:layout_height="56dp"
            android:backgroundTint="#EF4444"
            android:text="STOP LOCATION SHARING"
            android:textColor="#FFFFFF"
            android:textStyle="bold"
            android:textSize="15sp"
            android:visibility="gone"
            android:layout_marginBottom="24dp" />

        <!-- Status Card -->
        <LinearLayout
            android:id="@+id/statusCard"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:background="#0F172A"
            android:padding="16dp"
            android:visibility="visible">

            <TextView
                android:id="@+id/tvStatusHeader"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="STATUS: INACTIVE"
                android:textColor="#94A3B8"
                android:textStyle="bold"
                android:textSize="12sp"
                android:layout_marginBottom="8dp" />

            <TextView
                android:id="@+id/tvStatusLogs"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Toggle location sharing to begin tracking.\nKeep phone screen turned on or off — the app will broadcast fine coordinates in the background."
                android:textColor="#64748B"
                android:textSize="12sp"
                android:lineSpacingExtra="3dp" />
        </LinearLayout>

        <!-- Keep screen notice -->
        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="Notice: Once active, you can lock the screen or close the app interface. The native system foreground notification service keeps tracking alive."
            android:textColor="#64748B"
            android:textSize="10sp"
            android:gravity="center"
            android:layout_marginTop="24dp"
            android:layout_marginBottom="24dp" />

    </LinearLayout>
</ScrollView>
