Spaces:
Paused

miracle / frontend /apps /internal /src /components /NexusConsole.module.css
dushyantsingh0
fix: resolve typescript build errors in internal portal navigation
ab43aa8
Raw History Blame Contribute Delete
8.13 kB
.container {
display: flex;
height: calc(100vh - 60px);
background: var(--bg0);
animation: fadeIn 0.4s ease-out;
}
.chatColumn {
flex: 1;
display: flex;
flex-direction: column;
border-right: 1px solid var(--border);
min-width: 0;
}
.contextBar {
padding: 10px 20px;
background: var(--bg3);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 12px;
}
.ticketId {
font-size: 11px;
color: var(--accent);
font-family: var(--font-mono);
font-weight: 700;
}
.ticketTitle {
font-size: 12px;
color: var(--text1);
font-weight: 500;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.contextBadges {
display: flex;
align-items: center;
gap: 10px;
}
.statusDot {
width: 6px;
height: 6px;
border-radius: 50%;
box-shadow: 0 0 5px var(--accent-glow);
}
.priorityPill {
font-size: 10px;
font-weight: 700;
padding: 2px 8px;
border-radius: 4px;
background: var(--bg4);
color: var(--text2);
}
.messagesContainer {
flex: 1;
overflow-y: auto;
padding: 20px;
display: flex;
flex-direction: column;
gap: 16px;
background: var(--bg0);
}
.messageWrapper {
display: flex;
gap: 10px;
}
.user { justify-content: flex-end; }
.assistant { justify-content: flex-start; }
.aiAvatar {
width: 28px;
height: 28px;
border-radius: 7px;
background: linear-gradient(135deg, var(--accent), var(--purple));
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 800;
color: #fff;
flex-shrink: 0;
font-family: var(--font-mono);
}
.messageContent {
flex: 1;
max-width: 80%;
}
.aiHeader {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 6px;
}
.aiName {
font-size: 12px;
font-weight: 700;
color: var(--text1);
}
.toolBadge {
font-size: 10px;
padding: 1px 7px;
background: var(--purple-dim);
color: var(--purple);
border-radius: 10px;
font-weight: 600;
}
.bubble {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 3px 10px 10px 10px;
padding: 12px 16px;
font-size: 13px;
color: var(--text2);
line-height: 1.7;
}
.user .bubble {
background: var(--accent-dim);
border-color: rgba(79, 142, 247, 0.2);
border-radius: 10px 3px 10px 10px;
color: var(--text1);
}
.codeBlock {
margin: 8px 0;
padding: 10px 12px;
background: var(--bg0);
border-radius: 6px;
font-size: 11px;
font-family: var(--font-mono);
color: var(--green);
overflow-x: auto;
line-height: 1.6;
border: 1px solid var(--border);
}
.bold { color: var(--text1); font-weight: 600; }
.thinkingContainer {
display: flex;
flex-direction: column;
gap: 8px;
}
.thinkingDots {
display: flex;
align-items: center;
gap: 4px;
padding: 10px 14px;
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 3px 10px 10px 10px;
width: fit-content;
}
.thinkingDots .dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--accent);
opacity: 0.5;
animation: pulse 1.2s infinite;
}
.thinkingDots .dot:nth-child(2) { animation-delay: 0.3s; }
.thinkingDots .dot:nth-child(3) { animation-delay: 0.6s; }
.statusTelemetry {
display: flex;
align-items: center;
gap: 8px;
font-size: 11px;
color: var(--text3);
font-weight: 600;
padding-left: 4px;
}
.telemetryPulse {
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--green);
box-shadow: 0 0 5px var(--green);
animation: heartbeat 2s infinite;
}
@keyframes heartbeat {
0% { transform: scale(1); opacity: 0.7; }
50% { transform: scale(1.4); opacity: 1; }
100% { transform: scale(1); opacity: 0.7; }
}
.approvalCard {
background: var(--amber-dim);
border: 1px solid rgba(251, 191, 36, 0.27);
border-radius: 10px;
padding: 16px 18px;
margin-top: 8px;
}
.approvalHeader {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 10px;
}
.approvalIcon { font-size: 13px; }
.approvalTitle { font-size: 13px; font-weight: 700; color: var(--amber); }
.hitlBadge {
font-size: 10px;
font-family: var(--font-mono);
color: var(--amber);
background: rgba(251, 191, 36, 0.13);
padding: 2px 7px;
border-radius: 4px;
font-weight: 700;
}
.actionCode {
background: var(--bg0);
border-radius: 7px;
padding: 12px 14px;
margin-bottom: 12px;
font-size: 12px;
font-family: var(--font-mono);
color: var(--text2);
line-height: 1.7;
}
.codeKey { color: var(--amber); margin-right: 8px; width: 60px; display: inline-block; }
.actionGroup {
padding-bottom: 12px;
margin-bottom: 12px;
border-bottom: 1px dashed rgba(251, 191, 36, 0.1);
}
.actionGroup:last-child {
padding-bottom: 0;
margin-bottom: 0;
border-bottom: none;
}
.approvalDesc { font-size: 12px; color: var(--text2); margin-bottom: 12px; }
.approvalActions { display: flex; gap: 8px; }
.approveBtn, .rejectBtn {
padding: 7px 16px;
border-radius: 7px;
font-size: 12px;
font-weight: 700;
cursor: pointer;
border: 1px solid transparent;
transition: all 0.1s;
}
.approveBtn {
background: var(--green-dim);
border-color: rgba(52, 211, 153, 0.27);
color: var(--green);
}
.rejectBtn {
background: var(--red-dim);
border-color: rgba(248, 113, 113, 0.27);
color: var(--red);
}
.inputArea {
padding: 12px 16px;
background: var(--bg1);
border-top: 1px solid var(--border);
}
.inputWrapper {
display: flex;
gap: 8px;
align-items: flex-end;
}
.textarea {
flex: 1;
padding: 10px 14px;
background: var(--bg3);
border: 1px solid var(--border);
border-radius: 9px;
font-size: 13px;
color: var(--text1);
resize: none;
outline: none;
font-family: var(--font-main);
line-height: 1.5;
min-height: 42px;
max-height: 120px;
}
.sendBtn {
padding: 10px 16px;
background: var(--accent);
color: #fff;
border: none;
border-radius: 9px;
cursor: pointer;
font-size: 13px;
font-weight: 700;
height: 42px;
flex-shrink: 0;
transition: all 0.1s;
}
.sendBtn:disabled {
background: var(--bg4);
color: var(--text3);
cursor: default;
}
.inputHint {
font-size: 10px;
color: var(--text3);
margin-top: 6px;
}
.sidePanel {
width: 280px;
display: flex;
flex-direction: column;
background: var(--bg1);
flex-shrink: 0;
overflow-y: auto;
}
.panelSection {
padding: 14px 16px;
border-bottom: 1px solid var(--border);
}
.sectionHeader { margin-bottom: 8px; }
.sectionTitle { font-size: 12px; font-weight: 700; color: var(--text1); }
.sectionSubtitle { font-size: 10px; color: var(--text3); }
.summaryContent {
font-size: 12px;
color: var(--text2);
line-height: 1.7;
background: var(--bg3);
border-radius: 7px;
padding: 10px 12px;
border: 1px solid var(--border);
}
.traceList {
display: flex;
flex-direction: column;
}
.traceItem {
display: flex;
gap: 10px;
margin-bottom: 10px;
}
.traceTimeline {
display: flex;
flex-direction: column;
align-items: center;
flex-shrink: 0;
}
.traceDot {
width: 16px;
height: 16px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 8px;
border-width: 1.5px;
border-style: solid;
}
.status_ok { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.status_wait { background: var(--amber-dim); border-color: var(--amber); color: var(--amber); }
.status_skip { background: var(--bg4); border-color: var(--border); color: var(--text3); }
.traceLine {
width: 1px;
height: 16px;
background: var(--border);
margin: 2px 0;
}
.traceHeader { display: flex; justify-content: space-between; }
.traceLabel { font-size: 11px; font-weight: 600; color: var(--text1); }
.traceTime { font-size: 9px; color: var(--text3); font-family: var(--font-mono); }
.traceDetail { font-size: 10px; color: var(--text3); line-height: 1.5; margin-top: 1px; }
.toolList { display: flex; flex-direction: column; gap: 7px; }
.toolListItem { display: flex; align-items: center; gap: 8px; }
.toolDot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
.toolName { font-size: 11px; color: var(--text2); }