@{
    Layout = "~/Views/Admin/Transport/SpjDriverUpst/Shared/_Layout.cshtml";
    ViewData["Title"] = "Detail Perjalanan - DLH";
}

<div class="w-full lg:max-w-sm mx-auto bg-gray-50 min-h-screen">
  <div class="bg-upst text-white px-6 pt-10 pb-16 rounded-b-[40px] shadow-lg relative overflow-hidden">
        <div class="absolute top-0 right-0 w-32 h-32 bg-white/5 rounded-full -mr-16 -mt-16"></div>
        <div class="flex items-center justify-between relative z-10">
            <a href="@Url.Action("Index", "History")" class="w-10 h-10 flex items-center justify-center bg-white/20 hover:bg-white/30 rounded-xl transition-colors">
                <i class="w-5 h-5" data-lucide="arrow-left"></i>
            </a>
            <div class="text-center">
                <h1 class="text-lg font-bold tracking-wide uppercase">Detail SPJ</h1>
                <p class="text-[10px] text-white/70 font-medium">Informasi Lengkap Perjalanan</p>
            </div>
            <div class="w-10"></div>
        </div>
    </div>

    <div class="px-5 -mt-8 space-y-5 relative z-20">
        <div class="bg-white rounded-3xl p-6 border border-gray-100">
            <div class="flex flex-col items-center text-center mb-6">
                <span class="text-[10px] font-black text-gray-400 uppercase tracking-[0.2em] mb-1">Nomor SPJ</span>
                <h2 class="text-lg font-black text-gray-900 leading-tight">SPJ/07-2025/PKM/000476</h2>
            </div>
            
            <div class="grid grid-cols-2 gap-4 py-4 border-t border-b border-gray-50">
                <div class="space-y-1">
                    <span class="text-[10px] font-bold text-gray-400 uppercase">Kendaraan</span>
                    <p class="font-black text-gray-800 text-sm">B 9632 TOR</p>
                </div>
                <div class="space-y-1 text-right">
                    <span class="text-[10px] font-bold text-gray-400 uppercase">No. Pintu</span>
                    <p class="font-mono font-bold text-gray-700 text-sm">JRC 005</p>
                </div>
            </div>

            <div class="pt-4 space-y-1">
                <span class="text-[10px] font-bold text-gray-400 uppercase">Tujuan Akhir</span>
                <div class="flex items-center gap-2">
                    <i class="w-4 h-4 text-upst" data-lucide="map-pin"></i>
                    <p class="font-bold text-gray-800">Taman Barito</p>
                </div>
            </div>
        </div>

        <div class="flex divide-x divide-gray-100 border-b bg-white rounded-xl border-gray-100 py-3">
        <div class="flex-1 text-center">
            <p class="text-[10px] font-bold text-gray-400 uppercase">Lokasi</p>
            <p class="text-sm font-black text-gray-900">3</p>
        </div>
        <div class="flex-1 text-center">
            <p class="text-[10px] font-bold text-green-500 uppercase">Selesai</p>
            <p class="text-sm font-black text-green-600">1</p>
        </div>
        <div class="flex-1 text-center">
            <p class="text-[10px] font-bold text-yellow-500 uppercase">Proses</p>
            <p class="text-sm font-black text-yellow-600">1</p>
        </div>
        <div class="flex-1 text-center">
            <p class="text-[10px] font-bold text-red-500 uppercase">Batal</p>
            <p class="text-sm font-black text-red-600">1</p>
        </div>
    </div>

    <div class="p-4 space-y-4 bg-white rounded-3xl border border-gray-100">
        <h3 class="text-[11px] font-black text-gray-400 uppercase tracking-widest mb-2 px-1">Riwayat Lokasi Pengangkutan</h3>
        
        <div class="flex gap-4 group">
            <div class="flex flex-col items-center">
                <div class="w-6 h-6 rounded-full bg-yellow-500 flex items-center justify-center text-white ring-4 ring-yellow-50">
                    <i class="w-3 h-3" data-lucide="clock"></i>
                </div>
                <div class="w-0.5 h-full bg-gray-100 my-1"></div>
            </div>
            <div class="flex-1 pb-4">
                <div class="flex justify-between items-start mb-1">
                    <h4 class="text-sm font-black text-gray-800 uppercase leading-none">CV Tri Mitra Utama</h4>
                    <span class="text-[9px] font-bold text-yellow-600 uppercase">Proses</span>
                </div>
                <p class="text-xs text-gray-500 leading-snug">Shell Radio Dalam, Jl. Radio Dalam Raya No.6C, Kebayoran Baru</p>
            </div>
        </div>

        <div class="flex gap-4 group">
            <div class="flex flex-col items-center">
                <div class="w-6 h-6 rounded-full bg-green-500 flex items-center justify-center text-white ring-4 ring-green-50">
                    <i class="w-3 h-3" data-lucide="check"></i>
                </div>
                <div class="w-0.5 h-full bg-gray-100 my-1"></div>
            </div>
            <div class="flex-1 pb-4">
                <div class="flex justify-between items-start mb-1">
                    <h4 class="text-sm font-black text-gray-800 uppercase leading-none">CV Tri Berkah Sejahtera</h4>
                    <span class="text-[9px] font-bold text-green-600 uppercase">Selesai</span>
                </div>
                <p class="text-xs text-gray-500 leading-snug">Kp. Pertanian II Rt.004 Rw.001, Duren Sawit, Jakarta Timur</p>
            </div>
        </div>

        <div class="flex gap-4 group">
            <div class="flex flex-col items-center">
                <div class="w-6 h-6 rounded-full bg-red-500 flex items-center justify-center text-white ring-4 ring-red-50">
                    <i class="w-3 h-3" data-lucide="x"></i>
                </div>
            </div>
            <div class="flex-1">
                <div class="flex justify-between items-start mb-1">
                    <h4 class="text-sm font-black text-gray-800 uppercase leading-none text-gray-400">CV Tri Berkah Sejahtera</h4>
                    <span class="text-[9px] font-bold text-red-600 uppercase">Batal</span>
                </div>
                <p class="text-xs text-gray-400 leading-snug italic">Titik pengangkutan dibatalkan oleh sistem.</p>
            </div>
        </div>
    </div>

        <!-- Bottom Navigation -->
        <partial name="~/Views/Admin/Transport/SpjDriverUpst/Shared/Components/_Navigation.cshtml" />
</div>