        /* Base Styles */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: #f8f9fa;
            padding: 15px;
            color: #2c3e50;
            line-height: 1.6;
        }
        
        .report-container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.08);
            overflow: hidden;
            position: relative;
        }
        
        /* Header Styles - Updated with theme color */
        .header {
            text-align: center;
            padding: 25px 20px;
            background: linear-gradient(135deg, #1a2a6c, #f8b92e);
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        .header:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: rgba(255,255,255,0.3);
        }
        
        .header img {
            height: 65px;
            margin-bottom: 15px;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
        }
        
        .header h1 {
            font-size: 2.1rem;
            margin-bottom: 10px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
            font-weight: 700;
        }
        
        .header h2 {
            font-size: 1.3rem;
            font-weight: 400;
            margin-bottom: 5px;
            opacity: 0.9;
        }
        
        /* Overview Section - Enhanced styling */
        .overview-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            padding: 25px;
            background: #f8f9fa;
            border-bottom: 1px solid #eaeaea;
        }
        
        .main-car-image {
            width: 100%;
            height: 280px;
            object-fit: cover;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border: 1px solid #e0e0e0;
        }
        
        .rating-container {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            border: 1px solid #e0e0e0;
        }
        
        .rating-value {
            font-size: 3.5rem;
            font-weight: 800;
            color: #f8b92e;
            line-height: 1;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .rating-label {
            font-size: 1.3rem;
            color: #7f8c8d;
            margin-top: 12px;
            font-weight: 600;
        }
        
        .rating-stars {
            color: #f8b92e;
            font-size: 1.8rem;
            margin-top: 12px;
            letter-spacing: 2px;
        }
        
        /* Report Grid - Enhanced card style */
        .report-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 15px;
            margin: 20px;
        }
        
        .report-item {
            padding: 18px;
            border-radius: 10px;
            border-left: 5px solid #3498db;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            page-break-inside: avoid;
            position: relative;
            background: white;
            border-top: 1px solid #f0f0f0;
        }
        
        .report-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.12);
        }
        
        .report-label {
            font-size: 0.9rem;
            color: #7f8c8d;
            margin-bottom: 8px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .report-value {
            font-size: 1.3rem;
            font-weight: 700;
            padding: 8px 12px;
            border-radius: 6px;
            display: inline-block;
            background: #f8f9fa;
        }
        
        .field-image {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 36px;
            height: 36px;
            border-radius: 6px;
            cursor: pointer;
            object-fit: cover;
            border: 2px solid #e0e0e0;
            transition: all 0.3s ease;
        }
        
        .field-image:hover {
            transform: scale(1.1);
            border-color: #f8b92e;
        }
        
        /* Condition Colors - Enhanced with theme */
        .report-item.good-condition {
            background: #f0f9eb;
            border-left-color: #27ae60;
        }
        
        .report-item.good-condition .report-value {
            color: #27ae60;
            background: #e8f6ef;
        }
        
        .report-item.poor-condition {
            background: #fdecea;
            border-left-color: #c0392b;
        }
        
        .report-item.poor-condition .report-value {
            color: #c0392b;
            background: #fdecea;
        }
        
        .report-item.average-condition {
            background: #fef5e7;
            border-left-color: #f8b92e;
        }
        
        .report-item.average-condition .report-value {
            color: #f8b92e;
            background: #fef5e7;
        }
        
        .report-item.default-condition {
            background: #f9f9f9;
            border-left-color: #3498db;
        }
        
        .report-item.default-condition .report-value {
            color: #2c3e50;
            background: #f0f2f5;
        }
        
        /* Section Headings - Updated with theme */
        .section-heading {
            color: #2c3e50;
            grid-column: 1 / -1;
            font-size: 1.5rem;
            padding: 20px 0 15px;
            border-bottom: 3px solid #f8b92e;
            margin: 10px 20px 5px;
            position: relative;
            font-weight: 700;
        }
        
        .section-heading:after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 80px;
            height: 3px;
            background: #1a2a6c;
        }
        
        /* Vehicle Map - Enhanced styling */
        .vehicle-map-container {
            margin: 25px 20px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
            text-align: center;
            border: 1px solid #eaeaea;
        }
        
        .legend-title {
            font-weight: 700;
            margin: 20px 0 12px;
            color: #2c3e50;
            font-size: 1.2rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        /* Updated Legend Styles */
        .marker-legend {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin: 15px 0 10px;
            font-size: 0.8rem;
        }

        .marker-item {
            display: flex;
            align-items: center;
            padding: 6px 8px;
            border-radius: 6px;
            background: white;
            line-height: 1.3;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            border: 1px solid #eee;
        }

        .marker-example {
            display: inline-block;
            width: 30px;
            text-align: center;
            font-weight: bold;
            margin-right: 8px;
            padding: 3px;
            border-radius: 4px;
            background: #f8b92e;
            color: #000;
            font-size: 0.75rem;
        }

        /* Image Gallery - Enhanced */
        .image-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 15px;
            margin: 25px 20px;
        }
        
        .inspection-image {
            width: 100%;
            height: 160px !important;
            object-fit: cover !important;
            border-radius: 8px;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
        }
        
        .inspection-image:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }
        
        /* Action Buttons - Updated with theme */
        .action-buttons-container {
            display: flex;
            justify-content: center;
            gap: 18px;
            margin: 30px 0;
            padding: 0 20px;
            flex-wrap: wrap;
        }
        
        .btn-primary {
            padding: 14px 28px;
            background: linear-gradient(to right, #1a2a6c, #f8b92e);
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        }
        
        /* Field image links */
        .field-image-link {
            display: inline-flex;
            align-items: center;
            margin-top: 10px;
            padding: 6px 10px;
            background: #f0f2f5;
            border-radius: 6px;
            color: #2c3e50;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.2s ease;
            border: 1px solid #e0e0e0;
        }

        .field-image-link:hover {
            background: #e0e4e8;
            transform: translateY(-1px);
        }

        .image-icon {
            margin-right: 6px;
            font-size: 16px;
        }
        
        /* Footer - Updated with theme */
        .footer {
            text-align: center;
            padding: 20px;
            background: #2c3e50;
            color: #ecf0f1;
            font-size: 0.9rem;
            margin-top: 20px;
        }
        
        .footer p {
            margin: 5px 0;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }
            
            .header {
                padding: 20px 15px;
            }
            
            .header h1 {
                font-size: 1.7rem;
            }
            
            .header h2 {
                font-size: 1.1rem;
            }
            
            .overview-section {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 20px;
            }
            
            .report-grid {
                grid-template-columns: 1fr;
                margin: 15px;
                gap: 12px;
            }
            
            .section-heading {
                font-size: 1.3rem;
                margin: 0 15px;
                padding: 15px 0 10px;
            }
            
            .vehicle-map-container {
                margin: 20px 15px;
                padding: 15px;
            }
            
            .marker-legend {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .image-gallery {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                margin: 20px 15px;
                gap: 12px;
            }
            
            .inspection-image {
                height: 140px;
            }
            
            .action-buttons-container {
                flex-direction: column;
                align-items: center;
                gap: 15px;
            }
            
            .btn-primary {
                width: 100%;
                max-width: 280px;
                justify-content: center;
            }
        }
        
        /* Print Styles */
        @media print {
            body {
                background: white !important;
                padding: 0 !important;
                margin: 0 !important;
                font-size: 11pt;
            }
            
            .report-container {
                box-shadow: none !important;
                border-radius: 0 !important;
                margin: 0 !important;
                padding: 5mm !important;
                width: 100% !important;
                max-width: 100% !important;
            }
            
            .report-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 10px !important;
                margin: 10px !important;
            }
            
            .report-item {
                box-shadow: none !important;
                border-left-width: 3px !important;
                padding: 10px !important;
                page-break-inside: avoid !important;
            }
            
            .report-value {
                font-size: 1.1rem !important;
            }
            
            .section-heading {
                font-size: 1.2rem !important;
                padding: 10px 0 !important;
                margin: 0 10px !important;
                page-break-after: avoid;
            }
            
            .vehicle-map-container {
                margin: 10px !important;
                padding: 10px !important;
            }
            
            .image-gallery {
                grid-template-columns: repeat(4, 1fr) !important;
                gap: 8px !important;
                margin: 10px !important;
                page-break-inside: avoid;
            }
            
            .inspection-image {
                height: 140px !important;
            }
            
            .footer {
                padding: 10px !important;
            }
            
            .marker-legend {
                grid-template-columns: repeat(5, 1fr) !important;
                font-size: 10pt !important;
            }
            
            .marker-example {
                width: 35px !important;
                font-size: 10pt !important;
            }
            
            .marker {
                color: black !important;
                border: 1px solid #000 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            
            .action-buttons-container {
                display: none !important;
            }
        }
        
        /* Additional styling elements */
        .image-container {
            position: relative;
            display: inline-block;
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .vehicle-map {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        
        /* PDF Loader Styles */
        #pdfLoader {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.85);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            color: white;
            font-size: 1.3rem;
        }
        
        .spinner {
            width: 60px;
            height: 60px;
            border: 6px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: #f8b92e;
            animation: spin 1s ease-in-out infinite;
            margin-bottom: 25px;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Modal enhancements */
        #imageModal {
            display: none;
            position: fixed;
            z-index: 1000;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.95);
            justify-content: center;
            align-items: center;
        }
        
        #imageModal img {
            max-width: 90%;
            max-height: 90%;
            border: 4px solid white;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        
        #imageModal span {
            position: absolute;
            top: 25px;
            right: 35px;
            color: white;
            font-size: 40px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        #imageModal span:hover {
            color: #f8b92e;
        }
        
        /* Marker enhancements */
        .condition-markers {
            position: absolute;
            top: 0;
            left: 0;
            pointer-events: none;
            width: 100%;
            height: 100%;
            z-index: 10;
        }
        
        .marker {
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            transform: translate(-50%, -50%);
            font-size: 13px;
            color: #000;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(0,0,0,0.4);
            border: 2px solid white;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f8b92e;
        }
        
        .marker:hover {
            transform: translate(-50%, -50%) scale(1.4);
            z-index: 20;
            box-shadow: 0 4px 12px rgba(0,0,0,0.5);
        }
