.search-by-image { width: 100%; padding: 1rem; } .search-by-image h2 { color: #00ff9d; font-size: 1.8rem; margin-bottom: 0.5rem; } .subtitle { color: #A1B5D8; font-size: 1.1rem; margin-bottom: 2rem; } .search-content { display: grid; grid-template-columns: 1fr; gap: 2rem; } .upload-section h3, .results-section h3 { color: #00ff9d; margin-bottom: 1rem; font-size: 1.3rem; } .upload-area { background: rgba(15, 23, 42, 0.7); border-radius: 16px; padding: 2rem; border: 1px solid rgba(0, 255, 157, 0.2); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); } .upload-placeholder { border: 2px dashed rgba(0, 255, 157, 0.3); border-radius: 12px; padding: 3rem 2rem; text-align: center; cursor: pointer; transition: all 0.3s ease; } .upload-placeholder:hover { border-color: #00ff9d; background: rgba(0, 255, 157, 0.05); } .upload-icon { font-size: 3rem; margin-bottom: 1rem; } .upload-placeholder p { color: #E6F1FF; font-size: 1.1rem; margin-bottom: 0.5rem; } .hint { color: #A1B5D8 !important; font-size: 0.9rem !important; } .image-preview { position: relative; width: 100%; padding-top: 100%; /* 1:1 Aspect Ratio */ border-radius: 8px; overflow: hidden; border: 2px solid rgba(0, 255, 157, 0.3); } .image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; width: 100%; margin-bottom: 1rem; } .preview-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; } .add-more-placeholder { position: relative; width: 100%; padding-top: 100%; border: 2px dashed rgba(0, 255, 157, 0.3); border-radius: 8px; cursor: pointer; transition: all 0.3s ease; } .add-more-placeholder:hover { border-color: #00ff9d; background: rgba(0, 255, 157, 0.05); } .add-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2rem; color: #00ff9d; } .add-more-placeholder p { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 0.7rem; color: #a1b5d8; white-space: nowrap; } .remove-image-btn { position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; border-radius: 50%; background: #ff6b6b; color: white; border: none; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; } .remove-image-btn:hover { background: #ff5252; transform: scale(1.1); } .upload-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; } .btn { padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 0.9rem; } .btn.primary { background: linear-gradient(135deg, #00ff9d, #00b8ff); color: #0A0F1C; } .btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 255, 157, 0.4); } .btn.primary:disabled { background: #A1B5D8; cursor: not-allowed; transform: none; box-shadow: none; } .btn.secondary { background: rgba(15, 23, 42, 0.8); color: #A1B5D8; border: 1px solid rgba(0, 255, 157, 0.3); } .btn.secondary:hover { background: rgba(0, 255, 157, 0.1); color: #00ff9d; } .btn.secondary.small { padding: 0.5rem 1rem; font-size: 0.8rem; } /* Results Section */ .results-section { margin-top: 1rem; } .results-summary { text-align: center; padding: 1rem; margin-bottom: 1.5rem; background: rgba(0, 255, 157, 0.1); border-radius: 8px; border: 1px solid rgba(0, 255, 157, 0.3); } .results-summary p { color: #E6F1FF; font-size: 1.1rem; margin: 0; } .results-summary strong { color: #00ff9d; font-size: 1.3rem; } .loading-results { text-align: center; padding: 2rem; color: #A1B5D8; } .spinner { width: 40px; height: 40px; border: 4px solid rgba(0, 255, 157, 0.3); border-top: 4px solid #00ff9d; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; } .result-card { background: rgba(15, 23, 42, 0.7); border-radius: 12px; padding: 1.5rem; border: 1px solid rgba(0, 255, 157, 0.2); transition: all 0.3s ease; display: flex; flex-direction: column; } .result-snapshot { width: 100%; height: 150px; margin-bottom: 1rem; border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center; } .result-snapshot img { width: 100%; height: 100%; object-fit: cover; } .result-card:hover { transform: translateY(-3px); border-color: rgba(0, 255, 157, 0.5); box-shadow: 0 8px 25px rgba(0, 255, 157, 0.2); } .result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(0, 255, 157, 0.1); } .global-id { color: #00ff9d; font-weight: 600; font-size: 1rem; } .camera-id { color: #00ff9d; font-weight: 600; } .confidence { background: rgba(0, 255, 157, 0.2); color: #00ff9d; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.9rem; font-weight: 500; } .match-badge { background: rgba(0, 184, 255, 0.2); color: #00b8ff; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; } .result-details { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; } .detail-item { display: flex; justify-content: space-between; } .label { color: #A1B5D8; } .value { color: #E6F1FF; font-weight: 500; } .result-actions { display: flex; justify-content: flex-end; } /* No Results */ .no-results { text-align: center; padding: 2rem; background: rgba(15, 23, 42, 0.5); border-radius: 12px; } .no-results p { color: #A1B5D8; font-size: 1.1rem; margin-bottom: 0.5rem; } /* Responsive Design */ @media (max-width: 768px) { .search-by-image { padding: 0.5rem; } .upload-area { padding: 1rem; } .upload-placeholder { padding: 2rem 1rem; } .upload-actions { flex-direction: column; align-items: center; } .results-grid { grid-template-columns: 1fr; } .result-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; } }