:root { --bg: #0b1220; --panel: #132c44; --border: #0e1822; --text: #e0e6ed; --muted: #9aa6b2; --accent: #a4bbd4; --active: #1e3a5f; --danger: #7f1d1d; --danger-border: #991b1b; } * { box-sizing: border-box; margin: 0; padding: 0; } html { min-height: 100%; } body { min-height: 100vh; font-family: Arial, sans-serif; font-size: 14px; /* background-attachment: fixed hält den Verlauf relativ zum Viewport — verhindert das Wiederholen bei langen Seiten */ background: linear-gradient(to bottom, #dddddd -20%, var(--bg) 130%) fixed; color: var(--text); padding: 16px; } /* ===== HEADER ===== */ .app-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; } .app-header h1 { font-size: 16px; font-weight: 600; color: var(--accent); } .app-header .subtitle { font-size: 12px; color: var(--muted); } /* ===== GRID ===== */ .sections { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; } @media (max-width: 760px) { .sections { grid-template-columns: 1fr; } } /* ===== CARD ===== */ .section { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 16px; } .section h2 { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; } .section h2 .badge { font-size: 11px; font-weight: normal; color: var(--muted); background: #1e293b; padding: 1px 7px; border-radius: 10px; } /* ===== PROGRAM LIST ===== */ #program-list { display: flex; flex-direction: column; gap: 4px; } .prog-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; transition: background 0.1s; } .prog-item:hover { background: #1e293b; border-color: #334155; } .prog-item.is-active { background: var(--active); border-color: var(--accent); } .prog-item.is-selected { background: #1e293b; border-color: #475569; } .prog-item.is-folder { font-style: italic; } .prog-item .prog-name { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .prog-item .prog-id { font-size: 11px; color: var(--muted); } .prog-item .prog-count { font-size: 11px; color: var(--muted); white-space: nowrap; } .prog-item .btn-del { background: none; border: 1px solid transparent; color: var(--muted); border-radius: 4px; padding: 1px 5px; cursor: pointer; font-size: 13px; opacity: 0; transition: opacity 0.1s; } .prog-item:hover .btn-del, .prog-item.is-active .btn-del { opacity: 1; } .prog-item .btn-del:hover { color: #fca5a5; border-color: var(--danger-border); background: var(--danger); } .empty-hint { font-size: 12px; color: var(--muted); padding: 8px 2px; } /* ===== CONTROLS ===== */ .controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } button { background: #1e293b; color: var(--text); border: 1px solid #334155; padding: 6px 13px; border-radius: 6px; cursor: pointer; font-size: 13px; transition: border-color 0.15s; } button:hover:not(:disabled) { border-color: var(--accent); } button:disabled { opacity: 0.4; cursor: not-allowed; } button.primary { background: var(--active); border-color: var(--accent); } /* ===== ACTIVE INFO BAR ===== */ .active-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #0b1220; border: 1px solid #1f2937; border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; font-size: 12px; } .active-bar .kv { display: flex; flex-direction: column; } .active-bar .kv .k { color: var(--muted); font-size: 11px; } .active-bar .kv .v { color: var(--accent); font-weight: 600; } .active-bar .sep { width: 1px; height: 30px; background: #1f2937; } /* ===== GCODE TABLE ===== */ .table-wrap { overflow-x: auto; border: 1px solid #1f2937; border-radius: 6px; max-height: 600px; overflow-y: auto; } table { width: 100%; border-collapse: collapse; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; } table th { background: #1e293b; color: var(--accent); font-size: 11px; font-weight: 600; padding: 5px 8px; text-align: left; position: sticky; top: 0; border-bottom: 1px solid #334155; } table td { padding: 4px 8px; border-bottom: 1px solid #0e1822; white-space: nowrap; } table tbody tr:nth-child(even) { background: #0f172a; } table tbody tr:hover { background: #1e293b; } table tbody tr.cursor-row { background: var(--active); border-left: 2px solid var(--accent); } table td.idx { color: var(--muted); width: 40px; } table td.line { color: var(--text); } table td.ts { color: var(--muted); font-size: 11px; } /* ===== STATUS / SPINNER ===== */ .status-line { font-size: 12px; color: var(--muted); margin-bottom: 8px; min-height: 18px; } .status-line.err { color: #fca5a5; } /* ===== DOWNLOAD LINK ===== */ .dl-link { display: inline-block; font-size: 12px; color: var(--accent); text-decoration: none; padding: 4px 10px; border: 1px solid #334155; border-radius: 6px; background: #1e293b; } .dl-link:hover { border-color: var(--accent); }