:root { --bg: #0f1115; --panel: #171a21; --border: #2a2f3a; --text: #e6e8eb; --muted: #9aa3af; --accent: #3b82f6; --danger: #ef4444; --ok: #22c55e; } * { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; } .center-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; } .card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 2rem; width: 100%; max-width: 380px; } .card h1 { font-size: 1.25rem; margin: 0 0 1.25rem; } label { display: block; font-size: 0.85rem; color: var(--muted); margin: 0.75rem 0 0.25rem; } input[type=text], input[type=password], select { width: 100%; padding: 0.6rem 0.7rem; background: #0f1218; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 0.95rem; } select { appearance: auto; } button { margin-top: 1.25rem; width: 100%; padding: 0.65rem; background: var(--accent); border: none; border-radius: 6px; color: white; font-weight: 600; cursor: pointer; } button:hover { filter: brightness(1.1); } button:disabled { opacity: 0.5; cursor: not-allowed; } button:disabled:hover { filter: none; } .error { color: var(--danger); font-size: 0.85rem; margin-top: 0.75rem; min-height: 1em; } .hint { color: var(--muted); font-size: 0.8rem; margin-top: 0.5rem; } .qr { display: block; margin: 1rem auto; border-radius: 6px; } .recovery-codes { font-family: monospace; background: #0f1218; padding: 0.75rem; border-radius: 6px; } /* Sichtbarkeits-Toggle ohne Inline-Styles -- CSP (style-src 'self', kein 'unsafe-inline') blockt sowohl style="..."-Attribute in Markup als auch per JS gesetzte element.style-Aenderungen. Toggle daher ausschliesslich ueber diese Klasse (siehe login.js / terminal.js / rdp.js). */ .hidden { display: none !important; } .topbar { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--panel); } .topbar .brand { font-weight: 700; } .topbar button { width: auto; margin: 0; padding: 0.4rem 0.9rem; font-size: 0.85rem; } .topbar a { color: var(--accent); text-decoration: none; font-size: 0.85rem; margin-right: 1rem; } .topbar a:hover { text-decoration: underline; } .container { padding: 1.25rem; max-width: 960px; margin: 0 auto; } .container.wide { max-width: 1200px; } .group { margin-bottom: 1.5rem; } .group h2 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; } .host-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.75rem; } .host-card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; } .host-card .hostname { font-weight: 600; } .host-card .meta { color: var(--muted); font-size: 0.8rem; margin: 0.25rem 0 0.75rem; } .host-card .actions { display: flex; gap: 0.5rem; } .host-card .actions a, .host-card .actions button { flex: 1; text-align: center; text-decoration: none; padding: 0.4rem; border-radius: 6px; background: var(--accent); color: white; font-size: 0.85rem; margin: 0; } /* --- Admin-Oberflaeche ------------------------------------------------- */ .tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); } .tab-btn { width: auto; margin: 0 0 -1px; padding: 0.6rem 1rem; background: transparent; border: none; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); font-weight: 600; font-size: 0.85rem; } .tab-btn:hover { filter: none; color: var(--text); } .tab-btn.active { color: var(--text); border-bottom-color: var(--accent); } .tab-panel { display: block; } .tab-panel.hidden { display: none !important; } .panel { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; margin-bottom: 1.5rem; } .panel h2 { font-size: 1rem; margin: 0 0 1rem; } .panel h3 { font-size: 0.9rem; color: var(--muted); margin: 1.5rem 0 0.75rem; } .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem 1rem; align-items: end; } .form-grid label { margin: 0 0 0.25rem; } .form-grid .full-width { grid-column: 1 / -1; } .form-grid button { margin-top: 0; grid-column: 1 / -1; width: auto; padding: 0.55rem 1.25rem; justify-self: start; } textarea { width: 100%; min-height: 5rem; padding: 0.6rem 0.7rem; background: #0f1218; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: monospace; font-size: 0.85rem; resize: vertical; } .checkbox-row { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; } .checkbox-row input[type=checkbox] { width: auto; margin: 0; } .checkbox-row label { margin: 0; color: var(--text); font-size: 0.9rem; } .btn-secondary { background: var(--border); } .btn-danger { background: var(--danger); } .btn-small { width: auto; margin: 0; padding: 0.35rem 0.75rem; font-size: 0.8rem; } .data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; } .data-table th, .data-table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); } .data-table th { color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; } .data-table tr:last-child td { border-bottom: none; } .table-wrap { overflow-x: auto; } .badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.75rem; background: var(--border); color: var(--text); margin: 0 0.25rem 0.25rem 0; } .badge.ok { background: var(--ok); color: #06210f; } .badge.danger { background: var(--danger); color: #2a0505; } .banner { padding: 0.6rem 0.9rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 1rem; } .banner.ok { background: rgba(34, 197, 94, 0.15); color: var(--ok); border: 1px solid var(--ok); } .banner.error { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid var(--danger); } .reveal-box { font-family: monospace; background: #0f1218; border: 1px solid var(--ok); padding: 0.75rem; border-radius: 6px; word-break: break-all; margin-top: 0.75rem; } .scope-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.4rem 1rem; margin: 0.5rem 0 1rem; } .scope-grid .checkbox-row { margin-top: 0; } pre.json-view { background: #0f1218; border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem; font-size: 0.8rem; overflow-x: auto; white-space: pre-wrap; word-break: break-word; } pre.log-view { background: #0f1218; border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem; font-size: 0.78rem; line-height: 1.4; overflow: auto; white-space: pre-wrap; word-break: break-word; max-height: 60vh; margin-top: 0.5rem; } .endpoint-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; cursor: pointer; border-bottom: 1px solid var(--border); } .endpoint-row .method { font-family: monospace; font-weight: 700; font-size: 0.75rem; padding: 0.15rem 0.4rem; border-radius: 4px; width: 3.5rem; text-align: center; flex-shrink: 0; } .endpoint-row .method.get { background: rgba(59, 130, 246, 0.2); color: #60a5fa; } .endpoint-row .method.post { background: rgba(34, 197, 94, 0.2); color: #4ade80; } .endpoint-row .method.put { background: rgba(234, 179, 8, 0.2); color: #facc15; } .endpoint-row .method.delete { background: rgba(239, 68, 68, 0.2); color: #f87171; } .endpoint-row .path { font-family: monospace; font-size: 0.85rem; } .endpoint-row .summary { color: var(--muted); font-size: 0.8rem; margin-left: auto; } .endpoint-detail { padding: 0 0 0.75rem 4.1rem; } /* Aufgabe #11: Anker fuer .term-paste-menu weiter unten (position:absolute dagegen, statt gegen den ganzen Viewport) -- rein CSS-basierte Positionierung, siehe terminal.js::_showPasteMenu(). */ .session-shell { display: flex; flex-direction: column; height: 100vh; position: relative; } .session-toolbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.9rem; background: var(--panel); border-bottom: 1px solid var(--border); } .session-toolbar button { width: auto; margin: 0; padding: 0.35rem 0.8rem; font-size: 0.8rem; } .session-toolbar select { width: auto; margin: 0; padding: 0.3rem 0.5rem; font-size: 0.8rem; } .session-toolbar .spacer { flex: 1; } .session-toolbar .status { font-size: 0.8rem; color: var(--muted); } /* Aufgabe #11 (SSH Copy-Paste): Ruecksicherungs-Kontextmenue fuer Einfuegen per Rechtsklick, nur wenn der direkte Clipboard-Zugriff ohne explizite Benutzergeste verweigert wurde (terminal.js::_attemptDirectPaste()). Vier feste Ecken statt Cursor-Koordinaten -- CSP (style-src 'self') verbietet JS-gesetzte element.style-Werte, siehe Kommentar dort. */ .term-paste-menu { position: absolute; z-index: 50; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); padding: 0.25rem; min-width: 140px; } .term-paste-menu-top { top: 3.2rem; } .term-paste-menu-bottom { bottom: 0.5rem; } .term-paste-menu-left { left: 0.5rem; } .term-paste-menu-right { right: 0.5rem; } .term-paste-menu button { width: 100%; margin: 0; padding: 0.4rem 0.7rem; text-align: left; background: transparent; color: var(--text); font-weight: 400; font-size: 0.85rem; border-radius: 4px; } .term-paste-menu button:hover { background: var(--border); filter: none; } .session-toolbar .status.warning { color: #f5b942; } /* F1 (Umsetzungsauftrag_Sonnet5.md Teil F.3.1): vormals #terminal/#rdp-display (feste, dokumentweit eindeutige IDs -- eine Seite hatte immer genau eine Sitzung). Jetzt Klassen, weil static/js/terminal.js bzw. rdp.js ihr DOM dynamisch je Instanz bauen (SshTerminalSession/RdpSession) -- mit mehreren gleichzeitigen Instanzen (kuenftige Arbeitsflaeche /workspace, Teil F.3, spaetere Stufe) waeren feste IDs nicht mehr eindeutig. */ .session-terminal, .session-rdp-display { flex: 1; background: black; } .session-rdp-display canvas { display: block; margin: 0 auto; } /* B.1 (Umsetzungsauftrag Teil B): Fehler-Overlay ueber .session-rdp-display, statt einer 0,85rem-Randnotiz in der Toolbar auf sonst komplett schwarzem Grund (siehe .error weiter oben, .status.error unten). */ .session-rdp-display { position: relative; } .rdp-error-overlay { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(15, 17, 21, 0.92); padding: 1rem; } .rdp-error-panel { background: var(--panel); border: 1px solid var(--danger); border-radius: 10px; padding: 1.75rem 2rem; width: 100%; max-width: 480px; } .rdp-error-panel h2 { margin: 0 0 0.75rem; font-size: 1.15rem; color: var(--danger); } .rdp-error-message { margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.4; word-break: break-word; } .rdp-error-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; margin: 0 0 1.25rem; font-size: 0.8rem; } .rdp-error-meta dt { color: var(--muted); } .rdp-error-meta dd { margin: 0; font-family: monospace; word-break: break-all; } .rdp-error-panel button { margin-top: 0; } /* --- Dateitransfer-Panel (Terminal-Sitzung) ---------------------------- */ .ft-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 50; display: flex; justify-content: flex-end; } .ft-overlay.hidden { display: none !important; } .ft-panel { width: 420px; max-width: 100%; height: 100%; background: var(--panel); border-left: 1px solid var(--border); padding: 1.25rem; overflow-y: auto; } .ft-panel h2 { font-size: 1rem; margin: 0 0 1rem; display: flex; align-items: center; justify-content: space-between; } .ft-panel h3 { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 1.5rem 0 0.5rem; } .ft-btn-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.75rem; } .ft-btn-row .hint { margin: 0; } .ft-list { font-size: 0.8rem; } .ft-list-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); } .ft-list-row .name { flex: 1; word-break: break-all; } .ft-list-row .size { color: var(--muted); flex-shrink: 0; white-space: nowrap; } /* --- Sitzungs-Wiedergabe-Panel (breiter als das Dateitransfer-Panel, --- */ /* muss Terminal- bzw. RDP-Bildschirmgroesse aufnehmen). */ .rec-panel { width: min(90vw, 1100px); } .rec-stage { background: #000; border: 1px solid var(--border); border-radius: 6px; min-height: 320px; max-height: 65vh; overflow: auto; margin-top: 0.75rem; display: flex; align-items: flex-start; justify-content: center; } .rec-stage .rec-terminal { width: 100%; height: 55vh; } .rec-stage .xterm { padding: 0.4rem; height: 100%; } .rec-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; } .rec-controls button { width: auto; margin: 0; } .rec-controls input[type=range] { flex: 1; } .rec-controls select { width: auto; padding: 0.3rem 0.4rem; } .rec-controls .hint { margin: 0; white-space: nowrap; } /* --- Arbeitsflaeche (F3, Umsetzungsauftrag_Sonnet5.md Teil F.3) --------- */ .workspace-layout { display: flex; height: calc(100vh - 53px); /* 53px ~ .topbar */ } .workspace-sidebar { width: 280px; flex-shrink: 0; background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; } .workspace-sidebar-header { padding: 1rem 1rem 0.5rem; } .workspace-sidebar-header h2 { font-size: 0.9rem; margin: 0 0 0.4rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); } .workspace-sidebar-header .hint { margin: 0; font-size: 0.75rem; } /* F5 (F.3.8): Obergrenzen-Anzeige -- normal wie jeder andere Hinweistext, nur bei erreichter Grenze in Warnfarbe (dann ist auch "+ Neue Sitzung" deaktiviert, siehe workspace.js renderLimitHint()). */ .workspace-limit-hint { margin-top: 0.3rem; } .workspace-limit-hint--at-limit { color: var(--danger); } /* F5: Sammelzustand-Kennzeichnung -- fasst Hintergrundsitzungen mit Fehler oder Trennung zusammen, damit man sie nicht erst durch Umschalten auf jede einzelne Kachel entdeckt. */ .workspace-attention-summary { margin: 0 0.5rem 0.5rem; padding: 0.4rem 0.6rem; border-radius: 6px; background: rgba(239, 68, 68, 0.15); border: 1px solid var(--danger); color: var(--danger); font-size: 0.75rem; } .workspace-tiles { flex: 1; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; } .workspace-empty-hint { padding: 0.5rem; } .workspace-tile { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.65rem 0.75rem; } .workspace-tile-active { border-color: var(--accent); } /* F4: eine offene, aber gerade nicht sichtbare Sitzung -- anklickbar (Umschalten), optisch etwas zurueckhaltender als die aktive Kachel. */ .workspace-tile-background { cursor: pointer; } .workspace-tile-background:hover { border-color: var(--muted); } /* F5: eine Hintergrundsitzung mit Fehler/Trennung -- sichtbar markiert, ohne dass man erst umschalten muss (siehe workspace.js hasAttention()). */ .workspace-tile-attention { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); } .workspace-tile-remote { opacity: 0.85; } .workspace-tile-top { display: flex; align-items: center; gap: 0.4rem; } .workspace-tile-hostname { font-weight: 600; font-size: 0.85rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .workspace-status-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; flex-shrink: 0; background: var(--muted); } .workspace-status-dot.connecting { background: #f5b942; } .workspace-status-dot.connected { background: var(--ok); } .workspace-status-dot.error { background: var(--danger); } .workspace-status-dot.disconnected { background: var(--muted); } .workspace-tile-meta { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--muted); font-size: 0.75rem; margin: 0.3rem 0 0.5rem; } .workspace-tile-close-btn { width: 100%; margin: 0; } .workspace-new-btn { margin: 0.5rem; width: calc(100% - 1rem); } .workspace-main { flex: 1; overflow: auto; background: var(--bg); position: relative; height: 100%; } .workspace-catalog-view, .workspace-sessions-area { height: 100%; } /* F4: mehrere Sitzungs-Elemente liegen gleichzeitig in #workspace-sessions-area -- jedes einzelne wird ueber die globale .hidden-Klasse (siehe oben) ein-/ausgeblendet (auf dem Element selbst, von workspace.js gesetzt), nicht der gemeinsame Container. */ .workspace-sessions-area .session-instance { height: 100%; } .workspace-sessions-area .session-instance .session-shell { height: 100%; } .workspace-catalog { padding-top: 1.5rem; }