/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Header */
.header {
    background: #1e293b;
    color: white;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
    width: auto;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.driver-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.driver-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.driver-details {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.driver-name {
    font-weight: 600;
    font-size: 1rem;
}

.vehicle-reg {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e2e8f0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px 16px 0 0;
    margin: 0 1rem 0 1rem;
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1.25rem 0.75rem;
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 12px;
}

.nav-tab:hover {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    transform: translateY(-2px);
}

.nav-tab.active {
    color: #1e293b;
    background: rgba(30, 41, 59, 0.1);
    transform: translateY(-2px);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #1e293b;
    border-radius: 2px;
}

.nav-tab i {
    font-size: 1.25rem;
}

.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    z-index: 10;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.nav-tab[data-tab="collections"] .badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.nav-tab[data-tab="deliveries"] .badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.nav-tab[data-tab="completed"] .badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.nav-tab:hover .badge {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.nav-tab[data-tab="collections"]:hover .badge {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.nav-tab[data-tab="deliveries"]:hover .badge {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.nav-tab[data-tab="completed"]:hover .badge {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Main Content */
.main-content {
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 140px; /* Account for bottom navigation */
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.jobs-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    background: rgba(248, 250, 252, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(10px);
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Job Cards */
.job-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 20px 20px 0 0;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.job-id {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.job-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-high {
    background: #fef2f2;
    color: #dc2626;
}

.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.priority-low {
    background: #f0fdf4;
    color: #16a34a;
}

.job-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.job-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #475569;
    padding: 0.875rem 1rem;
    background: rgba(248, 250, 252, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: rgba(241, 245, 249, 0.8);
    transform: translateY(-1px);
}

.detail-item.vehicle-summary {
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(248, 250, 252, 0.6);
}

.vehicle-summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.vehicle-summary-item i {
    color: #6b7280;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.vehicle-summary-item span {
    font-size: 0.8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.vehicle-summary .reg-number {
    background: #fef3c7;
    color: #1f2937;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.vehicle-summary-item:first-child {
    position: relative;
}

.vehicle-summary-item:first-child::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(226, 232, 240, 0.8);
}

.detail-item i {
    color: #6366f1;
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.job-address {
    background: rgba(255, 247, 237, 0.8);
    border: 1px solid rgba(254, 215, 170, 0.6);
}

.status-item {
    grid-column: 1 / -1;
    justify-content: center;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
}

.status-collected {
    background: #dbeafe;
    color: #1e40af;
    border-color: #60a5fa;
}

.status-in-transit {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #a5b4fc;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
    border-color: #34d399;
}

.job-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    min-height: 48px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: rgba(248, 250, 252, 0.8);
    color: #475569;
    border: 1px solid rgba(203, 213, 225, 0.6);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(241, 245, 249, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.15);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 120px; /* Position above bottom navigation */
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.4);
    cursor: pointer;
    font-size: 1.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 80;
    backdrop-filter: blur(10px);
}

.fab:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: scale(1.15) rotate(180deg);
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.5);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

/* Full screen modal for job details */
#job-modal {
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0;
}

#job-modal .modal-content {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    animation: slideInRight 0.3s ease;
    display: flex;
    flex-direction: column;
}

.camera-modal-content {
    max-width: 600px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1f2937;
    margin: 0;
}

.back-btn,
.close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn:hover,
.close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Job modal specific header styling */
#job-modal .modal-header {
    background: #ffffff;
    color: #1e293b;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#job-modal .modal-header h3 {
    color: #1e293b;
    font-weight: 600;
}

#job-modal .back-btn,
#job-modal .close-btn {
    color: #64748b;
}

#job-modal .back-btn:hover,
#job-modal .close-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Full screen modal body */
#job-modal .modal-body {
    flex: 1;
    padding: 1.5rem 2rem;
    max-height: none;
    overflow-y: auto;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.form-actions .btn {
    flex: 1;
}

/* Camera Styles */
.camera-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#camera-video {
    width: 100%;
    height: auto;
    display: block;
}

.camera-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #2563eb;
    min-width: 300px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-tabs {
        margin: 0;
        border-radius: 0;
    }
    .header-content {
        padding: 0 1rem;
    }
    
    .app-title {
        font-size: 1.25rem;
    }
    
    .driver-details {
        display: none;
    }
    
    .main-content {
        padding: 1rem;
        padding-bottom: 120px; /* Account for bottom navigation */
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .job-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .detail-item.vehicle-summary {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
        align-items: center;
    }
    
    .vehicle-summary-item {
        flex: 1;
        justify-content: flex-start;
        padding: 0;
        min-width: 0;
    }
    
    .vehicle-summary-item span {
        font-size: 0.75rem;
    }
    
    .vehicle-summary-item:first-child::after {
        right: -0.375rem;
        top: 25%;
        bottom: 25%;
    }
    
    .vehicle-summary .reg-number {
        font-size: 0.6875rem;
        padding: 0.1rem 0.3rem;
    }
    
    .job-actions {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .fab {
        bottom: 100px; /* Position above bottom navigation on mobile */
        right: 1.5rem;
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .toast {
        min-width: 280px;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-tab {
        padding: 1rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .nav-tab i {
        font-size: 1.125rem;
    }
    
    .main-content {
        padding: 1rem;
        padding-bottom: 110px; /* Account for bottom navigation on small screens */
    }
    
    .job-card {
        padding: 1.5rem;
    }
    
    .job-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }

    .btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        min-height: 44px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.empty-state p {
    font-size: 0.875rem;
}

/* Modern Job Details Modal */
.job-detail-view {
    padding: 0;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    width: 100%;
}

.job-detail-left {
    display: flex;
    align-items: center;
}

.job-detail-id {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    background: rgba(248, 250, 252, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.job-detail-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

.job-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
}

.job-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Full screen job details layout */
#job-modal .job-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Mobile full screen adjustments */
@media (max-width: 768px) {
    #job-modal .modal-body {
        padding: 1rem 1.5rem;
    }
    
    #job-modal .job-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vehicle-info-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicle-info-item:first-child::after {
        display: none;
    }
    
    .vehicle-info-item:first-child {
        border-bottom: 1px solid rgba(226, 232, 240, 0.6);
        border-radius: 0;
    }
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(248, 250, 252, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    position: relative;
}

.vehicle-info-card {
    display: block;
    padding: 0;
    background: rgba(248, 250, 252, 0.6);
}

.vehicle-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.vehicle-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    position: relative;
}

.vehicle-info-item:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(226, 232, 240, 0.6);
}

.detail-card:hover {
    background: rgba(241, 245, 249, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.detail-card:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.detail-card-icon {
    width: 48px;
    height: 48px;
    background: #64748b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.detail-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.975rem;
    font-weight: 500;
    color: #1e293b;
}

.detail-action-btn {
    width: 40px;
    height: 40px;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.detail-action-btn:hover {
    background: rgba(100, 116, 139, 0.2);
    border-color: rgba(100, 116, 139, 0.4);
    transform: scale(1.1);
    color: #475569;
}

.address-card {
    background: rgba(248, 250, 252, 0.6);
    border-color: rgba(226, 232, 240, 0.8);
}

.address-card .detail-card-icon {
    background: #64748b;
}

.notes-card {
    grid-column: 1 / -1;
    background: rgba(248, 250, 252, 0.6);
    border-color: rgba(226, 232, 240, 0.8);
}

#job-modal .notes-card {
    grid-column: 1 / -1;
}

.notes-card .detail-card-icon {
    background: #64748b;
}

.notes-card .detail-value {
    line-height: 1.6;
}

/* Quick Actions Section */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
}

.quick-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.975rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    min-height: 56px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.quick-action-btn i {
    font-size: 1.125rem;
}

.quick-action-btn.primary {
    background: #1e293b;
    color: white;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
}

.quick-action-btn.primary:hover {
    background: #334155;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.3);
}

.quick-action-btn.secondary {
    background: rgba(248, 250, 252, 0.8);
    color: #475569;
    border: 1px solid rgba(203, 213, 225, 0.6);
    backdrop-filter: blur(10px);
}

.quick-action-btn.secondary:hover {
    background: rgba(241, 245, 249, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.1);
    color: #334155;
}

@media (max-width: 480px) {
    .quick-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .quick-action-btn {
        padding: 0.875rem 1rem;
        min-height: 48px;
    }
}

/* Registration Number Badge */
.reg-number {
    background: #fef3c7;
    color: #1f2937;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border: 2px solid #f59e0b;
    letter-spacing: 0.75px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-collected {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.status-in-transit {
    background: #e0e7ff;
    color: #3730a3;
}

.status-badge.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

/* Header Badges in Job Cards */
.header-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Job Title with Bottom Border */
.job-title {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Job Actions with Top Border */
.job-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

/* Job Cards with Enhanced Styling */
.job-card {
    border: 2px solid #f1f5f9;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    z-index: 2;
    position: relative;
}

/* Jobs Grid with Dividers */
.jobs-grid {
    gap: 2rem;
    position: relative;
}

/* Vertical divider for desktop */
.jobs-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
    z-index: 1;
}

@media (max-width: 768px) {
    .jobs-grid::before {
        display: none;
    }
}

/* Horizontal separators between cards */
.job-card::after {
    content: '';
    position: absolute;
    left: -1rem;
    right: -1rem;
    bottom: -1rem;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
    z-index: 1;
}

.job-card:last-child::after {
    display: none;
}