Files
foodlinkk-command-center/cockpit/static/css/hermes.css
T
Aissa 5e43b6b246 Ship Herman chat, Hermes KPI explorer, and intelligence analytics.
Adds floating Herman assistant with voice, Hermes technical KPI dashboard with file explorer, and a wins/kansen analytics pulse with Hermes findings hooks. Includes optional local HTTPS via Caddy for mic permissions (public certs only).
2026-08-01 17:50:45 +00:00

378 lines
17 KiB
CSS

/* Hermes Neo Command Center — network monitor aesthetic */
.hm-neo { --hm-cyan: #00e5ff; --hm-mag: #ff2d95; --hm-lime: #b8ff3c; --hm-orange: #ff9f43; --hm-purple: #a855f7; --hm-gold: #ffd700; --hm-panel: #0d1219; --hm-border: rgba(0, 229, 255, 0.12); }
.hm-neo-header h1 { font-size: 1.65rem; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.hm-neo-header .hm-sub { color: var(--hm-cyan); font-size: 0.85rem; margin: 0.35rem 0 0; opacity: 0.85; }
/* ── KPI cards (neo style) ── */
.hm-neo-kpi-row {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1rem;
margin: 1.25rem 0;
}
@media (max-width: 1100px) { .hm-neo-kpi-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hm-neo-kpi-row { grid-template-columns: 1fr; } }
.hm-neo-kpi {
position: relative;
background: linear-gradient(160deg, rgba(13, 18, 25, 0.95), rgba(8, 12, 18, 0.98));
border: 1px solid var(--hm-border);
border-radius: 14px;
padding: 1rem 1.1rem 0.75rem;
overflow: hidden;
transition: border-color 0.2s, box-shadow 0.2s;
}
.hm-neo-kpi:hover { border-color: rgba(0, 229, 255, 0.35); box-shadow: 0 0 24px rgba(0, 229, 255, 0.08); }
.hm-neo-kpi.highlight { border-color: var(--hm-gold); box-shadow: 0 0 20px rgba(255, 215, 0, 0.12); }
.hm-neo-kpi-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.hm-neo-ring {
width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
background: conic-gradient(var(--ring-color, var(--hm-cyan)) var(--ring-pct, 75%), rgba(255,255,255,0.06) 0);
display: grid; place-items: center;
box-shadow: 0 0 12px color-mix(in srgb, var(--ring-color, var(--hm-cyan)) 40%, transparent);
}
.hm-neo-ring-inner {
width: 32px; height: 32px; border-radius: 50%;
background: var(--hm-panel); display: grid; place-items: center;
font-size: 1rem;
}
.hm-neo-kpi-label { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: #64748b; }
.hm-neo-kpi-value { font-size: 2rem; font-weight: 700; line-height: 1.1; color: #f1f5f9; font-variant-numeric: tabular-nums; }
.hm-neo-kpi-sub { font-size: 0.72rem; color: #64748b; margin-top: 0.15rem; }
/* Animated equalizer bars */
.hm-eq {
display: flex; align-items: flex-end; justify-content: center; gap: 3px;
height: 28px; margin-top: 0.65rem; padding-top: 0.35rem;
border-top: 1px solid rgba(255,255,255,0.04);
}
.hm-eq span {
width: 5px; border-radius: 2px;
background: linear-gradient(to top, rgba(0,229,255,0.3), var(--hm-cyan));
animation: hmEq 0.55s ease-in-out infinite alternate;
box-shadow: 0 0 6px rgba(0, 229, 255, 0.35);
}
.hm-eq span:nth-child(1) { animation-delay: 0s; }
.hm-eq span:nth-child(2) { animation-delay: 0.08s; }
.hm-eq span:nth-child(3) { animation-delay: 0.16s; }
.hm-eq span:nth-child(4) { animation-delay: 0.24s; }
.hm-eq span:nth-child(5) { animation-delay: 0.32s; }
.hm-eq span:nth-child(6) { animation-delay: 0.12s; }
.hm-eq span:nth-child(7) { animation-delay: 0.2s; }
.hm-eq span:nth-child(8) { animation-delay: 0.28s; }
@keyframes hmEq {
from { height: 18%; opacity: 0.45; }
to { height: 92%; opacity: 1; }
}
/* ── Chart panels ── */
.hm-neo-charts {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
margin-bottom: 1.25rem;
}
@media (max-width: 900px) { .hm-neo-charts { grid-template-columns: 1fr; } }
.hm-chart-panel {
background: var(--hm-panel);
border: 1px solid var(--hm-border);
border-radius: 14px;
padding: 1rem 1.1rem;
min-height: 280px;
}
.hm-chart-head {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 0.75rem;
}
.hm-chart-head h3 {
margin: 0; font-size: 0.7rem; letter-spacing: 0.12em;
text-transform: uppercase; color: #94a3b8; font-weight: 600;
}
.hm-chart-head .hm-live-dot {
width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
box-shadow: 0 0 8px #22c55e; animation: hmPulse 2s infinite;
}
@keyframes hmPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hm-chart-head small { color: #475569; font-size: 0.7rem; }
.hm-chart-wrap { position: relative; height: 220px; }
/* ── Tabs ── */
.hermes-tabs {
display: flex; flex-wrap: wrap; gap: 0.55rem;
margin: 0 0 1rem; padding: 0.45rem;
background: rgba(8, 12, 18, 0.8);
border: 1px solid var(--hm-border);
border-radius: 12px;
}
.hermes-tab {
flex: 1 1 auto; min-width: 120px;
padding: 0.8rem 1.1rem; font-size: 0.88rem; font-weight: 600;
border-radius: 10px; cursor: pointer;
border: 1px solid rgba(100, 116, 139, 0.25);
background: rgba(15, 23, 42, 0.7); color: #94a3b8;
transition: all 0.15s;
}
.hermes-tab:hover { border-color: rgba(0, 229, 255, 0.4); color: #e2e8f0; }
.hermes-tab.active {
background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(255, 215, 0, 0.08));
border-color: var(--hm-gold); color: #fef9c3;
box-shadow: 0 0 18px rgba(255, 215, 0, 0.15);
}
/* ── Team roster (no duplicate names) ── */
.hm-team { margin-bottom: 1rem; }
.hm-team h3 { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #64748b; margin: 0 0 0.6rem; }
.hm-team-card {
display: flex; align-items: center; gap: 0.75rem;
padding: 0.65rem 0.85rem; margin-bottom: 0.45rem;
background: rgba(13, 18, 25, 0.9);
border: 1px solid var(--hm-border);
border-radius: 10px;
}
.hm-team-card.online { border-left: 3px solid #22c55e; }
.hm-team-card .hm-role-badge {
min-width: 52px; text-align: center;
font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em;
padding: 0.25rem 0.4rem; border-radius: 6px;
}
.hm-team-card .hm-role-ceo { background: rgba(255, 215, 0, 0.15); color: var(--hm-gold); border: 1px solid rgba(255,215,0,0.3); }
.hm-team-card .hm-role-cto { background: rgba(0, 229, 255, 0.12); color: var(--hm-cyan); border: 1px solid rgba(0,229,255,0.25); }
.hm-team-card .hm-person { flex: 1; }
.hm-team-card .hm-person strong { display: block; font-size: 0.95rem; color: #f1f5f9; }
.hm-team-card .hm-person small { color: #64748b; font-size: 0.72rem; }
.hm-team-card .hm-status-dot { width: 10px; height: 10px; border-radius: 50%; }
.hm-team-card .hm-status-dot.on { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.hm-team-card .hm-status-dot.off { background: #475569; }
.hermes-grid { display: grid; grid-template-columns: 260px 1fr; gap: 1rem; }
@media (max-width: 900px) { .hermes-grid { grid-template-columns: 1fr; } }
.hermes-sidebar { max-height: 72vh; overflow-y: auto; }
.hermes-conv-btn {
display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left;
margin: 0.3rem 0; padding: 0.5rem 0.65rem;
background: rgba(13, 18, 25, 0.8); border: 1px solid var(--hm-border);
border-radius: 8px; color: #e2e8f0; cursor: pointer;
}
.hermes-conv-btn.active { border-color: var(--hm-cyan); box-shadow: 0 0 0 1px var(--hm-cyan); }
.hermes-conv-btn .conv-role { font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.35rem; border-radius: 4px; }
.hermes-feed { max-height: 72vh; display: flex; flex-direction: column; }
.hermes-messages { overflow-y: auto; flex: 1; padding: 0.5rem; }
.hermes-msg {
margin-bottom: 0.65rem; padding: 0.6rem 0.8rem; border-radius: 8px;
border-left: 3px solid rgba(100,116,139,0.4);
background: rgba(13, 18, 25, 0.6);
}
.hermes-msg.msg-in { border-left-color: var(--hm-cyan); background: rgba(0, 229, 255, 0.04); }
.hermes-msg.msg-out { border-left-color: var(--hm-purple); background: rgba(168, 85, 247, 0.05); }
.hermes-msg-meta { font-size: 0.72rem; color: #64748b; display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.hermes-msg-body { white-space: pre-wrap; word-break: break-word; font-size: 0.88rem; }
/* PA live */
.hermes-pa-header {
display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
margin-bottom: 1rem; padding: 0.75rem 1rem;
background: rgba(0, 229, 255, 0.05); border: 1px solid var(--hm-border); border-radius: 10px;
}
.hermes-pa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 900px) { .hermes-pa-grid { grid-template-columns: 1fr; } }
.hermes-pa-slot { border: 1px solid var(--hm-border); border-radius: 10px; overflow: hidden; background: var(--hm-panel); }
.hermes-pa-slot.status-loading { border-color: var(--hm-cyan); }
.hermes-pa-slot.status-completed { border-color: #22c55e; }
.hermes-pa-slot.status-failed { border-color: #ef4444; }
.hermes-pa-slot-head { display: flex; justify-content: space-between; padding: 0.5rem 0.75rem; background: rgba(0,0,0,0.3); }
.hermes-pa-slot-body { height: 200px; background: #060a10; display: grid; place-items: center; }
.hermes-pa-slot-body img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hermes-pa-placeholder { color: #64748b; font-size: 0.82rem; text-align: center; padding: 1rem; }
.hermes-pa-slot-foot { padding: 0.4rem 0.75rem; font-size: 0.72rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; padding: 0.15rem 0.4rem; border-radius: 4px; }
.status-badge.loading { background: rgba(0,229,255,0.15); color: var(--hm-cyan); }
.status-badge.completed { background: rgba(34,197,94,0.15); color: #22c55e; }
.status-badge.failed { background: rgba(239,68,68,0.12); color: #ef4444; }
.status-badge.waiting, .status-badge.idle { background: rgba(100,116,139,0.15); color: #94a3b8; }
.status-badge.running, .status-badge.comparing { background: rgba(255,159,67,0.15); color: var(--hm-orange); }
.hermes-graph-canvas { height: 480px; border: 1px solid var(--hm-border); border-radius: 10px; background: #060a10; }
.hermes-search-bar { display: flex; gap: 0.5rem; margin: 1rem 0; }
.hermes-search-bar .form-input { flex: 1; }
.hermes-search-hit { padding: 0.65rem; border-bottom: 1px solid var(--hm-border); }
.hermes-control-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.hermes-info-list { list-style: none; padding: 0; }
.hermes-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag { padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.78rem; }
.tag-ok { background: rgba(34,197,94,0.15); color: #22c55e; }
.tag-block { background: rgba(239,68,68,0.12); color: #ef4444; }
.tag-pa { background: rgba(168,85,247,0.15); color: var(--hm-purple); }
.hermes-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.hermes-events { max-height: 360px; overflow-y: auto; }
.hermes-event { padding: 0.45rem 0; border-bottom: 1px solid var(--hm-border); }
.panel-header { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 0.65rem; }
.hermes-select { max-width: 200px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.dot-in { background: var(--hm-cyan); }
.dot-out { background: var(--hm-purple); }
.dot-edge { background: var(--hm-orange); }
.hm-section-title {
font-size: 0.85rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #94a3b8;
margin: 1.25rem 0 0.75rem;
}
.hm-bucket-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 0.75rem;
}
.hm-bucket-card {
background: rgba(15, 23, 42, 0.85);
border: 1px solid rgba(56, 189, 248, 0.2);
border-radius: 12px;
padding: 0.85rem 0.9rem;
}
.hm-bucket-label { font-size: 0.72rem; color: #94a3b8; margin-bottom: 0.35rem; }
.hm-bucket-count { font-size: 1.6rem; font-weight: 700; color: #f1f5f9; line-height: 1.1; }
.hm-bucket-parts { font-size: 0.68rem; color: #64748b; margin-top: 0.4rem; line-height: 1.35; }
.hm-tool-list { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.hm-tool-list li {
display: flex; justify-content: space-between; gap: 0.75rem;
padding: 0.35rem 0; border-bottom: 1px solid rgba(148,163,184,0.1);
font-size: 0.78rem; color: #cbd5e1;
}
.hm-tool-list li strong { color: #e2e8f0; font-variant-numeric: tabular-nums; }
.hm-tool-list-tall { max-height: 280px; overflow: auto; }
.status-badge.on { color: #b8ff3c; }
.status-badge.off { color: #f87171; }
/* Clickable buckets + explorer modal */
.hm-section-hint { font-size: 0.7rem; font-weight: 500; color: #64748b; text-transform: none; letter-spacing: 0; margin-left: 0.5rem; }
.hm-bucket-click {
display: block; width: 100%; text-align: left; cursor: pointer;
transition: border-color .15s, transform .12s, background .15s;
font: inherit; color: inherit;
}
.hm-bucket-click:hover {
border-color: rgba(0, 229, 255, 0.55);
background: rgba(14, 165, 233, 0.08);
transform: translateY(-1px);
}
.hm-bucket-open {
margin-top: 0.55rem; font-size: 0.68rem; color: #38bdf8; opacity: 0.75;
}
.hm-bucket-click:hover .hm-bucket-open { opacity: 1; }
.hm-modal-backdrop {
position: fixed; inset: 0; z-index: 80;
background: rgba(2, 6, 14, 0.72);
backdrop-filter: blur(4px);
display: flex; align-items: center; justify-content: center;
padding: 1rem;
}
.hm-modal {
width: min(1100px, 96vw);
height: min(820px, 92vh);
background: #0b1220;
border: 1px solid rgba(56, 189, 248, 0.28);
border-radius: 14px;
box-shadow: 0 24px 80px rgba(0,0,0,0.55);
display: flex; flex-direction: column;
overflow: hidden;
}
.hm-modal-head {
display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
padding: 1rem 1.1rem 0.75rem;
border-bottom: 1px solid rgba(148,163,184,0.12);
}
.hm-modal-head h2 { margin: 0; font-size: 1.15rem; color: #f1f5f9; }
.hm-modal-sub { margin: 0.35rem 0 0; font-size: 0.72rem; color: #94a3b8; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.hm-modal-close {
background: transparent; border: 0; color: #94a3b8; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 0.25rem;
}
.hm-modal-close:hover { color: #fff; }
.hm-chip {
border: 1px solid rgba(148,163,184,0.25);
background: rgba(15,23,42,0.7);
color: #cbd5e1; border-radius: 999px;
padding: 0.15rem 0.55rem; font-size: 0.65rem; cursor: pointer;
}
.hm-chip.active, .hm-chip:hover { border-color: #38bdf8; color: #e0f2fe; background: rgba(14,165,233,0.12); }
.hm-modal-tabs {
display: flex; gap: 0.25rem; padding: 0.55rem 1rem 0;
border-bottom: 1px solid rgba(148,163,184,0.1);
}
.hm-modal-tabs button {
background: transparent; border: 0; color: #94a3b8; padding: 0.45rem 0.75rem;
font-size: 0.78rem; cursor: pointer; border-bottom: 2px solid transparent;
}
.hm-modal-tabs button.active { color: #e0f2fe; border-bottom-color: #38bdf8; }
.hm-modal-body { flex: 1; min-height: 0; }
.hm-modal-split { display: grid; grid-template-columns: minmax(260px, 38%) 1fr; }
.hm-modal-side {
border-right: 1px solid rgba(148,163,184,0.12);
overflow: auto; background: rgba(8, 12, 20, 0.9);
position: relative;
}
.hm-modal-preview { overflow: auto; padding: 1rem 1.1rem; }
.hm-side-loading {
position: sticky; top: 0; z-index: 2;
padding: 0.4rem 0.75rem; font-size: 0.72rem; color: #38bdf8;
background: rgba(14,165,233,0.08);
}
.hm-event-list, .hm-file-list { list-style: none; margin: 0; padding: 0.35rem; }
.hm-event-item, .hm-file-item {
width: 100%; text-align: left; cursor: pointer;
background: transparent; border: 1px solid transparent; border-radius: 8px;
padding: 0.55rem 0.6rem; color: inherit; font: inherit; margin-bottom: 0.25rem;
}
.hm-event-item:hover, .hm-file-item:hover,
.hm-event-item.active, .hm-file-item.active {
background: rgba(14,165,233,0.1);
border-color: rgba(56,189,248,0.25);
}
.hm-event-top { display: flex; justify-content: space-between; gap: 0.5rem; }
.hm-event-top strong { font-size: 0.8rem; color: #f1f5f9; }
.hm-event-top time, .hm-file-meta time { font-size: 0.65rem; color: #64748b; white-space: nowrap; }
.hm-event-tool { font-size: 0.65rem; color: #38bdf8; margin-top: 0.15rem; }
.hm-event-preview, .hm-file-path {
font-size: 0.68rem; color: #94a3b8; margin-top: 0.25rem;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hm-file-name { display: flex; gap: 0.4rem; align-items: center; }
.hm-file-name strong { font-size: 0.8rem; color: #e2e8f0; }
.hm-file-meta { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.25rem; font-size: 0.65rem; color: #64748b; }
.hm-explorer-bar {
display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap;
padding: 0.55rem 0.65rem; border-bottom: 1px solid rgba(148,163,184,0.1);
position: sticky; top: 0; background: #0b1220; z-index: 1;
}
.hm-explorer-path {
font-size: 0.65rem; color: #7dd3fc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.hm-preview-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 0.75rem; }
.hm-preview-head h3 { margin: 0; font-size: 1rem; color: #f8fafc; }
.hm-preview-head code { display: block; margin-top: 0.25rem; font-size: 0.68rem; color: #64748b; word-break: break-all; }
.hm-preview-meta { font-size: 0.68rem; color: #94a3b8; display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.hm-preview-code {
margin: 0; padding: 0.85rem; border-radius: 10px;
background: #020617; border: 1px solid rgba(148,163,184,0.15);
color: #e2e8f0; font-size: 0.72rem; line-height: 1.45;
white-space: pre-wrap; word-break: break-word; max-height: none;
}
.hm-preview-note { font-size: 0.68rem; color: #f59e0b; margin-top: 0.5rem; }
.hm-preview-paths { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.hm-empty, .hm-empty-pane { padding: 1.25rem; color: #64748b; font-size: 0.8rem; }
@media (max-width: 820px) {
.hm-modal { height: 94vh; }
.hm-modal-split { grid-template-columns: 1fr; grid-template-rows: 42% 58%; }
.hm-modal-side { border-right: 0; border-bottom: 1px solid rgba(148,163,184,0.12); }
}