/* C:\xampp2\htdocs\welfare-system\assets\css\style.css */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --police-blue: #0A2240;
    --police-blue-light: #153E75;
    --gold: #C5A059;
    --gold-light: #E5C483;
    --bg-light: #F4F6F9;
    --bg-white: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(10, 34, 64, 0.04);
    --shadow-md: 0 4px 20px rgba(10, 34, 64, 0.08);
    --shadow-lg: 0 10px 30px rgba(10, 34, 64, 0.12);
    --border-radius: 12px;
}

body {
    font-family: 'Sarabun', 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navbar Customizations */
.navbar-custom {
    background: #720000;
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.navbar-brand-title {
    font-family: 'Sarabun';
    font-weight: 700;
    color: var(--bg-white);
    letter-spacing: 0.5px;
}

.navbar-brand-sub {
    font-size: 0.75rem;
    color: var(--gold-light);
    font-weight: 500;
    text-transform: uppercase;
}

/* Premium Button Styling */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--police-blue) 0%, var(--police-blue-light) 100%);
    border: 1px solid var(--police-blue);
    color: var(--bg-white);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(10, 34, 64, 0.2);
    color: var(--gold-light);
}

.btn-gold-custom {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border: none;
    color: var(--police-blue);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-gold-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.3);
    color: #000;
}

