uaide-backend / src /components /TemporalTimeline.module.css
ATS-27's picture
Upload folder using huggingface_hub
af980d7 verified
.wrapper {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-xl);
padding: 20px;
display: flex;
flex-direction: column;
gap: 18px;
box-shadow: var(--shadow-sm);
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px;
}
.headerLeft {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 700;
color: var(--text-primary);
}
.headerStats {
display: flex;
gap: 8px;
}
.statChip {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
background: var(--bg-surface-2);
border: 1px solid var(--border);
padding: 3px 10px;
border-radius: 99px;
}
.chipDot {
width: 7px;
height: 7px;
border-radius: 50%;
}
/* Timeline */
.timelineWrap {
display: flex;
flex-direction: column;
gap: 6px;
}
.timelineBar {
height: 32px;
background: var(--bg-surface-3);
border-radius: 8px;
position: relative;
overflow: visible;
}
.segClean {
position: absolute;
top: 0;
height: 100%;
background: linear-gradient(90deg, rgba(0,198,122,0.15) 0%, rgba(0,198,122,0.2) 100%);
border-right: 1px solid rgba(0,198,122,0.2);
}
.segFlagged {
position: absolute;
top: 0;
height: 100%;
border-radius: 4px;
cursor: pointer;
transition: filter 0.15s ease;
transform-origin: bottom;
}
.segFlagged:hover { filter: brightness(1.15); }
.sev_critical { background: rgba(255, 71, 87, 0.75); }
.sev_high { background: rgba(245, 158, 11, 0.75); }
.sev_medium { background: rgba(167, 139, 250, 0.65); }
/* Tooltip */
.tooltip {
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%);
background: var(--text-primary);
color: white;
border-radius: var(--radius-md);
padding: 10px 14px;
min-width: 200px;
max-width: 260px;
box-shadow: var(--shadow-lg);
z-index: 10;
pointer-events: none;
}
.tooltip::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 6px solid transparent;
border-top-color: var(--text-primary);
}
.tooltipTitle {
font-size: 12.5px;
font-weight: 600;
margin-bottom: 5px;
line-height: 1.4;
}
.tooltipSub {
font-size: 11px;
opacity: 0.7;
margin-bottom: 7px;
}
.tooltipBadge {
font-size: 10px;
font-weight: 700;
padding: 2px 7px;
border-radius: 99px;
}
/* Rulers */
.rulers {
position: relative;
height: 20px;
}
.rulerMark {
position: absolute;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 1px;
}
.rulerLine {
width: 1px;
height: 6px;
background: var(--border-strong);
}
.rulerLabel {
font-size: 10px;
color: var(--text-muted);
font-weight: 500;
white-space: nowrap;
}
/* Flag list */
.flagList {
display: flex;
flex-direction: column;
gap: 8px;
}
.emptyState {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 14px;
border-radius: var(--radius-md);
border: 1px dashed var(--border);
color: var(--text-secondary);
background: var(--bg-surface-2);
font-size: 13px;
font-weight: 500;
}
.flagItem {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 14px;
border-radius: var(--radius-md);
border: 1px solid;
}
.flagSev_critical { background: var(--ai-generated-bg); border-color: rgba(255,71,87,0.25); }
.flagSev_high { background: var(--suspect-bg); border-color: rgba(245,158,11,0.25); }
.flagSev_medium { background: #f5f3ff; border-color: rgba(167,139,250,0.25); }
.flagIcon {
width: 30px;
height: 30px;
border-radius: var(--radius-sm);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.flagIconSev_critical { background: rgba(255,71,87,0.15); color: var(--ai-generated); }
.flagIconSev_high { background: rgba(245,158,11,0.15); color: var(--suspect); }
.flagIconSev_medium { background: rgba(167,139,250,0.2); color: #7c3aed; }
.flagContent {
flex: 1;
min-width: 0;
}
.flagReason {
font-size: 13.5px;
font-weight: 600;
color: var(--text-primary);
line-height: 1.3;
}
.flagMeta {
display: flex;
align-items: center;
gap: 5px;
font-size: 11.5px;
color: var(--text-muted);
margin-top: 3px;
}
.flagBadge {
font-size: 10px;
font-weight: 700;
padding: 3px 9px;
border-radius: 99px;
flex-shrink: 0;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.badgeSev_critical { background: var(--ai-generated-bg); color: var(--ai-generated); }
.badgeSev_high { background: var(--suspect-bg); color: var(--suspect); }
.badgeSev_medium { background: #ede9fe; color: #7c3aed; }