/* ═══════════════════════════════════════════════════════════ Screenshot Studio — Premium Design System v2.0 ═══════════════════════════════════════════════════════════ */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); /* ── Design Tokens ── */ :root { --primary: #10B981; --primary-dark: #059669; --primary-light: #D1FAE5; --primary-glow: rgba(16, 185, 129, 0.12); --accent: #6366F1; --accent-light: #EEF2FF; --bg-body: #F0F2F5; --bg-surface: #FFFFFF; --bg-surface-elevated: #FFFFFF; --bg-muted: #F8FAFC; --bg-sidebar: #FAFBFC; --text-primary: #111827; --text-secondary: #6B7280; --text-tertiary: #9CA3AF; --border: #E5E7EB; --border-light: #F3F4F6; --divider: #F1F1F4; --danger: #DC2626; --danger-light: #FEE2E2; --danger-border: #FECACA; --warning: #F59E0B; --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04); --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px rgba(0, 0, 0, 0.04); --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px; --sidebar-width: 260px; --transition-fast: 0.15s ease; --transition-normal: 0.25s ease; --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1); } /* ── Reset & Base ── */ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg-body); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* ══════════════════════════════════════════════════════════ LAYOUT ══════════════════════════════════════════════════════════ */ .app-container { display: flex; min-height: 100vh; } /* ── Sidebar ── */ .sidebar { width: var(--sidebar-width); background: var(--bg-sidebar); border-right: 1px solid var(--border-light); display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 100; transition: transform var(--transition-smooth); overflow: hidden; } .logo { padding: 24px 20px 20px; border-bottom: 1px solid var(--divider); flex-shrink: 0; } .logo h1 { font-size: 17px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; } .logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 15px; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); } .nav-menu { flex: 1; padding: 12px 10px; overflow-y: auto; min-height: 0; } .nav-item { padding: 10px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all var(--transition-fast); color: var(--text-secondary); font-size: 13.5px; font-weight: 500; border-radius: var(--radius-md); margin-bottom: 2px; } .nav-item:hover { background: var(--bg-muted); color: var(--text-primary); } .nav-item.active { background: var(--primary-glow); color: var(--primary-dark); } .nav-icon { width: 20px; height: 20px; stroke-width: 2; flex-shrink: 0; } /* ── Mobile Hamburger ── */ .mobile-header { display: none; position: fixed; top: 0; left: 0; right: 0; height: 56px; background: var(--bg-surface); border-bottom: 1px solid var(--border); z-index: 200; align-items: center; padding: 0 16px; gap: 12px; box-shadow: var(--shadow-xs); } .hamburger-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; color: var(--text-primary); transition: all var(--transition-fast); } .hamburger-btn:hover { background: var(--bg-muted); } .hamburger-btn svg { width: 20px; height: 20px; } .mobile-header .logo h1 { font-size: 15px; } .mobile-header .logo { padding: 0; border: none; } .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(2px); z-index: 99; } .sidebar-overlay.active { display: block; } /* ── Main Content ── */ .main-content { flex: 1; margin-left: var(--sidebar-width); padding: 36px 48px; max-width: 1100px; } .header { margin-bottom: 28px; } .header h2 { font-size: 26px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; letter-spacing: -0.02em; } .header p { color: var(--text-secondary); font-size: 14px; font-weight: 400; } /* ══════════════════════════════════════════════════════════ TOOL SECTIONS ══════════════════════════════════════════════════════════ */ .tool-section { display: none; animation: fadeIn var(--transition-smooth); } .tool-section.active { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } /* ══════════════════════════════════════════════════════════ CARDS ══════════════════════════════════════════════════════════ */ .card { background: var(--bg-surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 28px; margin-bottom: 20px; box-shadow: var(--shadow-xs); transition: box-shadow var(--transition-normal); } .card:hover { box-shadow: var(--shadow-sm); } /* ══════════════════════════════════════════════════════════ FORMS ══════════════════════════════════════════════════════════ */ .form-group { margin-bottom: 20px; } .form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; letter-spacing: 0.01em; } .form-input, .form-textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: 14px; font-family: inherit; transition: all var(--transition-fast); background: var(--bg-surface); color: var(--text-primary); } .form-input:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); } .form-input::placeholder, .form-textarea::placeholder { color: var(--text-tertiary); } .form-textarea { min-height: 180px; resize: vertical; line-height: 1.7; } .form-row { display: flex; gap: 14px; margin-bottom: 14px; } .form-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; } .form-range { width: 100%; height: 6px; -webkit-appearance: none; appearance: none; background: var(--border-light); border-radius: 3px; outline: none; margin-top: 8px; } .form-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 1px 4px rgba(16, 185, 129, 0.3); transition: transform var(--transition-fast); } .form-range::-webkit-slider-thumb:hover { transform: scale(1.15); } .form-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); cursor: pointer; border: none; box-shadow: 0 1px 4px rgba(16, 185, 129, 0.3); } /* ══════════════════════════════════════════════════════════ SETTINGS ══════════════════════════════════════════════════════════ */ .settings-section { background: var(--bg-muted); padding: 18px; border-radius: var(--radius-md); margin-bottom: 18px; border: 1px solid var(--border-light); } .settings-section h3 { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--text-primary); } .settings-group { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 18px; margin-bottom: 16px; } .settings-group h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--text-primary); } .advanced-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-muted); border-radius: var(--radius-md); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-secondary); transition: all var(--transition-fast); margin-bottom: 14px; border: 1px solid var(--border-light); user-select: none; } .advanced-toggle:hover { background: var(--border-light); color: var(--text-primary); } .advanced-toggle:active { transform: scale(0.98); } .advanced-toggle svg { transition: transform 0.2s ease; } .advanced-settings { background: var(--bg-muted); padding: 18px; border-radius: var(--radius-md); margin-top: -6px; border: 1px solid var(--border-light); } .advanced-settings.open { display: block !important; } /* ══════════════════════════════════════════════════════════ BUTTONS ══════════════════════════════════════════════════════════ */ .btn { padding: 10px 20px; border: none; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all var(--transition-fast); display: inline-flex; align-items: center; gap: 8px; font-family: inherit; letter-spacing: 0.01em; position: relative; overflow: hidden; } .btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25); } .btn-primary:hover { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); transform: translateY(-1px); } .btn-primary:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2); } .btn-primary:disabled { background: var(--border); box-shadow: none; cursor: not-allowed; transform: none; } .btn-secondary { background: var(--bg-muted); color: var(--text-primary); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--border-light); border-color: var(--border); } .btn-danger { background: var(--danger-light); color: var(--danger); border: 1px solid var(--danger-border); } .btn-danger:hover { background: var(--danger-border); } .btn-ghost-danger { background: transparent; color: var(--text-tertiary); border: 1px solid var(--border); padding: 7px 10px; } .btn-ghost-danger:hover { background: #FEF2F2; color: var(--danger); border-color: var(--danger-border); } .btn--disabled { opacity: 0.5; cursor: not-allowed !important; pointer-events: none; } .btn--loading { opacity: 0.7; cursor: wait !important; pointer-events: none; } .btn--loading::after { content: ''; display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; margin-left: 6px; } .btn-secondary.btn--loading::after { border-color: rgba(0, 0, 0, 0.1); border-top-color: var(--text-primary); } .btn-icon { background: none; border: none; padding: 6px; cursor: pointer; color: var(--text-secondary); transition: all var(--transition-fast); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); } .btn-icon:hover { background: var(--primary-glow); color: var(--primary); } .button-group { display: flex; gap: 12px; margin-top: 20px; } .button-group .btn { flex: 1; } /* ══════════════════════════════════════════════════════════ UTILITY CLASSES (replacing inline styles) ══════════════════════════════════════════════════════════ */ .flex { display: flex; } .flex-1 { flex: 1; } .flex-2 { flex: 2; } .flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .mt-4 { margin-top: 4px; } .mt-10 { margin-top: 10px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; } .mb-0 { margin-bottom: 0; } .mb-18 { margin-bottom: 18px; } .text-center { text-align: center; } .text-right { text-align: right; } .hidden { display: none; } .w-full { width: 100%; } .font-mono { font-family: 'Menlo', 'Consolas', monospace; font-size: 13px; } /* ── Extended Utilities (v2.1) ── */ .gap-16 { gap: 16px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; } .text-sm { font-size: 13px; } .text-secondary { color: var(--text-secondary); } .text-tertiary { color: var(--text-tertiary); } .text-danger { color: #e53e3e; } .fw-500 { font-weight: 500; } /* ── Component Utilities ── */ .file-preview-card { padding: 24px; background: var(--bg-muted); border-radius: var(--radius-md); display: inline-block; text-align: center; } .file-preview-card svg { margin-bottom: 8px; } .preview-image { max-width: 100%; max-height: 400px; border-radius: var(--radius-md); } .resource-group { margin-bottom: 32px; width: 100%; } .resource-group-header { margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); color: var(--text-primary); font-size: 16px; font-weight: 600; } .modal-dialog { width: 90%; max-width: 600px; background: var(--bg-surface); border-radius: var(--radius-lg); padding: 32px; } /* ── Spinner ── */ @keyframes spin { to { transform: rotate(360deg); } } .spin { animation: spin 1s linear infinite; } .btn[disabled] { opacity: 0.6; cursor: not-allowed; pointer-events: none; } /* ══════════════════════════════════════════════════════════ FILE UPLOAD ══════════════════════════════════════════════════════════ */ .file-upload { border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 28px; text-align: center; cursor: pointer; transition: all var(--transition-fast); } .file-upload:hover { border-color: var(--primary); background: var(--primary-glow); } .file-upload input { display: none; } .file-upload-icon { margin: 0 auto 10px; opacity: 0.4; display: block; } .file-upload-text { color: var(--text-secondary); font-size: 13px; } .file-upload-hint { color: var(--text-tertiary); font-size: 12px; margin-top: 3px; } .file-name { margin-top: 10px; font-size: 12px; color: var(--text-secondary); } /* ══════════════════════════════════════════════════════════ TABS ══════════════════════════════════════════════════════════ */ .tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 1.5px solid var(--border-light); } .tab { padding: 10px 18px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-secondary); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all var(--transition-fast); font-family: inherit; } .tab:hover { color: var(--text-primary); } .tab.active { color: var(--primary-dark); border-bottom-color: var(--primary); font-weight: 600; } /* ══════════════════════════════════════════════════════════ LOADING & PROGRESS ══════════════════════════════════════════════════════════ */ .loading { display: none; text-align: center; padding: 32px; } .loading.active { display: block; } .loading-text { color: var(--text-secondary); margin-top: 10px; font-size: 14px; } .spinner { width: 40px; height: 40px; border: 3px solid var(--primary-light); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 14px; } @keyframes spin { to { transform: rotate(360deg); } } /* Progress Bar (inline in cards) */ .progress-container { width: 100%; max-width: 380px; margin: 0 auto; } .progress-bar { width: 100%; height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; } .progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; transition: width 0.3s ease; width: 0%; } .progress-text { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; } .eta-text { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; } /* Progress bar container (Image-to-Screenshots step progress) */ .progress-bar-container { width: 100%; height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; margin-bottom: 10px; } .progress-bar-container .progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; transition: width 0.4s ease; width: 0%; } .progress-info { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); } .progress-info span:first-child { font-weight: 600; color: var(--primary-dark); } /* ══════════════════════════════════════════════════════════ STEP INDICATORS (Image-to-Screenshots) ══════════════════════════════════════════════════════════ */ .step-indicators { display: flex; justify-content: space-between; margin-bottom: 24px; position: relative; } .step-indicators::before { content: ''; position: absolute; top: 18px; left: 36px; right: 36px; height: 2px; background: var(--border-light); z-index: 0; } .step-indicator { display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; flex: 1; } .step-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-muted); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--text-tertiary); transition: all var(--transition-normal); } .step-label { font-size: 11px; font-weight: 500; color: var(--text-tertiary); text-align: center; transition: color var(--transition-normal); } /* Active step */ .step-indicator.active .step-icon { background: var(--primary-glow); border-color: var(--primary); color: var(--primary-dark); box-shadow: 0 0 0 4px var(--primary-glow); animation: stepPulse 1.5s ease-in-out infinite; } .step-indicator.active .step-label { color: var(--primary-dark); font-weight: 600; } /* Completed step */ .step-indicator.completed .step-icon { background: var(--primary); border-color: var(--primary); color: white; font-size: 0; box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3); } .step-indicator.completed .step-icon::after { content: '✓'; font-size: 16px; } .step-indicator.completed .step-label { color: var(--primary-dark); } /* Error step */ .step-indicator.error .step-icon { background: var(--danger-light); border-color: var(--danger); color: var(--danger); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1); } .step-indicator.error .step-label { color: var(--danger); } @keyframes stepPulse { 0%, 100% { box-shadow: 0 0 0 4px var(--primary-glow); } 50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.06); } } /* ══════════════════════════════════════════════════════════ RESULTS & ALERTS ══════════════════════════════════════════════════════════ */ .result-section { display: none; margin-top: 20px; animation: fadeIn var(--transition-smooth); } .result-section.active { display: block; } .alert { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 20px; display: flex; align-items: flex-start; gap: 10px; font-size: 14px; } .alert-success { background: var(--primary-light); color: var(--primary-dark); border: 1px solid rgba(16, 185, 129, 0.2); } .alert-error { background: #FEF2F2; color: var(--danger); border: 1px solid var(--danger-border); } /* ══════════════════════════════════════════════════════════ SCREENSHOT GRID & CARDS ══════════════════════════════════════════════════════════ */ .screenshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; } .screenshot-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-normal); cursor: pointer; position: relative; } .screenshot-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); } .screenshot-card img { width: 100%; height: auto; display: block; cursor: pointer; } .screenshot-info { padding: 10px 14px; font-size: 12px; color: var(--text-secondary); border-top: 1px solid var(--border-light); } .screenshot-card:hover .screenshot-info { background: var(--bg-muted); } /* ══════════════════════════════════════════════════════════ IMAGE MODAL ══════════════════════════════════════════════════════════ */ .image-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(8px); z-index: 9999; align-items: center; justify-content: center; } .image-modal.active { display: flex; } .image-modal-content { position: relative; max-width: 90%; max-height: 90%; display: flex; align-items: center; justify-content: center; } .image-modal img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--radius-md); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); } .modal-close { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, 0.95); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #333; transition: all var(--transition-fast); z-index: 10001; box-shadow: var(--shadow-sm); } .modal-close:hover { background: white; transform: scale(1.1); } .modal-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.9); border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #333; transition: all var(--transition-fast); z-index: 10001; box-shadow: var(--shadow-sm); } .modal-nav:hover { background: white; transform: translateY(-50%) scale(1.1); } .modal-nav:disabled { opacity: 0.3; cursor: not-allowed; } .modal-nav:disabled:hover { transform: translateY(-50%) scale(1); } .modal-nav-prev { left: 16px; } .modal-nav-next { right: 16px; } .modal-info { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.95); padding: 6px 14px; border-radius: 20px; font-size: 13px; color: #333; font-weight: 500; box-shadow: var(--shadow-sm); } .modal-download { position: absolute; top: 16px; left: 16px; background: var(--primary); color: white; border: none; padding: 8px 14px; border-radius: var(--radius-md); cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; transition: all var(--transition-fast); z-index: 10001; box-shadow: var(--shadow-sm); font-family: inherit; } .modal-download:hover { background: var(--primary-dark); transform: scale(1.03); } /* ══════════════════════════════════════════════════════════ NOTIFICATIONS ══════════════════════════════════════════════════════════ */ .notification-toast { position: fixed; bottom: 20px; right: 20px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; min-width: 280px; max-width: 380px; z-index: 10000; animation: slideIn 0.3s ease; } @keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } .notification-toast.success { border-left: 3px solid var(--primary); } .notification-toast.error { border-left: 3px solid var(--danger); } .notification-toast.info { border-left: 3px solid var(--accent); } .notification-icon { width: 22px; height: 22px; flex-shrink: 0; } .notification-content { flex: 1; } .notification-title { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; } .notification-message { font-size: 12.5px; color: var(--text-secondary); } .notification-close { background: none; border: none; cursor: pointer; color: var(--text-tertiary); font-size: 18px; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); transition: all var(--transition-fast); } .notification-close:hover { background: var(--bg-muted); color: var(--text-primary); } /* ══════════════════════════════════════════════════════════ METRICS ══════════════════════════════════════════════════════════ */ .metrics-display { background: var(--bg-muted); border-radius: var(--radius-md); padding: 10px 14px; margin-top: 10px; font-size: 12.5px; color: var(--text-secondary); display: flex; gap: 16px; flex-wrap: wrap; border: 1px solid var(--border-light); } .metric-item { display: flex; align-items: center; gap: 5px; } .metric-label { font-weight: 600; color: var(--text-primary); } .metric-value { color: var(--primary-dark); } /* ══════════════════════════════════════════════════════════ RESOURCES ══════════════════════════════════════════════════════════ */ .resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; } .resource-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-normal); } .resource-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } .resource-card img { width: 100%; height: 180px; object-fit: cover; display: block; cursor: pointer; } .resource-card-info { padding: 12px 14px; } .resource-card-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; word-break: break-all; } .resource-card-actions { display: flex; gap: 8px; margin-top: 10px; } .resource-card-actions .btn { flex: 1; padding: 7px 10px; font-size: 12.5px; justify-content: center; } .resources-list { display: flex; flex-direction: column; gap: 10px; } .resource-list-item { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; transition: all var(--transition-fast); } .resource-list-item:hover { background: var(--bg-muted); box-shadow: var(--shadow-xs); } .resource-btn-group { display: flex; gap: 6px; } /* Resource Checkbox */ .resource-checkbox, .resource-list-checkbox { position: absolute; top: 10px; left: 10px; width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); z-index: 2; } .resource-card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); } .resource-list-checkbox { position: relative; top: auto; left: auto; flex-shrink: 0; } .resource-list-icon { color: var(--text-tertiary); flex-shrink: 0; } .resource-list-info { flex: 1; min-width: 0; } .resource-list-name { font-size: 13px; font-weight: 600; color: var(--text-primary); word-break: break-all; } .resource-list-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; } .resource-list-actions { display: flex; gap: 6px; flex-shrink: 0; } .resource-list-actions .btn { padding: 6px 10px; font-size: 12px; } .resource-list-item.selected { border-color: var(--primary); background: var(--primary-glow); } /* ══════════════════════════════════════════════════════════ TOKEN COUNTER ══════════════════════════════════════════════════════════ */ .token-counter { font-size: 11.5px; color: var(--text-tertiary); margin-top: 6px; padding: 0 2px; text-align: right; font-variant-numeric: tabular-nums; transition: color var(--transition-fast); font-weight: 500; } .token-counter--warning { color: var(--warning); } .token-counter--danger { color: var(--danger); } /* ══════════════════════════════════════════════════════════ CACHE BUTTON (sidebar bottom) ══════════════════════════════════════════════════════════ */ .cache-button-container { flex-shrink: 0; padding: 16px; border-top: 1px solid var(--divider); background: var(--bg-sidebar); } .cache-clear-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; font-size: 13px; background: transparent; border: 1px solid var(--border); color: var(--text-secondary); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition-fast); font-weight: 500; } .cache-clear-btn:hover { background: #FEF2F2; border-color: var(--danger-border); color: var(--danger); } .cache-clear-btn svg { opacity: 0.85; } .cache-stats { margin-top: 8px; font-size: 10px; color: var(--text-tertiary); text-align: center; font-weight: 400; } /* ══════════════════════════════════════════════════════════ COMPARISON SLIDER ══════════════════════════════════════════════════════════ */ .image-comparison-slider { position: relative; overflow: hidden; cursor: col-resize; border: 2px solid var(--border); border-radius: var(--radius-md); } .image-comparison-slider img { display: block; width: 100%; height: auto; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; } .comparison-handle { position: absolute; top: 0; bottom: 0; width: 4px; background: var(--primary); cursor: col-resize; z-index: 5; transition: none; } .comparison-handle>div:last-child { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); border: 2px solid var(--primary); } /* ══════════════════════════════════════════════════════════ PREVIEW MODAL ══════════════════════════════════════════════════════════ */ .preview-modal-body { width: 90%; max-width: 1200px; max-height: 90vh; overflow: auto; background: white; border-radius: var(--radius-lg); padding: 24px; } .preview-modal-title { margin-bottom: 14px; font-size: 18px; font-weight: 600; } .preview-modal-actions { display: flex; gap: 10px; margin-bottom: 14px; } .preview-frame-wrapper { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; background: var(--bg-muted); max-height: 60vh; overflow: auto; } .preview-frame { width: 100%; min-height: 400px; border: none; background: white; border-radius: var(--radius-sm); } /* ══════════════════════════════════════════════════════════ IMAGE-TO-SCREENSHOTS SPECIFIC ══════════════════════════════════════════════════════════ */ .image-preview { margin-top: 10px; text-align: center; } .empty-state { text-align: center; padding: 48px; color: var(--text-tertiary); } .empty-state-icon { margin: 0 auto 14px; opacity: 0.3; display: block; } .empty-state-title { font-weight: 500; } .empty-state-hint { font-size: 13px; margin-top: 6px; } .quality-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-tertiary); margin-top: 4px; padding: 0 2px; } .error-card { background: #FEF2F2; border-color: var(--danger-border); } /* ══════════════════════════════════════════════════════════ RESPONSIVE DESIGN ══════════════════════════════════════════════════════════ */ @media (max-width: 768px) { .mobile-header { display: flex; } .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-xl); } .sidebar.open { transform: translateX(0); } .main-content { margin-left: 0; padding: 76px 16px 20px; } .form-row { flex-direction: column; } .screenshot-grid, .resources-grid { grid-template-columns: 1fr; } .step-indicators { gap: 4px; } .step-indicators::before { left: 20px; right: 20px; } .button-group { flex-direction: column; } } @media (max-width: 480px) { .header h2 { font-size: 22px; } .card { padding: 18px; } }