:root { --bg: #0b1c2d; --panel: #132c44; --border: #0e1822; --text: #e0e6ed; --accent: #a4bbd4; } * { box-sizing: border-box; } html, body { min-height: 100%; } body { font-family: Arial, sans-serif; margin: 16px; background: linear-gradient( to bottom, #dddddd -20%, var(--bg) 130% ); color: var(--text); font-size: 14px; } h1 { margin-bottom: 16px; font-size: 20px; color: var(--accent); } /* Grid: mind. 500px pro Spalte, beliebig viele */ .sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; } .section { grid-column: span 2; } .section.half { grid-column: span 1; } /* Section Card */ .section { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 22px 20px; } /* Header = KlickflΓ€che */ .section h2 { margin: 0; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--accent); } /* Pfeil */ .section h2::after { content: "β–Ό"; font-size: 12px; transition: transform 0.2s ease; } .section.collapsed h2::after { transform: rotate(-90deg); } /* Inhalt */ .section ul { margin: 10px 0 0; padding: 0; list-style: none; } .section.collapsed ul { display: none; } .section li { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); } /* FluidNC Status Icons */ .section#senders li { position: relative; padding-left: 22px; } .section#senders li::before { position: absolute; left: 0; top: 2px; font-size: 14px; } /* βœ… CONNECTED */ .section#senders li.connected::before { content: "🟒"; } /* ❌ DISCONNECTED */ .section#senders li.disconnected::before { content: "β›”"; } /* 🟑 CONNECTING / RECONNECTING */ .section#senders li.connecting::before, .section#senders li.reconnecting::before { content: "🟑"; } /* Shelly / EmergencyStop: CSS-Kreis statt Emoji (volle Farbkontrolle) */ .section#senders li.shelly::before { content: ""; display: block; position: absolute; left: 1px; top: 50%; transform: translateY(-50%); width: 11px; height: 11px; border-radius: 50%; /* Default: hellblau β€” Strom vorhanden, Shelly bereit */ background: #89bcde; box-shadow: 0 0 0 1px rgba(0, 30, 60, 0.4); } /* Gestoppt: weiß β€” Strom wurde abgeschaltet */ .section#senders li.shelly.stopped::before { background: #dce9f5; box-shadow: 0 0 0 1px rgba(100, 160, 210, 0.5); } /* Fehler: gedΓ€mpftes Rot */ .section#senders li.shelly.error::before { background: #9a3a3a; box-shadow: 0 0 0 1px rgba(60, 0, 0, 0.5); } /* Getrennt / unbekannt: Grau */ .section#senders li.shelly.disconnected::before { background: #4a5a6a; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); } .state-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(25px, 1fr)); gap: 30px 30px; margin: 0; padding: 0; list-style: none; } .math-symbol { font-family: "Noto Sans Math", system-ui, sans-serif; font-weight: 400; font-style: italic; /* βœ… echte math italic */ font-synthesis: none; /* extrem wichtig */ font-size: 1.1em; line-height: 1; vertical-align: -0.05em; transform: skewX(-8deg); display: inline-block; } .state-grid li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.08); } .state-grid span:first-child { color: var(--accent); font-weight: bold; } /* ── Robot.json Tree ─────────────────────────────────────────────────────── */ #robotJsonLabel { font-size: 11px; font-weight: normal; opacity: 0.6; margin-left: 6px; } .section.collapsed #robotJsonTree { display: none; } .json-tree { margin-top: 10px; } .json-tree details { border-bottom: 1px solid rgba(255,255,255,0.05); } .json-tree details > summary { cursor: pointer; color: var(--accent); font-weight: bold; padding: 5px 0; list-style: none; display: flex; align-items: center; gap: 6px; } .json-tree details > summary::before { content: "β–Ά"; font-size: 10px; display: inline-block; transition: transform 0.15s ease; } .json-tree details[open] > summary::before { transform: rotate(90deg); } .json-tree details > pre { margin: 2px 0 6px 16px; font-size: 11px; white-space: pre-wrap; word-break: break-all; color: var(--text); opacity: 0.8; line-height: 1.5; } .json-tree .json-scalar { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; } .json-tree .json-scalar .json-key { color: var(--accent); font-weight: bold; } .json-tree .json-scalar .json-val { opacity: 0.85; } /* ── Robot.json History ──────────────────────────────────────────────────── */ #robotHistoryList li { cursor: pointer; font-size: 13px; font-family: monospace; transition: color 0.1s; } #robotHistoryList li:hover { color: #7ec8e3; } #robotHistoryList li.rh-active { color: #7ec8e3; font-weight: bold; } #robotHistoryList li.rh-active::before { content: "β–Ά "; font-size: 10px; } /* ── Emergency Stop Panel ────────────────────────────────────────────────── */ .estop-actions { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; } /* Zentriert den SVG-Button horizontal im Panel */ .estop-center { display: flex; flex-direction: column; align-items: center; gap: 6px; } /* SVG E-Stop / Start-Button */ #emergency-stop { display: block; /* override framework display:none wenn nΓΆtig */ position: relative; width: 78px; height: 78px; cursor: pointer; flex-shrink: 0; transition: transform 0.1s ease; } #emergency-stop:hover svg { filter: brightness(1.12); } #emergency-stop:active { transform: scale(0.93); } /* Zustandsanzeige unter dem Button */ .estop-armed-label { font-size: 12px; font-weight: bold; min-height: 16px; color: var(--muted); } .estop-armed-label.armed { color: #e74c3c; } /* Rot: Gefahr, bewusst laut */ .estop-armed-label.disarmed { color: #89bcde; } /* Hellblau: ruhig, stromlos */ .btn { display: inline-block; padding: 9px 18px; border: none; border-radius: 5px; font-size: 14px; font-family: Arial, sans-serif; font-weight: bold; cursor: pointer; transition: background 0.15s, opacity 0.15s; align-self: flex-start; } .btn:disabled { opacity: 0.45; cursor: not-allowed; } /* Alarm-Unlock: ruhiges Blau β€” passend zum Stromloszustand */ .btn-unlock { background: #2a6496; color: #e8f2fa; } .btn-unlock:hover:not(:disabled) { background: #1e4d73; } /* Status-Zeile unterhalb der Buttons β€” immer weiß/hell, keine Signalfarben */ .estop-status { font-size: 13px; min-height: 18px; color: var(--text); opacity: 0.65; } .estop-status.ok { color: var(--text); opacity: 0.9; } .estop-status.err { color: var(--text); opacity: 0.9; }