:root{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#2c3e50;background-color:#f5f7fa;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}#root{width:100%;margin:0 auto;text-align:center}@media (prefers-color-scheme: light){:root{color:#2c3e50;background-color:#f5f7fa}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);min-height:100vh;color:#2c3e50}.app{min-height:100vh;display:flex;flex-direction:column}.header{background:linear-gradient(135deg,#1e3c72,#2a5298);color:#fff;padding:1.5rem 0;box-shadow:0 4px 12px #00000026;position:sticky;top:0;z-index:100}.header-content{max-width:1200px;margin:0 auto;padding:0 2rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:2rem}.logo-section{display:flex;align-items:center;gap:1rem}.logo{display:flex;align-items:center;gap:.5rem;background:#ffffff1a;padding:.75rem;border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.logo svg{color:gold}.title-section{display:flex;flex-direction:column;gap:.25rem}.main-title{font-size:1.75rem;font-weight:700;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.3)}.subtitle{font-size:.9rem;color:#e8f4fd;font-weight:400}.header-actions{display:flex;align-items:center;gap:1rem;flex:1;justify-content:flex-end}.search-section{flex:1;max-width:500px}.search-container{position:relative;width:100%}.search-icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);color:#6c757d;z-index:2}.search-input{width:100%;padding:.875rem 1rem .875rem 3rem;border:none;border-radius:8px;background:#fffffff2;font-size:1rem;color:#2c3e50;box-shadow:0 2px 8px #0000001a;transition:all .3s ease}.search-input:focus{outline:none;box-shadow:0 4px 16px #00000026;background:#fff}.search-input::placeholder{color:#6c757d}.compare-nav-button{display:flex;align-items:center;gap:.5rem;background:linear-gradient(135deg,gold,#ffed4e);color:#1e3c72;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;font-size:.9rem;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px #0000001a}.compare-nav-button:hover{transform:translateY(-2px);box-shadow:0 4px 16px #00000026}.main-content{flex:1;max-width:1200px;margin:0 auto;padding:2rem;width:100%}.comparison-page{padding:2rem;max-width:1400px;margin:0 auto}.comparison-layout{display:grid;grid-template-columns:1fr 2fr;gap:2rem;min-height:calc(100vh - 200px)}.left-section{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 6px #0000001a;height:fit-content;position:sticky;top:2rem}.right-section{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 6px #0000001a;min-height:600px}.empty-results{display:flex;align-items:center;justify-content:center;height:100%;min-height:500px}.empty-state{text-align:center;color:#6c757d}.empty-state svg{margin-bottom:1rem;opacity:.5}.empty-state h3{margin-bottom:.5rem;color:#495057}.empty-state p{font-size:.9rem;line-height:1.5}.comparison-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:2rem;padding:1rem 0}.comparison-header-content{flex:1;text-align:center}.comparison-header h1{font-size:2.5rem;color:#1e3c72;margin-bottom:.5rem}.comparison-header p{color:#666;font-size:1.1rem}.back-button{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;padding:.75rem 1rem;display:flex;align-items:center;gap:.5rem;color:#495057;cursor:pointer;transition:all .3s ease;min-width:140px}.back-button:hover{background:#e9ecef;border-color:#adb5bd}.comparison-container{background:#fff;border-radius:12px;box-shadow:0 4px 6px #0000001a;overflow:hidden}.upload-section{padding:2rem;border-bottom:1px solid #e9ecef}.upload-area{border:2px dashed #dee2e6;border-radius:12px;padding:3rem;text-align:center;transition:all .3s ease;cursor:pointer;margin-bottom:1.5rem}.upload-area:hover{border-color:#1e3c72;background:#f8f9fa}.file-input{display:none}.upload-label{display:flex;flex-direction:column;align-items:center;gap:1rem;cursor:pointer;color:#6c757d}.upload-label span:first-of-type{font-size:1.2rem;font-weight:500;color:#495057}.upload-hint{font-size:.9rem;color:#6c757d}.preview-section{margin:1.5rem 0;text-align:center}.preview-section h3{margin-bottom:1rem;color:#495057}.preview-image{max-width:300px;max-height:200px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.compare-button{background:linear-gradient(135deg,#1e3c72,#2a5298);color:#fff;border:none;border-radius:8px;padding:1rem 2rem;font-size:1.1rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:.5rem;margin:0 auto;transition:all .3s ease}.compare-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #1e3c724d}.compare-button:disabled{opacity:.6;cursor:not-allowed}.spinner{width:20px;height:20px;border:2px solid #ffffff;border-top:2px solid transparent;border-radius:50%;animation:spin 1s linear infinite}.progress-section{margin-top:1rem;padding:1rem;background:#f8f9fa;border-radius:8px;border:1px solid #e9ecef}.progress-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;font-size:.9rem;color:#495057}.progress-percentage{font-weight:600;color:#1e3c72}.progress-bar-container{width:100%;height:8px;background:#e9ecef;border-radius:4px;overflow:hidden;margin-bottom:.5rem}.progress-bar-fill{height:100%;background:linear-gradient(90deg,#1e3c72,#2a5298);border-radius:4px;transition:width .3s ease;position:relative}.progress-bar-fill:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.3) 50%,transparent 100%);animation:shimmer 2s infinite}.progress-estimate{text-align:center;font-size:.8rem;color:#6c757d;font-style:italic}@keyframes shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.completion-message{margin-top:1rem;padding:1rem;background:linear-gradient(135deg,#f0fff4,#dcfce7);border-radius:8px;border:1px solid #bbf7d0;display:flex;align-items:center;gap:.75rem;animation:fadeInUp .5s ease-out}.completion-icon{color:#16a34a;flex-shrink:0}.completion-text{display:flex;flex-direction:column;gap:.25rem}.completion-title{font-weight:600;color:#166534;font-size:.95rem}.completion-subtitle{color:#15803d;font-size:.85rem;opacity:.9}@keyframes fadeInUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.loading-text{display:flex;flex-direction:column;align-items:center;gap:.25rem}.processing-time{font-size:.8rem;opacity:.8;font-weight:400}.error-message{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb;border-radius:8px;padding:1rem;margin:1rem 0;display:flex;align-items:center;gap:.5rem}.result-section{padding:2rem}.result-header{display:flex;align-items:center;gap:1rem;padding:1.5rem;border-radius:12px;margin-bottom:2rem;border:2px solid;box-shadow:0 4px 12px #00000026}.result-header h2{margin:0;font-size:1.5rem;font-weight:600}.alert-badge{background:#ffffffe6;padding:.5rem 1rem;border-radius:20px;font-weight:600;font-size:.9rem;display:flex;align-items:center;gap:.25rem;margin-left:auto}.result-header.text-red-600{background:linear-gradient(135deg,#f8d7da,#f5c6cb);color:#721c24;border-color:#f5c6cb;box-shadow:0 6px 20px #f8d7da4d}.result-header.text-red-600 h2{color:#721c24}.result-header.text-red-600 .alert-badge{background:#721c241a;color:#721c24;border:1px solid rgba(114,28,36,.2)}.result-header.text-yellow-600{background:linear-gradient(135deg,#fd7e14,#e55a00);color:#fff;border-color:#fd7e14;box-shadow:0 6px 20px #fd7e144d}.result-header.text-yellow-600 h2{color:#fff}.result-header.text-yellow-600 .alert-badge{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3)}.result-header.text-blue-600{background:linear-gradient(135deg,#f0fff4,#dcfce7);color:#166534;border-color:#bbf7d0;box-shadow:0 6px 20px #f0fff44d}.result-header.text-blue-600 h2{color:#166534}.result-header.text-blue-600 .alert-badge{background:#1665341a;color:#166534;border:1px solid rgba(22,101,52,.2)}.result-header.text-green-600{background:linear-gradient(135deg,#28a745,#1e7e34);color:#fff;border-color:#28a745;box-shadow:0 6px 20px #28a7454d}.result-header.text-green-600 h2{color:#fff}.result-header.text-green-600 .alert-badge{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3)}.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:2rem}.vehicle-comparison-card{background:#f8f9fa;border-radius:12px;padding:1.5rem;border:2px solid #e9ecef;transition:all .3s ease}.vehicle-comparison-card.captured{border-color:#dc3545;background:#fff5f5}.vehicle-comparison-card.system{border-color:#28a745;background:#f0fff4}.vehicle-comparison-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.vehicle-info-summary{margin-bottom:2rem;background:linear-gradient(135deg,#1e3c72,#2a5298);border-radius:12px;padding:1.5rem;color:#fff}.summary-header{text-align:center;margin-bottom:1.5rem}.summary-header h3{margin:0 0 .5rem;font-size:1.3rem;font-weight:600}.summary-header p{margin:0;opacity:.9;font-size:.9rem}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.summary-item{background:#ffffff1a;border-radius:8px;padding:1rem;border:1px solid rgba(255,255,255,.2)}.summary-label{display:block;font-size:.8rem;font-weight:500;opacity:.8;margin-bottom:.5rem;text-transform:uppercase;letter-spacing:.5px}.summary-value{display:block;font-size:1rem;font-weight:600}.summary-value.number-plate{font-family:Courier New,monospace;font-size:1.1rem;background:#fff3;padding:.25rem .5rem;border-radius:4px;border:1px solid rgba(255,255,255,.3)}.vehicle-images-comparison{margin-bottom:2rem;background:#f8f9fa;border-radius:12px;padding:1.5rem;border:1px solid #e9ecef}.image-comparison-header{margin-bottom:1.5rem;text-align:center}.image-comparison-header h3{margin:0;color:#495057;font-size:1.3rem;font-weight:600}.images-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.image-container{text-align:center}.image-container h4{margin:0 0 1rem;color:#495057;font-size:1.1rem;font-weight:600}.image-container.captured h4{color:#dc3545}.image-container.system h4{color:#28a745}.image-wrapper{background:#fff;border-radius:8px;padding:1rem;border:2px solid #e9ecef;min-height:200px;display:flex;align-items:center;justify-content:center}.image-container.captured .image-wrapper{border-color:#dc3545}.image-container.system .image-wrapper{border-color:#28a745}.comparison-image{max-width:100%;max-height:180px;object-fit:contain;border-radius:4px}.no-image-placeholder{display:flex;flex-direction:column;align-items:center;gap:.5rem;color:#6c757d;font-size:.9rem}.no-image-placeholder svg{opacity:.5}.vehicle-details-comparison{margin-bottom:2rem}.details-comparison-header{margin-bottom:1.5rem;text-align:center}.details-comparison-header h3{margin:0;color:#495057;font-size:1.3rem;font-weight:600}.number-plate{font-family:Courier New,monospace;font-weight:700;font-size:1.1rem;color:#1e3c72;background:#f8f9fa;padding:.25rem .5rem;border-radius:4px;border:1px solid #dee2e6}.card-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid #dee2e6}.card-header h4{margin:0;font-size:1.2rem;font-weight:600;color:#495057}.vehicle-attributes{display:flex;flex-direction:column;gap:1rem}.attribute{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#fff;border-radius:8px;border:1px solid #e9ecef}.attribute .label{font-weight:500;color:#495057}.attribute .value{color:#212529;font-weight:600}.color-strip{width:20px;height:20px;border-radius:4px;border:1px solid #dee2e6}.alert-reason-section,.observations-section,.recommendation-section{background:#fff;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;border:1px solid #e9ecef}.alert-reason-section h3,.observations-section h3,.recommendation-section h3{margin:0 0 1rem;color:#495057;font-size:1.2rem;font-weight:600}.alert-reason-content{display:flex;gap:1rem;align-items:flex-start;color:#721c24;background:#f8d7da;padding:1rem;border-radius:8px;border:1px solid #f5c6cb}.alert-reason-content p{margin:0;line-height:1.6}.observations-content{color:#495057;line-height:1.6}.observations-content p{margin:0}.recommendation-content{color:#495057}.high-alert-actions,.medium-alert-actions,.low-alert-actions{background:#f8f9fa;border-radius:8px;padding:1rem;border-left:4px solid}.high-alert-actions{border-left-color:#dc3545;background:#fff5f5}.medium-alert-actions{border-left-color:#ffc107;background:#fffbf0}.low-alert-actions{border-left-color:#17a2b8;background:#f0f8ff}.high-alert-actions ul,.medium-alert-actions ul,.low-alert-actions ul{margin:0;padding-left:0;list-style:none;text-align:left}.high-alert-actions li,.medium-alert-actions li,.low-alert-actions li{margin-bottom:.5rem;line-height:1.5}.footer{background:linear-gradient(135deg,#1e3c72,#2a5298);color:#fff;margin-top:auto;padding:2rem 0 1rem}.footer-content{max-width:1200px;margin:0 auto;padding:0 2rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:2rem;margin-bottom:2rem}.footer-section h3,.footer-section h4{margin-bottom:1rem;color:gold;font-weight:600}.company-name{font-size:1.5rem;font-weight:700;color:gold;margin-bottom:.5rem}.company-tagline{color:#e8f4fd;font-size:.9rem;font-style:italic}.contact-info{display:flex;flex-direction:column;gap:.75rem}.contact-item{display:flex;align-items:center;gap:.5rem;font-size:.9rem}.contact-item svg{color:gold;flex-shrink:0}.footer-links{list-style:none;display:flex;flex-direction:column;gap:.5rem}.footer-links a{color:#e8f4fd;text-decoration:none;font-size:.9rem;transition:color .3s ease}.footer-links a:hover{color:gold}.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:1rem;text-align:center;font-size:.8rem;color:#e8f4fd}.vehicle-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:2rem;margin-top:1rem}.vehicle-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 8px 32px #0000001a;transition:all .3s ease;border:1px solid rgba(255,255,255,.2)}.vehicle-card:hover{transform:translateY(-4px);box-shadow:0 12px 40px #00000026}.vehicle-image{height:200px;background:linear-gradient(135deg,#667eea,#764ba2);position:relative;overflow:hidden}.vehicle-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.vehicle-card:hover .vehicle-image img{transform:scale(1.05)}.placeholder-image{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#fffc;gap:.5rem}.placeholder-image span{font-size:.9rem;font-weight:500}.vehicle-details{padding:1.5rem}.vehicle-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem}.vehicle-title{font-size:1.25rem;font-weight:700;color:#2c3e50;margin:0}.vehicle-type{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:.25rem .75rem;border-radius:20px;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.number-plate{background:linear-gradient(135deg,gold,#ffed4e);border:2px solid #000;border-radius:8px;padding:.75rem;margin-bottom:1rem;text-align:center}.plate-text{font-family:Courier New,monospace;font-size:1.1rem;font-weight:700;color:#000;letter-spacing:1px}.vehicle-info{display:flex;flex-direction:column;gap:.75rem}.info-item{display:flex;align-items:center;gap:.5rem;font-size:.9rem}.info-item svg{color:#667eea;flex-shrink:0}.label{font-weight:600;color:#6c757d;min-width:60px}.value{color:#2c3e50;font-weight:500}.color-display{display:flex;align-items:center;gap:.5rem}.color-strip{width:20px;height:20px;border-radius:4px;border:2px solid #e0e0e0;transition:transform .2s ease;cursor:pointer}.color-strip:hover{transform:scale(1.1)}.loading-container,.error-container,.empty-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center;gap:1rem}.loading-spinner{animation:spin 1s linear infinite;color:#667eea}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.error-message{color:#e74c3c;font-weight:500}.empty-container p{color:#6c757d;font-size:1.1rem}@media (max-width: 768px){.header-content{flex-direction:column;text-align:center;gap:1.5rem}.header-actions{flex-direction:column;width:100%;gap:1rem}.search-section{max-width:100%}.main-title{font-size:1.5rem}.main-content{padding:1rem}.vehicle-grid{grid-template-columns:1fr;gap:1.5rem}.vehicle-card{max-width:400px;margin:0 auto}.comparison-page{padding:1rem}.comparison-layout{grid-template-columns:1fr;gap:1rem}.left-section{position:static;padding:1.5rem}.right-section{padding:1.5rem;min-height:auto}.empty-results{min-height:300px}.images-grid{grid-template-columns:1fr;gap:1rem}.image-wrapper{min-height:150px}.comparison-image{max-height:120px}.summary-grid{grid-template-columns:1fr;gap:.75rem}.summary-item{padding:.75rem}.comparison-header{flex-direction:column;text-align:center;gap:1rem}.comparison-header-content{order:2}.back-button{order:1;align-self:center;margin-bottom:0}.comparison-header h1{font-size:2rem}.comparison-grid{grid-template-columns:1fr;gap:1rem}.result-header{flex-direction:column;text-align:center;gap:.5rem}.alert-badge{margin-left:0}.upload-area{padding:2rem 1rem}.compare-button{width:100%;justify-content:center}.footer-content{grid-template-columns:1fr;text-align:center;gap:1.5rem}.contact-info,.footer-links{align-items:center}}@media (max-width: 480px){.header{padding:1rem 0}.header-content{padding:0 1rem}.logo-section{flex-direction:column;gap:.5rem}.main-title{font-size:1.25rem}.subtitle{font-size:.8rem}.vehicle-details{padding:1rem}.vehicle-header{flex-direction:column;gap:.5rem;align-items:flex-start}.comparison-container{padding:1rem}.upload-area{padding:2rem 1rem}.footer{padding:1.5rem 0 1rem}.footer-content{padding:0 1rem}}
