/* LLM Logging Pipeline with Privacy Filters
   Layout: top toolbar + 60% diagram panel + 40% info panel
*/
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    width: 100%; height: 100%; overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
}

/* Top toolbar */
.toolbar {
    height: 44px;
    padding: 8px 14px;
    background: #37474f;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
}
.toolbar-title { font-weight: 600; font-size: 14px; flex: 0 0 auto; }
.toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.toggle input { cursor: pointer; }
.slider-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px;
}
.slider-label input[type=range] { width: 140px; }

/* Main container */
.container {
    display: flex;
    width: 100%;
    height: calc(100% - 44px);
}

/* Left: Mermaid diagram */
.diagram-panel {
    width: 60%;
    height: 100%;
    background-color: aliceblue;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
    overflow: auto;
}
.mermaid { width: 100%; }
.mermaid svg { max-width: 100%; height: auto; }

/* Right: Info / sample log */
.info-panel {
    width: 40%;
    height: 100%;
    background-color: #f8f9fa;
    border-left: 1px solid #dee2e6;
    padding: 12px 14px;
    overflow: auto;
}

.legend {
    margin-bottom: 12px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 8px 10px;
    background: #fff;
}
.legend-title { font-weight: 600; margin-bottom: 4px; color: #334155; }
.legend-item { display: flex; align-items: center; gap: 6px; padding: 2px 0; color: #475569; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }

.info-panel h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #c1440e;
}

.log-output {
    background: #0f172a;
    color: #e2e8f0;
    padding: 10px 12px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 360px;
    overflow: auto;
}
.log-output .key   { color: #93c5fd; }
.log-output .str   { color: #fcd34d; }
.log-output .num   { color: #86efac; }
.log-output .bool  { color: #f0abfc; }
.log-output .null  { color: #94a3b8; }
.log-output .redacted { color: #fca5a5; font-weight: 700; }

.hint {
    margin-top: 8px;
    color: #64748b;
    font-size: 11px;
    font-style: italic;
}