/* Card Improvements */
.card-premium {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.card-premium:hover {
    box-shadow: var(--shadow-lg);
}

.card-premium .card-header-custom {
    background: linear-gradient(135deg, var(--police-blue) 0%, var(--police-blue-light) 100%);
    color: var(--bg-white);
    border-bottom: 2px solid var(--gold);
    padding: 20px 24px;
}

/* Forms & Inputs */
.form-label-custom {
    font-weight: 600;
    color: var(--police-blue);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-control-custom {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-control-custom:focus {
    border-color: var(--police-blue-light);
    box-shadow: 0 0 0 4px rgba(21, 62, 117, 0.15);
    outline: none;
}

.form-select-custom {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-select-custom:focus {
    border-color: var(--police-blue-light);
    box-shadow: 0 0 0 4px rgba(21, 62, 117, 0.15);
}

/* Welfare Selection Cards styling */
.welfare-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.welfare-card:hover {
    border-color: var(--gold);
    transform: scale(1.02);
}

.welfare-card.selected {
    border-color: var(--police-blue);
    background-color: rgba(10, 34, 64, 0.02);
    box-shadow: 0 0 0 3px rgba(10, 34, 64, 0.1);
}

.welfare-card .badge-amount {
    background-color: var(--gold);
    color: var(--police-blue);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Drag and Drop File Upload */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
}

.upload-zone:hover {
    border-color: var(--police-blue-light);
    background-color: rgba(21, 62, 117, 0.05);
}

/* Timeline Custom tracking */
.timeline-tracking {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.timeline-tracking::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    bottom: -20px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-tracking:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.timeline-tracking.active .timeline-dot {
    background-color: var(--police-blue);
    border-color: var(--gold-light);
}

.timeline-tracking.success .timeline-dot {
    background-color: var(--success);
    border-color: #A7F3D0;
}

.timeline-tracking.danger .timeline-dot {
    background-color: var(--danger);
    border-color: #FCA5A5;
}

.timeline-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Admin Dashboard Elements */
.stat-card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--bg-white);
    overflow: hidden;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.stat-pending { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }
.stat-approved { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.stat-rejected { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); }
.stat-total { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); }

/* Split Screen Admin view */
.admin-split-container {
    display: flex;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.admin-claim-details {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.admin-doc-viewer {
    width: 50%;
    background-color: #1e1e1e;
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--border-color);
}

.doc-viewer-header {
    background-color: #2d2d2d;
    padding: 12px 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-viewer-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 20px;
}

.doc-viewer-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.doc-viewer-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Form replicate for printing (A4 aspect ratio: ~210mm x 297mm) */
.print-a4-page {
    width: 210mm;
    min-height: 297mm;
    padding: 15mm 20mm;
    margin: 20px auto;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-size: 13px;
    line-height: 1.4;
    color: #000;
}

.print-a4-page p, .print-a4-page table {
    margin-bottom: 8px;
}

@media print {
    body {
        background-color: #fff;
        font-size: 12px;
    }
    .print-a4-page {
        margin: 0;
        border: none;
        box-shadow: none;
        padding: 0;
        width: 100%;
        min-height: auto;
    }
    .no-print {
        display: none !important;
    }
}

/* Rider Stepper Bar Component (Req 2) */
.rider-stepper-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}
.rider-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.rider-stepper::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}
.rider-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}
.rider-step-bullet {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.rider-step.active .rider-step-bullet {
    background: #0d6efd;
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.25);
    animation: pulseStep 1.8s infinite;
}
.rider-step.completed .rider-step-bullet {
    background: #10b981;
    color: #ffffff;
}
.rider-step.rejected .rider-step-bullet {
    background: #ef4444;
    color: #ffffff;
}
.rider-step-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}
.rider-step.active .rider-step-title {
    color: #0d6efd;
    font-weight: 700;
}
.rider-step.completed .rider-step-title {
    color: #047857;
    font-weight: 700;
}
.rider-step.rejected .rider-step-title {
    color: #dc2626;
    font-weight: 700;
}
@keyframes pulseStep {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Delivery / Grab Order Style Progress Tracker */
.grab-tracker-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.grab-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.grab-tracker-time {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.grab-tracker-headline {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 4px;
}

.grab-tracker-illustration {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.grab-tracker-illustration.pending {
    background: #fef3c7;
    color: #d97706;
}

.grab-tracker-illustration.staff {
    background: #e0f2fe;
    color: #0284c7;
}

.grab-tracker-illustration.approved {
    background: #d1fae5;
    color: #059669;
}

.grab-tracker-illustration.rejected {
    background: #fee2e2;
    color: #dc2626;
}

/* Horizontal Track Line */
.grab-stepper-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 16px 0;
    padding: 0 15px;
}

/* Background Gray Line */
.grab-stepper-track::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 6px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 3px;
}

/* Active Green Progress Line */
.grab-stepper-progress {
    position: absolute;
    top: 22px;
    left: 40px;
    height: 6px;
    background: #10b981;
    z-index: 1;
    border-radius: 3px;
    transition: width 0.5s ease-in-out;
}

/* Step Nodes */
.grab-step-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.grab-node-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.grab-step-node.completed .grab-node-circle {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.grab-step-node.active .grab-node-circle {
    background: #10b981;
    border-color: #a7f3d0;
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.25);
    animation: grabPulse 1.8s infinite;
}

.grab-step-node.rejected .grab-node-circle {
    background: #ef4444;
    border-color: #fca5a5;
    color: #ffffff;
}

.grab-node-label {
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.2;
}

.grab-step-node.active .grab-node-label {
    color: #059669;
    font-weight: 700;
}

.grab-step-node.completed .grab-node-label {
    color: #047857;
    font-weight: 700;
}

.grab-step-node.rejected .grab-node-label {
    color: #dc2626;
    font-weight: 700;
}

.grab-tracker-subtext {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 12px;
}

@keyframes grabPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Admin Dashboard Table Row Highlighting & Pinning */
.table-row-pending {
    background-color: #fffbeb !important;
    border-left: 4px solid #f59e0b !important;
}
.table-row-pinned {
    background-color: #fef2f2 !important;
    border-left: 5px solid #ef4444 !important;
}

/* Unread / New Claim Row Highlight (Cyan / Aqua matching user mockup) */
.table-row-unread {
    background-color: #00ffff !important; /* Bright cyan / aqua highlight matching mockup image */
    border-left: 5px solid #00b4d8 !important;
    transition: background-color 0.3s ease;
}
.table-row-unread > td {
    background-color: #aeffa3 !important;
    color: #000000 !important;
    font-weight: 500;
}
.table-row-unread:hover, .table-row-unread:hover > td {
    background-color: #36fc1c !important;
}

.pin-badge {
    background-color: #ef4444;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.unread-badge {
    background-color: #00b4d8;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 180, 216, 0.4);
    animation: unreadPulse 2s infinite;
}

@keyframes unreadPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


