| |
| .admin-main { |
| margin-top: var(--header-h); |
| padding: 24px 32px; |
| max-width: 1200px; |
| margin-left: auto; |
| margin-right: auto; |
| min-height: calc(100vh - var(--header-h)); |
| overflow-y: auto; |
| } |
|
|
| |
| .user-badge { |
| padding: 4px 12px; |
| background: rgba(88,166,255,.1); |
| border: 1px solid rgba(88,166,255,.25); |
| border-radius: 20px; |
| font-size: .78rem; |
| font-weight: 600; |
| color: var(--accent); |
| } |
| .logout-btn { |
| display: flex; align-items: center; gap: 6px; |
| padding: 6px 14px; |
| background: transparent; |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| color: var(--text-muted); |
| font-size: .8rem; |
| cursor: pointer; |
| transition: all .2s; |
| } |
| .logout-btn:hover { border-color: #f87171; color: #f87171; } |
|
|
| |
| .tab-nav { |
| display: flex; |
| gap: 4px; |
| margin-bottom: 24px; |
| border-bottom: 1px solid var(--border); |
| padding-bottom: 0; |
| } |
| .tab-btn { |
| padding: 10px 20px; |
| background: transparent; |
| border: none; |
| border-bottom: 2px solid transparent; |
| color: var(--text-muted); |
| font-size: .85rem; |
| font-weight: 500; |
| cursor: pointer; |
| transition: all .2s; |
| font-family: inherit; |
| } |
| .tab-btn:hover { color: var(--text-primary); } |
| .tab-btn.active { |
| color: var(--accent); |
| border-bottom-color: var(--accent); |
| } |
|
|
| |
| .tab-content { display: none; } |
| .tab-content.active { display: block; } |
|
|
| |
| .section-header { |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| margin-bottom: 20px; |
| } |
| .section-header h2 { |
| font-size: 1.1rem; |
| font-weight: 700; |
| } |
| .section-header p { |
| font-size: .8rem; |
| color: var(--text-muted); |
| margin-left: 12px; |
| } |
| .section-header p code { |
| background: var(--bg-card); |
| padding: 2px 8px; |
| border-radius: 4px; |
| font-size: .75rem; |
| color: var(--accent); |
| } |
|
|
| |
| .primary-btn { |
| display: inline-flex; align-items: center; gap: 6px; |
| padding: 8px 16px; |
| background: linear-gradient(135deg, var(--accent), #388bfd); |
| color: #fff; |
| border: none; |
| border-radius: var(--radius-sm); |
| font-size: .82rem; |
| font-weight: 600; |
| cursor: pointer; |
| transition: opacity .2s; |
| font-family: inherit; |
| } |
| .primary-btn:hover { opacity: .85; } |
| .ghost-btn { |
| padding: 8px 16px; |
| background: transparent; |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| color: var(--text-secondary); |
| font-size: .82rem; |
| cursor: pointer; |
| transition: all .2s; |
| font-family: inherit; |
| } |
| .ghost-btn:hover { border-color: var(--text-muted); } |
| .danger-btn { |
| padding: 4px 10px; |
| background: rgba(248,113,113,.1); |
| border: 1px solid rgba(248,113,113,.25); |
| border-radius: var(--radius-sm); |
| color: #f87171; |
| font-size: .75rem; |
| cursor: pointer; |
| transition: all .2s; |
| font-family: inherit; |
| } |
| .danger-btn:hover { background: rgba(248,113,113,.2); } |
|
|
| |
| .create-form { |
| background: var(--bg-card); |
| border: 1px solid var(--border); |
| border-radius: var(--radius); |
| padding: 14px 18px; |
| margin-bottom: 20px; |
| } |
| .form-row { |
| display: flex; |
| gap: 10px; |
| align-items: center; |
| flex-wrap: wrap; |
| } |
| .form-row input, .form-row select { |
| padding: 8px 12px; |
| background: var(--bg-primary); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| color: var(--text-primary); |
| font-size: .85rem; |
| outline: none; |
| min-width: 140px; |
| font-family: inherit; |
| } |
| .form-row input:focus, .form-row select:focus { border-color: var(--accent); } |
| .form-error { |
| color: #f87171; |
| font-size: .78rem; |
| margin-top: 8px; |
| min-height: 1em; |
| } |
|
|
| |
| .table-container { overflow-x: auto; } |
| .data-table { |
| width: 100%; |
| border-collapse: collapse; |
| font-size: .85rem; |
| } |
| .data-table th { |
| text-align: left; |
| padding: 10px 14px; |
| background: var(--bg-card); |
| color: var(--text-muted); |
| font-size: .72rem; |
| font-weight: 600; |
| text-transform: uppercase; |
| letter-spacing: .06em; |
| border-bottom: 1px solid var(--border); |
| } |
| .data-table td { |
| padding: 10px 14px; |
| border-bottom: 1px solid var(--border-light); |
| color: var(--text-secondary); |
| } |
| .data-table tbody tr:hover { background: var(--bg-hover); } |
| .role-badge { |
| padding: 2px 8px; |
| border-radius: 10px; |
| font-size: .72rem; |
| font-weight: 600; |
| } |
| .role-admin { background: rgba(167,139,250,.12); color: #a78bfa; } |
| .role-annotator { background: rgba(52,211,153,.12); color: #34d399; } |
|
|
| |
| .card-grid { |
| display: grid; |
| grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); |
| gap: 14px; |
| } |
| .file-card { |
| background: var(--bg-card); |
| border: 1px solid var(--border); |
| border-radius: var(--radius); |
| padding: 18px; |
| cursor: pointer; |
| transition: all .2s; |
| } |
| .file-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); } |
| .file-card-header { |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| margin-bottom: 12px; |
| } |
| .file-card-name { |
| font-weight: 600; |
| font-size: .85rem; |
| word-break: break-all; |
| } |
| .file-card-stats { |
| display: flex; |
| justify-content: space-between; |
| font-size: .78rem; |
| color: var(--text-muted); |
| margin-bottom: 8px; |
| } |
| .progress-bar { |
| height: 5px; |
| background: var(--border); |
| border-radius: 3px; |
| overflow: hidden; |
| margin-bottom: 10px; |
| } |
| .progress-fill { |
| height: 100%; |
| border-radius: 3px; |
| transition: width .4s ease; |
| } |
| .completed-badge { |
| font-size: .75rem; |
| color: #34d399; |
| font-weight: 600; |
| text-align: center; |
| } |
| .continue-badge { |
| font-size: .75rem; |
| color: var(--accent); |
| font-weight: 600; |
| text-align: center; |
| } |
|
|
| |
| .empty-state { |
| text-align: center; |
| padding: 60px 20px; |
| color: var(--text-muted); |
| } |
|
|
| |
| .progress-cell { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| } |
| .progress-cell .progress-bar { |
| width: 80px; |
| margin-bottom: 0; |
| } |
| .progress-text { |
| font-size: .75rem; |
| font-variant-numeric: tabular-nums; |
| min-width: 60px; |
| } |
|
|
| |
| .review-card { border-color: rgba(88,166,255,.3); } |
| .review-buttons { |
| display: flex; |
| gap: 8px; |
| margin-bottom: 10px; |
| } |
| .review-btn { |
| flex: 1; |
| padding: 10px; |
| border: 2px solid var(--border); |
| border-radius: var(--radius-sm); |
| background: transparent; |
| font-size: .85rem; |
| font-weight: 600; |
| cursor: pointer; |
| transition: all .15s; |
| font-family: inherit; |
| } |
| .accept-btn { color: var(--text-muted); } |
| .accept-btn:hover, .accept-btn.active { |
| border-color: #34d399; |
| background: rgba(52,211,153,.1); |
| color: #34d399; |
| } |
| .reject-btn { color: var(--text-muted); } |
| .reject-btn:hover, .reject-btn.active { |
| border-color: #f87171; |
| background: rgba(248,113,113,.1); |
| color: #f87171; |
| } |
| .review-comment { |
| width: 100%; |
| padding: 10px; |
| background: var(--bg-primary); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| color: var(--text-primary); |
| font-size: .8rem; |
| font-family: inherit; |
| resize: vertical; |
| outline: none; |
| margin-bottom: 10px; |
| } |
| .review-comment:focus { border-color: var(--accent); } |
| .submit-review-btn { |
| width: 100%; |
| padding: 10px; |
| background: linear-gradient(135deg, var(--accent), #388bfd); |
| color: #fff; |
| border: none; |
| border-radius: var(--radius-sm); |
| font-weight: 600; |
| font-size: .85rem; |
| cursor: pointer; |
| transition: opacity .2s; |
| font-family: inherit; |
| } |
| .submit-review-btn:hover { opacity: .85; } |
| .submit-review-btn:disabled { opacity: .4; cursor: not-allowed; } |
| .review-status-badge { |
| margin-left: auto; |
| padding: 2px 10px; |
| border-radius: 10px; |
| font-size: .72rem; |
| font-weight: 700; |
| } |
| .review-status-accept { background: rgba(52,211,153,.12); color: #34d399; border: 1px solid rgba(52,211,153,.3); } |
| .review-status-reject { background: rgba(248,113,113,.12); color: #f87171; border: 1px solid rgba(248,113,113,.3); } |
|
|
| |
| .sample-review-dot { |
| width: 7px; height: 7px; |
| border-radius: 50%; |
| display: inline-block; |
| margin-left: 4px; |
| } |
| .dot-accept { background: #34d399; } |
| .dot-reject { background: #f87171; } |
| .dot-pending { background: var(--border); } |
|
|
| |
| .edit-toggle-btn { |
| margin-left: auto; |
| padding: 3px 10px; |
| background: transparent; |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| color: var(--text-muted); |
| font-size: .72rem; |
| cursor: pointer; |
| transition: all .15s; |
| font-family: inherit; |
| display: flex; align-items: center; gap: 4px; |
| } |
| .edit-toggle-btn:hover { border-color: var(--accent); color: var(--accent); } |
| .edit-toggle-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(88,166,255,.1); } |
|
|
| |
| .history-modal { |
| position: fixed; |
| inset: 0; |
| z-index: 1200; |
| display: none; |
| align-items: center; |
| justify-content: center; |
| padding: 24px; |
| background: rgba(5, 8, 13, .78); |
| backdrop-filter: blur(3px); |
| } |
| .history-modal.visible { display: flex; } |
| .history-dialog { |
| width: min(760px, 100%); |
| max-height: min(760px, 90vh); |
| display: flex; |
| flex-direction: column; |
| overflow: hidden; |
| background: var(--bg-card); |
| border: 1px solid var(--border-light); |
| border-radius: var(--radius); |
| box-shadow: 0 18px 60px rgba(0, 0, 0, .55); |
| } |
| .history-header { |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| gap: 16px; |
| padding: 16px 20px; |
| border-bottom: 1px solid var(--border); |
| } |
| .history-header h2 { margin: 0; font-size: 1rem; } |
| .history-header p { margin: 4px 0 0; color: var(--text-muted); font-size: .74rem; } |
| .history-close { |
| width: 32px; |
| height: 32px; |
| border: 1px solid var(--border); |
| border-radius: 50%; |
| background: transparent; |
| color: var(--text-secondary); |
| font-size: 1.35rem; |
| line-height: 1; |
| cursor: pointer; |
| } |
| .history-close:hover { color: var(--text-primary); border-color: var(--accent); } |
| .history-content { overflow-y: auto; padding: 18px 20px 22px; } |
| .history-empty, .history-loading { |
| padding: 36px 16px; |
| color: var(--text-muted); |
| text-align: center; |
| font-size: .82rem; |
| } |
| .history-entry { |
| position: relative; |
| margin-left: 8px; |
| padding: 0 0 18px 22px; |
| border-left: 1px solid var(--border-light); |
| } |
| .history-entry:last-child { padding-bottom: 0; } |
| .history-entry::before { |
| content: ''; |
| position: absolute; |
| top: 4px; |
| left: -5px; |
| width: 9px; |
| height: 9px; |
| border-radius: 50%; |
| background: var(--accent); |
| box-shadow: 0 0 0 4px var(--bg-card); |
| } |
| .history-entry-head { |
| display: flex; |
| flex-wrap: wrap; |
| align-items: baseline; |
| gap: 6px 10px; |
| margin-bottom: 9px; |
| } |
| .history-version { color: var(--accent); font-size: .8rem; font-weight: 700; } |
| .history-meta { color: var(--text-muted); font-size: .7rem; } |
| .history-summary { |
| padding: 11px 12px; |
| background: rgba(255, 255, 255, .025); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| font-size: .76rem; |
| line-height: 1.55; |
| } |
| .history-field + .history-field { margin-top: 7px; } |
| .history-field-label { color: var(--text-muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; } |
| .history-reasoning { margin-top: 3px; color: var(--text-secondary); white-space: pre-wrap; } |
| .history-json { margin-top: 8px; } |
| .history-json summary { color: var(--text-muted); cursor: pointer; font-size: .7rem; } |
| .history-json pre { |
| overflow-x: auto; |
| margin: 8px 0 0; |
| padding: 10px; |
| background: var(--bg-primary); |
| border-radius: var(--radius-sm); |
| color: var(--text-secondary); |
| font: .68rem/1.5 'JetBrains Mono', monospace; |
| white-space: pre-wrap; |
| word-break: break-word; |
| } |
|
|
| @media (max-width: 640px) { |
| .history-modal { padding: 10px; } |
| .history-dialog { max-height: 94vh; } |
| .history-content { padding: 14px; } |
| } |
|
|
| .edited-badge { |
| padding: 2px 8px; |
| background: rgba(251,191,36,.12); |
| border: 1px solid rgba(251,191,36,.3); |
| border-radius: 10px; |
| font-size: .65rem; |
| font-weight: 700; |
| color: #fbbf24; |
| } |
|
|
| |
| .edit-field { |
| width: 100%; |
| background: var(--bg-primary); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| color: var(--text-primary); |
| font-size: .82rem; |
| font-family: inherit; |
| outline: none; |
| transition: border-color .15s; |
| } |
| .edit-field:focus { border-color: var(--accent); } |
| input.edit-field { padding: 5px 9px; } |
| textarea.edit-field { padding: 6px 9px; resize: vertical; } |
| select.edit-field { padding: 5px 9px; } |
|
|
| .edit-row { |
| display: flex; align-items: center; gap: 6px; |
| margin-bottom: 6px; |
| } |
| .edit-label { |
| font-size: .68rem; |
| color: var(--text-muted); |
| text-transform: uppercase; |
| letter-spacing: .06em; |
| font-weight: 600; |
| margin-bottom: 3px; |
| } |
| .edit-group { margin-bottom: 8px; } |
| .edit-group:last-child { margin-bottom: 0; } |
|
|
| |
| .select-evidence-btn { |
| padding: 4px 10px; |
| background: rgba(251,191,36,.1); |
| border: 1px solid rgba(251,191,36,.3); |
| border-radius: var(--radius-sm); |
| color: #fbbf24; |
| font-size: .72rem; |
| cursor: pointer; |
| font-family: inherit; |
| white-space: nowrap; |
| transition: all .15s; |
| flex-shrink: 0; |
| } |
| .select-evidence-btn:hover { background: rgba(251,191,36,.2); } |
| .select-evidence-btn.selecting { background: rgba(251,191,36,.25); border-color: #fbbf24; animation: pulse-border .8s infinite; } |
| @keyframes pulse-border { 0%,100% { box-shadow: 0 0 0 0 rgba(251,191,36,.4); } 50% { box-shadow: 0 0 0 4px rgba(251,191,36,0); } } |
|
|
| |
| .conversation-panel.selecting-mode .conversation-view { |
| cursor: text; |
| outline: 2px dashed rgba(251,191,36,.5); |
| outline-offset: -4px; |
| } |
| .selection-hint { |
| position: sticky; |
| top: 0; |
| z-index: 10; |
| background: rgba(251,191,36,.15); |
| border: 1px solid rgba(251,191,36,.4); |
| border-radius: var(--radius-sm); |
| padding: 6px 12px; |
| font-size: .78rem; |
| color: #fbbf24; |
| text-align: center; |
| margin-bottom: 8px; |
| display: none; |
| } |
| .selection-hint.visible { display: block; } |
|
|
| |
| .distortion-item.editing { |
| border-color: var(--distortion-color); |
| background: var(--distortion-bg); |
| } |
| .empathy-item.editing { |
| border-color: rgba(52,211,153,.5); |
| background: rgba(52,211,153,.08); |
| } |
|
|
| |
| .score-slider { width: 100%; accent-color: var(--empathy-color); } |
| .score-display { font-weight: 700; font-size: .85rem; min-width: 20px; } |
|
|
| |
| .add-item-btn { |
| width: 100%; padding: 7px; |
| background: transparent; |
| border: 1px dashed var(--border); |
| border-radius: var(--radius-sm); |
| color: var(--text-muted); |
| font-size: .78rem; |
| cursor: pointer; font-family: inherit; |
| transition: all .15s; |
| margin-top: 6px; |
| } |
| .add-item-btn:hover { border-color: var(--accent); color: var(--accent); } |
| .remove-item-btn { |
| padding: 2px 7px; |
| background: rgba(248,113,113,.08); |
| border: 1px solid rgba(248,113,113,.2); |
| border-radius: 4px; |
| color: #f87171; |
| font-size: .7rem; |
| cursor: pointer; font-family: inherit; |
| flex-shrink: 0; |
| } |
|
|
| |
| .save-anno-btn { |
| width: 100%; padding: 8px; |
| background: linear-gradient(135deg,#fbbf24,#f59e0b); |
| color: #1a1200; |
| border: none; border-radius: var(--radius-sm); |
| font-weight: 700; font-size: .82rem; |
| cursor: pointer; font-family: inherit; |
| margin-top: 8px; transition: opacity .15s; |
| } |
| .save-anno-btn:hover { opacity: .9; } |
| .save-anno-btn.saved { background: linear-gradient(135deg,#34d399,#059669); color: #fff; } |
|
|
| .reset-anno-btn { |
| width: 100%; padding: 6px; |
| background: transparent; |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| color: var(--text-muted); |
| font-size: .75rem; cursor: pointer; font-family: inherit; |
| margin-top: 4px; transition: all .15s; |
| } |
| .reset-anno-btn:hover { border-color: #f87171; color: #f87171; } |
|
|