/* ---- Reset & Base ---- */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #0f1117; --surface: #1a1d27; --surface2: #232733; --border: #2e3340; --text: #e1e4eb; --text-dim: #8b90a0; --accent: #6c8cff; --accent-dim: #4a64cc; --ok: #4ade80; --warn: #facc15; --err: #f87171; --radius: 8px; } body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; } /* ---- App Layout ---- */ .app { max-width: 1200px; margin: 0 auto; padding: 24px; } .app-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; } .app-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--accent); } .header-stats { display: flex; gap: 8px; flex-wrap: wrap; } /* ---- Badges ---- */ .badge { padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; background: var(--surface2); color: var(--text-dim); } .badge-ok { background: #1a3a2a; color: var(--ok); } .badge-warn { background: #3a3520; color: var(--warn); } /* ---- Progress Stepper ---- */ .stepper { display: flex; align-items: flex-start; justify-content: center; margin-bottom: 28px; padding: 0 24px; } .stepper-item { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; } .stepper-line { flex: 1; height: 2px; background: var(--border); margin-top: 16px; min-width: 40px; } .stepper-line-active { background: var(--accent-dim); } .stepper-circle { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); color: var(--text-dim); font-weight: 700; font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; } .stepper-circle:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); } .stepper-circle.stepper-active { border-color: var(--accent); background: var(--accent); color: #fff; } .stepper-circle.stepper-done { border-color: var(--ok); background: #1a3a2a; color: var(--ok); } .stepper-circle:disabled { opacity: 0.35; cursor: not-allowed; } .stepper-label { font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; font-weight: 500; } .stepper-label-active { color: var(--accent); font-weight: 600; } /* ---- Sub-tabs ---- */ .subtabs { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 3px; margin-bottom: 20px; overflow-x: auto; } .subtab { padding: 7px 16px; background: none; border: none; border-radius: 6px; color: var(--text-dim); cursor: pointer; font-size: 0.8rem; font-weight: 500; white-space: nowrap; transition: all 0.15s; } .subtab:hover { color: var(--text); background: var(--surface2); } .subtab-active { color: #fff; background: var(--accent); font-weight: 600; } /* ---- Collapsible Toggle ---- */ .collapsible-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 16px; margin: 16px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-dim); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: color 0.15s, border-color 0.15s; } .collapsible-toggle:hover { color: var(--text); border-color: var(--accent-dim); } .collapsible-arrow { font-size: 0.75rem; } /* ---- Advanced Settings Toggle ---- */ .advanced-toggle { display: flex; align-items: center; gap: 6px; padding: 0; margin: 12px 0 0; background: none; border: none; color: var(--text-dim); font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: color 0.15s; } .advanced-toggle:hover { color: var(--accent); } .advanced-section { padding-top: 8px; margin-bottom: 12px; } /* ---- Toggle (segmented control) ---- */ .toggle { display: inline-flex; gap: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 3px; } .toggle-option { padding: 6px 14px; background: none; border: none; border-radius: 6px; color: var(--text-dim); font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.15s; white-space: nowrap; } .toggle-option:hover { color: var(--text); } .toggle-option-active { background: var(--accent); color: #fff; font-weight: 600; } /* ---- Switch (on/off) ---- */ .switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; } .switch-track { position: relative; width: 40px; height: 22px; border-radius: 11px; background: var(--border); border: none; cursor: pointer; padding: 0; transition: background 0.2s; } .switch-track-on { background: var(--accent); } .switch-thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; } .switch-track-on .switch-thumb { transform: translateX(18px); } .switch-label { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; user-select: none; } /* ---- Custom Select ---- */ .custom-select { position: relative; min-width: 180px; } .custom-select-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 0.875rem; font-family: inherit; cursor: pointer; transition: border-color 0.15s; text-align: left; } .custom-select-trigger:hover, .custom-select-trigger:focus { border-color: var(--accent); outline: none; } .custom-select-arrow { font-size: 0.7rem; color: var(--text-dim); margin-left: 8px; } .custom-select-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; z-index: 100; max-height: 240px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); } .custom-select-option { display: block; width: 100%; padding: 8px 10px; background: none; border: none; border-radius: 6px; color: var(--text-dim); font-size: 0.85rem; font-family: inherit; cursor: pointer; text-align: left; transition: all 0.1s; } .custom-select-option:hover { background: var(--surface2); color: var(--text); } .custom-select-option-active { background: var(--accent); color: #fff; } .custom-select-option-active:hover { background: var(--accent-dim); color: #fff; } /* ---- Server Error Banner ---- */ .server-error-banner { background: #3a1a1a; color: var(--err); border: 1px solid #5a2a2a; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; font-size: 0.85rem; line-height: 1.5; } /* ---- Content ---- */ .content { min-height: 400px; } /* ---- Cards / Panels ---- */ .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; } .panel h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; } .panel h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dim); } /* ---- Forms ---- */ .form-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; align-items: flex-end; } .form-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 180px; } .form-group label { font-size: 0.8rem; font-weight: 500; color: var(--text-dim); } input, textarea, select { padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 0.875rem; font-family: inherit; } input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); } textarea { resize: vertical; min-height: 100px; } /* ---- Buttons ---- */ button.btn { padding: 8px 20px; border: none; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background 0.15s, opacity 0.15s; } .btn-primary { background: var(--accent); color: #fff; } .btn-primary:hover:not(:disabled) { background: var(--accent-dim); } .btn-secondary { background: var(--surface2); color: var(--text); } .btn-secondary:hover:not(:disabled) { background: var(--border); } button:disabled { opacity: 0.5; cursor: not-allowed; } /* ---- Results ---- */ .result-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; transition: border-color 0.15s; } .result-card:hover { border-color: var(--accent-dim); } .result-card .result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; } .result-card-selected { border-color: var(--accent); } .result-card .result-text { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; } .score-bar-container { display: flex; align-items: center; gap: 8px; } .score-bar { width: 120px; height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; } .score-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; } .score-label { font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; } /* ---- Similarity gauge ---- */ .similarity-gauge { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 24px; } .similarity-value { font-size: 3rem; font-weight: 800; font-variant-numeric: tabular-nums; } .similarity-label { font-size: 0.9rem; color: var(--text-dim); margin-top: 4px; } /* ---- Status / Alerts ---- */ .status { padding: 10px 14px; border-radius: var(--radius); font-size: 0.85rem; margin-bottom: 12px; } .status-ok { background: #1a3a2a; color: var(--ok); } .status-err { background: #3a1a1a; color: var(--err); } .status-loading { background: var(--surface2); color: var(--text-dim); } /* ---- Table ---- */ .data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; } .data-table th, .data-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); } .data-table th { color: var(--text-dim); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; } .data-table tr:hover td { background: var(--surface2); } .data-table input, .data-table select { font-size: 0.85rem; } /* ---- Grid ---- */ .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } } /* ---- Metric Card ---- */ .metric-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; } .metric-value { font-size: 1.75rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; } .metric-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.3px; } /* ---- Spinner ---- */ .spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--text-dim); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; margin-right: 6px; vertical-align: middle; } @keyframes spin { to { transform: rotate(360deg); } } /* ---- Tags ---- */ .tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; background: var(--surface); margin: 2px; } .tag-best { background: #1a3a2a; color: var(--ok); } /* ---- Utility classes ---- */ .panel-desc { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 12px; } .section-label { font-size: 0.8rem; font-weight: 600; color: var(--text-dim); margin-bottom: 4px; } .text-dim { color: var(--text-dim); } .form-group-sm { max-width: 100px; } .form-group-md { max-width: 140px; } .form-group-lg { max-width: 220px; } .metric-grid { display: flex; gap: 16px; flex-wrap: wrap; } .metric-grid > * { flex: 1 1 100px; } .flex-row { display: flex; gap: 8px; } .flex-col { display: flex; flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .gap-1 { gap: 8px; } .gap-2 { gap: 12px; } .gap-3 { gap: 16px; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 16px; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 16px; } /* ---- Context Analysis bar chart ---- */ .context-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .context-bar-label { width: 90px; font-size: 0.82rem; font-weight: 600; text-align: right; color: var(--text); flex-shrink: 0; } .context-bar-track { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; } .context-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s; } .context-bar-value { font-size: 0.75rem; color: var(--text-dim); width: 40px; text-align: right; flex-shrink: 0; } .context-snippet { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; padding: 8px 10px; background: var(--bg); border-radius: 6px; margin-bottom: 4px; } .context-snippet-source { font-size: 0.7rem; color: var(--accent); margin-right: 6px; } .score-bar-legend { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }