/* ============================================================
   assets/css/pages/order-tracking.css — v1.0
   ------------------------------------------------------------
   Styling untuk:
     • Timeline horizontal order tracking
     • Dispute card
     • Verify admin form section
     • Status badge per state
   ============================================================ */

/* ============================================================
   TIMELINE
   ============================================================ */
.order-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    padding: 12px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.order-timeline::-webkit-scrollbar { height: 4px; }
.order-timeline::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

.order-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 64px;
    text-align: center;
    flex-shrink: 0;
    position: relative;
}
.order-timeline-step::after {
    content: "";
    position: absolute;
    top: 14px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.order-timeline-step:last-child::after { display: none; }
.order-timeline-step.is-done::after { background: #22c55e; }

body.dark .order-timeline-step::after { background: #334155; }
body.dark .order-timeline-step.is-done::after { background: #22c55e; }

.order-timeline-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: #e2e8f0;
    color: #94a3b8;
    z-index: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.order-timeline-step.is-done .order-timeline-dot {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.order-timeline-step.is-current .order-timeline-dot {
    background: #6366f1;
    color: #ffffff;
    animation: orderTimelinePulse 2s ease-in-out infinite;
}
body.dark .order-timeline-dot { background: #334155; color: #64748b; }
body.dark .order-timeline-step.is-done .order-timeline-dot { background: #16a34a; }

@keyframes orderTimelinePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); }
    50%      { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

.order-timeline-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
    line-height: 1.2;
}
.order-timeline-step.is-done .order-timeline-label { color: #16a34a; }
.order-timeline-step.is-current .order-timeline-label { color: #6366f1; }
body.dark .order-timeline-label { color: #94a3b8; }

.order-timeline-time {
    font-size: 8px;
    color: #94a3b8;
    font-family: monospace;
    line-height: 1.1;
    white-space: nowrap;
}
body.dark .order-timeline-time { color: #64748b; }

/* ============================================================
   STATUS BADGE per-state
   ============================================================ */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.3;
}
.order-status-pending         { background: #fef3c7; color: #92400e; }
.order-status-verified        { background: #dbeafe; color: #1e40af; }
.order-status-payment_pending { background: #e0e7ff; color: #4338ca; }
.order-status-paid            { background: #d1fae5; color: #065f46; }
.order-status-cash_pending    { background: #ffedd5; color: #9a3412; }
.order-status-driver_assigned { background: #cffafe; color: #0e7490; }
.order-status-delivering      { background: #fef3c7; color: #b45309; }
.order-status-delivered       { background: #d1fae5; color: #065f46; }
.order-status-completed       { background: #f0fdf4; color: #166534; }
.order-status-rejected        { background: #fee2e2; color: #991b1b; }
.order-status-cancelled       { background: #e2e8f0; color: #475569; }

body.dark .order-status-pending         { background: rgba(120,53,15,0.5); color: #fcd34d; }
body.dark .order-status-verified        { background: rgba(30,58,138,0.5); color: #93c5fd; }
body.dark .order-status-payment_pending { background: rgba(49,46,129,0.5); color: #c7d2fe; }
body.dark .order-status-paid            { background: rgba(6,78,59,0.5); color: #6ee7b7; }
body.dark .order-status-cash_pending    { background: rgba(120,53,15,0.5); color: #fdba74; }
body.dark .order-status-driver_assigned { background: rgba(8,51,68,0.5); color: #67e8f9; }
body.dark .order-status-delivering      { background: rgba(120,53,15,0.5); color: #fcd34d; }
body.dark .order-status-delivered       { background: rgba(6,78,59,0.5); color: #6ee7b7; }
body.dark .order-status-completed       { background: rgba(6,78,59,0.4); color: #86efac; }
body.dark .order-status-rejected        { background: rgba(127,26,26,0.5); color: #fca5a5; }
body.dark .order-status-cancelled       { background: #334155; color: #cbd5e1; }

/* ============================================================
   ADMIN VERIFY FORM SECTION
   ============================================================ */
.admin-verify-section {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border: 1px solid #fbbf24;
}
body.dark .admin-verify-section {
    background: linear-gradient(135deg, rgba(120,53,15,0.25) 0%, rgba(30,41,59,0.6) 100%);
    border-color: rgba(251,191,36,0.4);
}
.admin-verify-title {
    font-size: 11px;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
body.dark .admin-verify-title { color: #fcd34d; }
.admin-verify-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
@media (max-width: 480px) {
    .admin-verify-grid { grid-template-columns: 1fr; }
}
.admin-verify-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #78350f;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
body.dark .admin-verify-label { color: #fbbf24; }
.admin-verify-summary {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed #fbbf24;
    font-size: 12px;
}
body.dark .admin-verify-summary {
    background: rgba(15,23,42,0.4);
    border-color: rgba(251,191,36,0.3);
}
.admin-verify-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}
.admin-verify-summary-row.total {
    font-weight: 800;
    color: #4f46e5;
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
    padding-top: 6px;
    font-size: 14px;
}
body.dark .admin-verify-summary-row.total {
    color: #a5b4fc;
    border-color: #334155;
}

/* ============================================================
   DISPUTE CARD
   ============================================================ */
.dispute-card {
    border: 1px solid #e2e8f0;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fff;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.dispute-card:hover {
    box-shadow: 0 4px 12px -4px rgba(245, 158, 11, 0.25);
    transform: translateY(-1px);
}
body.dark .dispute-card {
    background: #1e293b;
    border-color: #334155;
    border-left-color: #f59e0b;
}
.dispute-card.dispute-resolved { border-left-color: #22c55e; }
.dispute-card.dispute-rejected { border-left-color: #ef4444; }
.dispute-card.dispute-in_review { border-left-color: #0ea5e9; }

.dispute-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.dispute-cat-payment { background: #dbeafe; color: #1e40af; }
.dispute-cat-driver  { background: #fef3c7; color: #92400e; }
.dispute-cat-product { background: #e0e7ff; color: #4338ca; }
.dispute-cat-other   { background: #e2e8f0; color: #475569; }
body.dark .dispute-cat-payment { background: rgba(30,58,138,0.4); color: #93c5fd; }
body.dark .dispute-cat-driver  { background: rgba(120,53,15,0.4); color: #fcd34d; }
body.dark .dispute-cat-product { background: rgba(49,46,129,0.4); color: #c7d2fe; }
body.dark .dispute-cat-other   { background: #334155; color: #cbd5e1; }

/* ============================================================
   PAYMENT METHOD CHOOSER
   ============================================================ */
.pay-method-chooser {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
    margin-top: 8px;
}
.pay-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 8px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    font-family: inherit;
    text-align: center;
    line-height: 1.2;
}
.pay-method-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.3);
}
.pay-method-btn i {
    font-size: 16px;
}
.pay-method-btn.is-selected {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #4f46e5;
}
body.dark .pay-method-btn {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}
body.dark .pay-method-btn:hover {
    border-color: #818cf8;
    color: #a5b4fc;
}
body.dark .pay-method-btn.is-selected {
    background: rgba(79,70,229,0.2);
    border-color: #818cf8;
    color: #a5b4fc;
}