feat(dashboard): replace quick actions with team synergy analysis and interactive gm console dispatcher

This commit is contained in:
CAtlas0784 committed 2026-10-17 10:55:13 +07:00
1 parent 039609980e
commit bd367a11cd
3 files changed
+765 -94

No files matched your search

+188
View File
@@ -2502,5 +2502,193 @@ input:checked + .slider:before {
}
}
/* ==========================================
Team Combat Synergy & Role Balance
========================================== */
.synergy-elements-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
gap: 0.5rem;
}
.synergy-element-chip {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.25rem;
padding: 0.5rem 0.35rem;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: var(--radius-sm);
transition: all 0.2s ease;
text-align: center;
}
.synergy-element-chip.active {
background: rgba(56, 189, 248, 0.08);
border-color: rgba(56, 189, 248, 0.4);
box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}
.synergy-element-chip.inactive {
opacity: 0.35;
filter: grayscale(80%);
}
.synergy-element-name {
font-size: 0.75rem;
font-weight: 700;
color: #fff;
}
.synergy-element-chars {
font-size: 0.675rem;
color: var(--accent-cyan);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.synergy-metrics-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.5rem;
}
.synergy-metric-box {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: var(--radius-sm);
padding: 0.5rem 0.4rem;
text-align: center;
}
.synergy-metric-val {
font-size: 1.15rem;
font-weight: 800;
color: var(--accent-gold);
font-family: monospace;
}
.synergy-metric-lbl {
font-size: 0.675rem;
color: var(--text-muted);
margin-top: 0.15rem;
}
/* ==========================================
GM Command Dispatcher & Live Log Console
========================================== */
.console-quick-pills {
display: flex;
gap: 0.4rem;
flex-wrap: wrap;
}
.console-pill-btn {
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.1);
color: #e2e8f0;
padding: 0.3rem 0.65rem;
border-radius: 9999px;
font-size: 0.775rem;
font-weight: 600;
cursor: pointer;
transition: all 0.15s ease;
display: inline-flex;
align-items: center;
gap: 0.3rem;
}
.console-pill-btn:hover {
background: rgba(56, 189, 248, 0.15);
border-color: rgba(56, 189, 248, 0.4);
color: var(--accent-cyan);
transform: translateY(-1px);
}
.console-terminal-wrapper {
background: #070b12;
border: 1px solid rgba(56, 189, 248, 0.25);
border-radius: var(--radius-sm);
overflow: hidden;
box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}
.console-terminal-header {
background: #0f172a;
padding: 0.4rem 0.75rem;
display: flex;
align-items: center;
gap: 0.4rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-dot {
width: 10px;
height: 10px;
border-radius: 50%;
display: inline-block;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }
.terminal-title {
font-size: 0.725rem;
color: var(--text-muted);
font-family: monospace;
margin-left: 0.35rem;
}
.console-terminal-log {
height: 200px;
max-height: 220px;
overflow-y: auto;
padding: 0.75rem;
font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
font-size: 0.775rem;
line-height: 1.55;
color: #cbd5e1;
display: flex;
flex-direction: column;
gap: 0.2rem;
white-space: pre-wrap;
word-break: break-word;
}
.log-line {
display: flex;
gap: 0.5rem;
align-items: flex-start;
}
.log-time {
color: #64748b;
flex-shrink: 0;
user-select: none;
}
.log-tag {
font-weight: 700;
flex-shrink: 0;
padding: 0 0.3rem;
border-radius: 3px;
font-size: 0.7rem;
}
.log-tag.tag-sys { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.log-tag.tag-cmd { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.log-tag.tag-ok { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.log-tag.tag-err { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.log-tag.tag-net { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.log-msg {
flex: 1;
}