/* Base Styles */ :root { --primary: #6366f1; --primary-dark: #4f46e5; --success: #10b981; --danger: #ef4444; --warning: #f59e0b; --bg: #0f172a; --bg-card: #1e293b; --bg-hover: #334155; --text: #f1f5f9; --text-muted: #94a3b8; --border: #334155; --radius: 12px; --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; } .app-container { max-width: 1400px; margin: 0 auto; padding: 20px; } /* Header */ .header { text-align: center; padding: 40px 20px; margin-bottom: 30px; } .header h1 { font-size: 2.5rem; margin-bottom: 10px; background: linear-gradient(135deg, var(--primary), #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .header p { color: var(--text-muted); font-size: 1.1rem; } /* Sections */ .section { margin-bottom: 30px; } .hidden { display: none !important; } /* Upload Card */ .upload-card { background: var(--bg-card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); } .upload-area { border: 2px dashed var(--border); border-radius: var(--radius); padding: 60px 40px; text-align: center; transition: all 0.3s ease; cursor: pointer; } .upload-area:hover, .upload-area.dragover { border-color: var(--primary); background: rgba(99, 102, 241, 0.1); } .upload-icon { font-size: 4rem; margin-bottom: 20px; } .upload-area h2 { margin-bottom: 10px; font-size: 1.5rem; } .upload-area p { color: var(--text-muted); margin-bottom: 20px; } /* Buttons */ .btn { padding: 12px 24px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 8px; } .btn-primary { background: var(--primary); color: white; } .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); } .btn-success { background: var(--success); color: white; } .btn-success:hover { background: #059669; } .btn-secondary { background: var(--bg-hover); color: var(--text); } .btn-secondary:hover { background: #475569; } /* Settings Panel */ .settings-panel { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); } .settings-panel h3 { margin-bottom: 10px; color: var(--text); font-size: 1.2rem; } .settings-description { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; } .settings-grid { display: flex; flex-direction: column; gap: 25px; } .setting-item { display: flex; flex-direction: column; gap: 10px; } .setting-item label { font-weight: 600; font-size: 1rem; } .setting-item input[type="range"] { width: 100%; height: 8px; -webkit-appearance: none; background: var(--bg); border-radius: 4px; outline: none; } .setting-item input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--primary); border-radius: 50%; cursor: pointer; } .slider-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); } .slider-labels span:nth-child(2) { font-weight: 600; color: var(--primary); } .setting-hint { font-size: 0.8rem; color: var(--text-muted); } /* Quality Mode Buttons */ .quality-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 10px; } .quality-btn { background: var(--bg); border: 2px solid var(--border); border-radius: 12px; padding: 20px 15px; cursor: pointer; transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); } .quality-btn:hover { border-color: var(--primary); background: rgba(99, 102, 241, 0.1); } .quality-btn.active { border-color: var(--primary); background: rgba(99, 102, 241, 0.2); } .quality-icon { font-size: 1.5rem; } .quality-label { font-weight: 600; font-size: 1rem; } .quality-desc { font-size: 0.75rem; color: var(--text-muted); text-align: center; } /* How it works */ .how-it-works { margin-top: 30px; padding: 20px; background: var(--bg); border-radius: var(--radius); } .how-it-works h4 { margin-bottom: 15px; color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; } .criteria-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; } .criteria-item { display: flex; gap: 12px; align-items: flex-start; } .criteria-icon { font-size: 1.2rem; color: var(--primary); } .criteria-item strong { display: block; font-size: 0.9rem; margin-bottom: 4px; } .criteria-item p { font-size: 0.8rem; color: var(--text-muted); margin: 0; } /* File Preview */ .file-preview { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); } .file-preview h3 { margin-bottom: 20px; } .preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; margin-bottom: 20px; max-height: 200px; overflow-y: auto; } .preview-item { aspect-ratio: 1; border-radius: 8px; overflow: hidden; position: relative; } .preview-item img { width: 100%; height: 100%; object-fit: cover; } .preview-item .remove-btn { position: absolute; top: 4px; right: 4px; background: rgba(0, 0, 0, 0.7); color: white; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; } /* Processing Section */ .processing-card { background: var(--bg-card); border-radius: var(--radius); padding: 60px 40px; text-align: center; box-shadow: var(--shadow); } .processing-animation { margin-bottom: 30px; } .spinner { width: 60px; height: 60px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; } @keyframes spin { to { transform: rotate(360deg); } } .progress-bar { height: 8px; background: var(--bg); border-radius: 4px; margin: 20px 0; overflow: hidden; } .progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #a855f7); border-radius: 4px; width: 0%; transition: width 0.5s ease; } .progress-text { font-size: 1.5rem; font-weight: 600; color: var(--primary); } .processing-steps { display: flex; justify-content: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; } .step { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.4; transition: opacity 0.3s ease; } .step.active { opacity: 1; } .step.complete { opacity: 1; color: var(--success); } .step-icon { font-size: 1.5rem; } /* Results Section */ .results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; } .results-header h2 { font-size: 1.8rem; } .results-actions { display: flex; gap: 10px; } /* Stats Grid */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-bottom: 30px; } .stat-card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); } .stat-card.highlight { background: linear-gradient(135deg, var(--primary), #a855f7); } .stat-value { font-size: 2.5rem; font-weight: 700; margin-bottom: 8px; } .stat-label { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; } .stat-card.highlight .stat-label { color: rgba(255, 255, 255, 0.8); } /* Rejection Breakdown */ .rejection-breakdown { background: var(--bg-card); border-radius: var(--radius); padding: 24px; margin-bottom: 30px; } .rejection-breakdown h3 { margin-bottom: 20px; font-size: 1rem; color: var(--text-muted); } .rejection-bars { display: flex; flex-direction: column; gap: 12px; } .rejection-item { display: flex; align-items: center; gap: 15px; } .rejection-label { flex: 0 0 200px; font-size: 0.9rem; color: var(--text); } .rejection-bar-container { flex: 1; height: 24px; background: var(--bg); border-radius: 4px; overflow: hidden; position: relative; } .rejection-bar { height: 100%; background: var(--danger); border-radius: 4px; transition: width 0.5s ease; } .rejection-count { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 0.8rem; font-weight: 600; } /* Tabs */ .tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px; } .tab { padding: 12px 24px; background: transparent; border: none; color: var(--text-muted); font-size: 1rem; font-weight: 500; cursor: pointer; border-radius: 8px; transition: all 0.2s ease; } .tab:hover { background: var(--bg-hover); color: var(--text); } .tab.active { background: var(--primary); color: white; } .tab-content { display: none; } .tab-content.active { display: block; } /* Photo Grid */ .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } .photo-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; } .photo-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); } .photo-card img { width: 100%; aspect-ratio: 1; object-fit: cover; } .photo-info { padding: 12px; } .photo-filename { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; } .photo-score { display: flex; align-items: center; gap: 8px; } .score-bar { flex: 1; height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; } .score-fill { height: 100%; background: linear-gradient(90deg, var(--success), #34d399); border-radius: 3px; } .score-value { font-size: 0.85rem; font-weight: 600; color: var(--success); min-width: 40px; text-align: right; } .photo-reason { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; padding: 6px 8px; background: var(--bg); border-radius: 4px; } /* Rejected photo styling */ .photo-card.rejected { opacity: 0.8; } .photo-card.rejected .score-fill { background: linear-gradient(90deg, var(--danger), #f87171); } .photo-card.rejected .score-value { color: var(--danger); } .photo-card.rejected .photo-reason { color: var(--danger); } /* Selected photo reason styling */ .photo-reason.selected-reason { color: var(--success); background: rgba(16, 185, 129, 0.1); border-left: 3px solid var(--success); } .photo-reason.rejected-reason { color: var(--danger); background: rgba(239, 68, 68, 0.1); border-left: 3px solid var(--danger); } /* Modal */ .modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; } .modal-content { background: var(--bg-card); border-radius: var(--radius); max-width: 900px; max-height: 90vh; overflow: auto; position: relative; } .modal-close { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: var(--text-muted); cursor: pointer; z-index: 1; } .modal-close:hover { color: var(--text); } #modal-image { width: 100%; max-height: 60vh; object-fit: contain; } .modal-info { padding: 24px; } .modal-info h3 { margin-bottom: 15px; word-break: break-all; } .modal-reason { padding: 12px 16px; background: var(--bg); border-radius: 8px; margin-bottom: 20px; font-size: 0.95rem; } .modal-reason.selected { border-left: 4px solid var(--success); } .modal-reason.rejected { border-left: 4px solid var(--danger); } .score-breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; } .score-item { background: var(--bg); padding: 16px; border-radius: 8px; } .score-item-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; } .score-item-value { font-size: 1.5rem; font-weight: 600; } .score-item-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 8px; overflow: hidden; } .score-item-fill { height: 100%; background: var(--primary); border-radius: 2px; } /* Responsive */ @media (max-width: 768px) { .header h1 { font-size: 1.8rem; } .upload-area { padding: 40px 20px; } .quality-buttons { grid-template-columns: 1fr; } .processing-steps { gap: 15px; } .step { font-size: 0.85rem; } .results-header { flex-direction: column; align-items: flex-start; } .photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .rejection-label { flex: 0 0 120px; font-size: 0.8rem; } } /* Scrollbar */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: var(--bg); } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--bg-hover); }