/* Verstak Bridge Popup */ :root { --bg: #1a1a2e; --surface: #16213e; --surface2: #1e2d50; --accent: #0f9b8e; --accent-glow: rgba(15, 155, 142, 0.3); --text: #e0e0e0; --text-dim: #8892b0; --danger: #e74c3c; --success: #2ecc71; --radius: 8px; } * { margin: 0; padding: 0; box-sizing: border-box; } body { width: 320px; min-height: 400px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 13px; } .container { padding: 12px; } header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } header h1 { font-size: 16px; font-weight: 600; color: var(--accent); } .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .dot.online { background: var(--success); box-shadow: 0 0 6px var(--success); } .dot.offline { background: var(--danger); box-shadow: 0 0 6px var(--danger); } .info { background: var(--surface); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 12px; } .row { display: flex; justify-content: space-between; padding: 4px 0; } .label { color: var(--text-dim); } .value { font-weight: 500; } .value.offline { color: var(--danger); } .value.online { color: var(--success); } /* Toggle switch */ .controls { margin-bottom: 12px; } .toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; } .toggle input { display: none; } .slider { width: 36px; height: 20px; background: var(--surface2); border-radius: 10px; position: relative; transition: background 0.2s; } .slider::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--text-dim); top: 2px; left: 2px; transition: all 0.2s; } .toggle input:checked + .slider { background: var(--accent); } .toggle input:checked + .slider::after { left: 18px; background: white; } .toggle-label { font-size: 12px; color: var(--text-dim); } /* Recent events */ .recent { margin-bottom: 12px; } .recent h2 { font-size: 11px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; letter-spacing: 0.5px; } #event-list { max-height: 200px; overflow-y: auto; } .event-item { background: var(--surface); border-radius: 6px; padding: 6px 8px; margin-bottom: 4px; font-size: 11px; line-height: 1.4; } .event-item .domain { color: var(--accent); font-weight: 500; } .event-item .title { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .event-item .duration { color: var(--text-dim); font-size: 10px; } .empty { color: var(--text-dim); font-style: italic; font-size: 11px; } /* Footer buttons */ footer { display: flex; gap: 6px; } .btn { flex: 1; padding: 8px; border: none; border-radius: var(--radius); cursor: pointer; font-size: 12px; font-weight: 500; transition: background 0.2s; background: var(--accent); color: white; } .btn:hover { background: #0d8a7e; } .btn.secondary { background: var(--surface2); color: var(--text); } .btn.secondary:hover { background: #253a60; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } /* Settings panel */ #settings-panel { padding-top: 4px; } .settings-form { background: var(--surface); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; } .form-group { margin-bottom: 10px; } .form-group label { display: block; color: var(--text-dim); font-size: 11px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; } .port-row { display: flex; align-items: center; gap: 4px; } .port-prefix { color: var(--text-dim); font-size: 12px; font-family: monospace; } #port-input { width: 80px; padding: 6px 8px; background: var(--bg); border: 1px solid var(--surface2); border-radius: 4px; color: var(--text); font-size: 13px; font-family: monospace; } #port-input:focus { outline: none; border-color: var(--accent); } .hint { color: var(--text-dim); font-size: 10px; margin-top: 4px; line-height: 1.3; } .settings-actions { display: flex; gap: 6px; } .settings-actions .btn { flex: 1; } .btn.primary { background: var(--accent); } .btn.primary:hover { background: #0d8a7e; } .port-status { margin-top: 8px; font-size: 11px; min-height: 16px; } .port-status.ok { color: var(--success); } .port-status.error { color: var(--danger); }