/* ── Reset ── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } /* ── Design Tokens ── */ :root { --teal: #008487; --teal-600: #006e71; --teal-700: #005a5c; --teal-50: #e6f3f3; --bg: #f5f5f7; --surface: #ffffff; --surface-2: #fbfbfd; --surface-3: #f2f2f4; --text: #1d1d1f; --text-2: #515154; --text-3: #86868b; --border: rgba(0,0,0,0.08); --border-strong: rgba(0,0,0,0.14); --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.03); --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04); --shadow-lg: 0 24px 64px -16px rgba(0,0,0,0.18), 0 6px 18px rgba(0,0,0,0.08); --success: #34a853; --warning: #e8a23a; --danger: #e5484d; --info: #2f7df1; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --sidebar-w: 232px; --topbar-h: 52px; } [data-theme="dark"] { color-scheme: dark; --bg: #000000; --surface: #1c1c1e; --surface-2: #161618; --surface-3: #2c2c2e; --text: #f5f5f7; --text-2: #aeaeb2; --text-3: #636366; --border: rgba(255,255,255,0.08); --border-strong: rgba(255,255,255,0.14); --shadow-sm: 0 1px 2px rgba(0,0,0,0.6); --shadow-md: 0 6px 20px rgba(0,0,0,0.45); --teal-50: rgba(0,132,135,0.15); } /* ── Base ── */ body { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; letter-spacing: -0.005em; } a { text-decoration: none; color: inherit; } button { font-family: inherit; } input, select { font-family: inherit; font-size: inherit; color: inherit; } ::selection { background: rgba(0,132,135,0.2); } /* ── Layout ── */ .app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; } .main { display: flex; flex-direction: column; min-width: 0; } /* ── Sidebar ── */ .sidebar { position: sticky; top: 0; height: 100vh; background: var(--surface-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 10px; overflow-y: auto; } .sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; } .brand-mark { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .brand-mark svg { color: #fff; width: 17px; height: 17px; } .brand-name { font-size: 13.5px; font-weight: 700; color: var(--text); } .brand-sub { font-size: 11px; color: var(--text-3); } .sidebar-section { font-size: 10.5px; font-weight: 600; color: var(--text-3); letter-spacing: 0.05em; text-transform: uppercase; padding: 12px 8px 5px; } .nav-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--r-sm); color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: background 0.12s, color 0.12s; cursor: pointer; border: none; background: none; width: 100%; text-align: left; } .nav-item:hover { background: var(--surface-3); color: var(--text); } .nav-item.active { background: var(--teal-50); color: var(--teal); } .nav-item svg { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 1.75; } .nav-badge { margin-left: auto; background: var(--surface-3); color: var(--text-2); border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 600; } .nav-item.active .nav-badge { background: rgba(0,132,135,.18); color: var(--teal); } .nav-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--success); } .sidebar-footer { margin-top: auto; padding: 10px 8px 6px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; } .avatar { width: 27px; height: 27px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--teal-700)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; } .user-name { font-size: 12.5px; font-weight: 600; color: var(--text); } .user-sub { font-size: 11px; color: var(--text-3); } /* ── Topbar ── */ .topbar { height: var(--topbar-h); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 28px; gap: 8px; z-index: 50; } .breadcrumb { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); } .breadcrumb-sep { color: var(--text-3); } .breadcrumb-current { font-weight: 600; color: var(--text); } .topbar-actions { display: flex; align-items: center; gap: 8px; } /* ── Content area ── */ .content { flex: 1; padding: 24px 28px; } /* ── Page header ── */ .page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; } .page-header h2, .page-title { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; } .page-header p, .page-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; } .page-actions { display: flex; align-items: center; gap: 8px; } /* ── Scan status pill (in page header) ── */ .scan-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px 5px 10px; font-size: 12.5px; } .scan-pill .label { font-weight: 500; color: var(--text); } .scan-pill .sep { color: var(--text-3); } .scan-pill .site { color: var(--text-3); } /* ── Status pill (topbar) ── */ .status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; background: var(--surface-3); color: var(--text-2); } .status-pill.online { background: rgba(52,168,83,.1); color: var(--success); } .status-pill.scanning { background: rgba(0,132,135,.1); color: var(--teal); } /* ── Buttons ── */ .btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: background 0.12s, border-color 0.12s; white-space: nowrap; } .btn:hover { background: var(--surface-3); } .btn svg { width: 14px; height: 14px; stroke-width: 1.75; } .btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); } .btn-primary:hover { background: var(--teal-600); border-color: var(--teal-600); } .btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); } .btn-sm { padding: 5px 11px; font-size: 12.5px; } .btn-ghost { background: transparent; border-color: transparent; } .btn-ghost:hover { background: var(--surface-3); } .btn:disabled { opacity: .55; cursor: not-allowed; } /* ── Icon button ── */ .icon-btn { width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.12s; } .icon-btn:hover { background: var(--surface-3); color: var(--text); } .icon-btn svg { width: 14px; height: 14px; stroke-width: 1.75; } /* ── Inputs ── */ .input, .select { width: 100%; padding: 7.5px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font-size: 13.5px; outline: none; transition: border-color .14s, box-shadow .14s; } .input:focus, .select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,132,135,.14); } .input::placeholder { color: var(--text-3); } .input-label { font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 5px; display: block; } /* ── Toggle ── */ .toggle { position: relative; display: inline-block; width: 36px; height: 22px; flex-shrink: 0; } .toggle input { opacity: 0; width: 0; height: 0; position: absolute; } .toggle-track { position: absolute; inset: 0; background: var(--surface-3); border: 1px solid var(--border); border-radius: 20px; cursor: pointer; transition: background .18s; } .toggle input:checked + .toggle-track { background: var(--teal); border-color: var(--teal); } .toggle-track::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; } .toggle input:checked + .toggle-track::after { transform: translateX(14px); } /* ── Dot ── */ .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; } .dot.green { background: var(--success); box-shadow: 0 0 0 2px rgba(52,168,83,.18); } .dot.red { background: var(--danger); } .dot.yellow { background: var(--warning); } .dot.gray { background: var(--text-3); } .dot.teal { background: var(--teal); } .dot.pulse { animation: dotpulse 1.6s ease-out infinite; } @keyframes dotpulse { 0% { box-shadow: 0 0 0 0 rgba(52,168,83,0.5); } 70% { box-shadow: 0 0 0 6px rgba(52,168,83,0); } 100% { box-shadow: 0 0 0 0 rgba(52,168,83,0); } } /* ── Badge ── */ .badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--surface-3); color: var(--text-2); } .badge-green { background: rgba(52,168,83,.12); color: #2c8a44; } .badge-red { background: rgba(229,72,77,.12); color: #c4393d; } .badge-yellow { background: rgba(232,162,58,.14); color: #b07820; } .badge-teal { background: var(--teal-50); color: var(--teal); } .badge-gray { background: var(--surface-3); color: var(--text-3); } [data-theme="dark"] .badge-green { color: #4cc471; } [data-theme="dark"] .badge-red { color: #ff6b6f; } [data-theme="dark"] .badge-yellow { color: #ffc46b; } [data-theme="dark"] .badge-teal { color: #4ec6c9; } /* ── Card ── */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); } .card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); } .card-title { font-size: 14px; font-weight: 600; } .card-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; } .card-action { font-size: 12.5px; color: var(--teal); display: flex; align-items: center; gap: 4px; } .card-action svg { width: 12px; height: 12px; } /* ── Stats grid ── */ .stats-grid { display: grid; gap: 16px; margin-bottom: 20px; } .stats-grid-4 { grid-template-columns: repeat(4, 1fr); } .stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); } .stat-icon { width: 14px; height: 14px; color: var(--text-3); stroke-width: 1.75; } .stat-label { font-size: 12.5px; color: var(--text-3); font-weight: 500; margin-bottom: 6px; display: flex; align-items: center; gap: 7px; } .stat-value { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; } .stat-delta { font-size: 12.5px; color: var(--text-3); margin-top: 4px; } .stat-delta.up { color: var(--success); } .stat-delta.down { color: var(--danger); } /* ── Sparkline ── */ .sparkline { display: flex; align-items: flex-end; gap: 2px; height: 24px; margin-top: 8px; } .sparkline span { flex: 1; background: var(--teal); border-radius: 1.5px; opacity: 0.75; } /* ── Dashboard 2-col grid ── */ .dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; } /* ── Table ── */ table { width: 100%; border-collapse: collapse; } thead th { padding: 10px 16px; text-align: left; white-space: nowrap; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); border-bottom: 1px solid var(--border); background: var(--surface-2); position: sticky; top: var(--topbar-h); } tbody td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); } tbody tr:last-child td { border-bottom: none; } tbody tr:hover td { background: var(--surface-2); } .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; } /* ── Device icon cell ── */ .device-icon { width: 28px; height: 28px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .device-icon svg { width: 14px; height: 14px; stroke-width: 1.75; } .device-row { display: flex; align-items: center; gap: 10px; } .device-name { font-size: 13px; font-weight: 600; } .device-vendor { font-size: 11.5px; color: var(--text-3); } /* ── Filter chips ── */ .filter-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); background: var(--surface); } .filter-chips { display: flex; gap: 5px; } .chip { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); cursor: pointer; transition: all .12s; } .chip:hover { background: var(--surface-3); } .chip.active { background: var(--teal-50); border-color: transparent; color: var(--teal); } .search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 300px; } .search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--text-3); pointer-events: none; } .search-wrap .input { padding-left: 32px; } /* ── Module row ── */ .module-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background .12s; } .module-row:last-child { border-bottom: none; } .module-row:hover { background: var(--surface-2); } .module-icon { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--surface-3); color: var(--text-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .module-icon.active { background: var(--teal-50); color: var(--teal); } .module-icon svg { width: 17px; height: 17px; stroke-width: 1.75; } .module-info { flex: 1; min-width: 0; } .module-name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; } .module-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; } .module-stats { display: flex; gap: 16px; font-size: 12px; color: var(--text-3); margin-top: 3px; } .module-stats strong { color: var(--text-2); font-weight: 500; } .module-config { border-top: 1px solid var(--border); padding: 18px 20px; background: var(--surface-2); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } /* ── Dashboard module list row ── */ .dash-module-row { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--border); } .dash-module-icon { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--teal-50); color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .dash-module-icon.off { background: var(--surface-3); color: var(--text-3); } .dash-module-icon svg { width: 15px; height: 15px; stroke-width: 1.75; } .dash-module-name { font-size: 13px; font-weight: 600; } .dash-module-sub { font-size: 11.5px; color: var(--text-3); } /* ── Logs ── */ .log-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; } .log-container { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); height: 500px; overflow-y: auto; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; } .log-row { display: grid; grid-template-columns: 80px 48px 1fr; gap: 14px; padding: 6px 16px; border-bottom: 1px solid var(--border); align-items: start; line-height: 1.5; } .log-row:last-child { border-bottom: none; } .log-row:hover { background: var(--surface-3); } .log-time { color: var(--text-3); font-size: 11px; white-space: nowrap; padding-top: 1px; } .log-level { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-align: center; text-transform: uppercase; letter-spacing: 0.04em; } .log-level.ok { background: rgba(52,168,83,.14); color: #2c8a44; } .log-level.info { background: rgba(47,125,241,.14); color: #2766c4; } .log-level.warn { background: rgba(232,162,58,.18); color: #b07820; } .log-level.err { background: rgba(229,72,77,.14); color: #c4393d; } [data-theme="dark"] .log-level.ok { color: #4cc471; } [data-theme="dark"] .log-level.info { color: #71aaff; } [data-theme="dark"] .log-level.warn { color: #ffc46b; } [data-theme="dark"] .log-level.err { color: #ff7679; } .log-msg { color: var(--text); word-break: break-word; } /* ── Settings ── */ .settings-section { margin-bottom: 24px; } .settings-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; } .setting-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); gap: 20px; } .setting-row:last-child { border-bottom: none; } .setting-label { font-size: 13.5px; font-weight: 500; } .setting-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; } .setting-body { padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .setting-body.full { grid-template-columns: 1fr; } .form-group { margin-bottom: 14px; } /* ── Password wrap ── */ .password-wrap { position: relative; } .password-wrap .input { padding-right: 40px; } .eye-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-3); padding: 2px; } .eye-btn:hover { color: var(--text); } .eye-btn svg { width: 16px; height: 16px; stroke-width: 1.75; } /* ── Auth / Login ── */ .auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 48px 24px; } .auth-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 36px 30px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; gap: 20px; } .auth-logo { height: 36px; } .auth-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0; } .auth-sub { font-size: 13px; color: var(--text-3); text-align: center; margin-top: -10px; } .auth-card form { width: 100%; display: flex; flex-direction: column; gap: 12px; } /* ── Setup wizard ── */ .wizard-wrap { min-height: 100vh; display: flex; align-items: safe center; justify-content: safe center; background: var(--bg); padding: 24px; } .wizard { width: 100%; max-width: 540px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; } .wizard-header { padding: 26px 30px 18px; border-bottom: 1px solid var(--border); } .wizard-steps { display: flex; gap: 6px; margin-top: 16px; } .wizard-step { flex: 1; height: 3px; border-radius: 999px; background: var(--surface-3); } .wizard-step.done, .wizard-step.active { background: var(--teal); } .wizard-body { padding: 26px 30px; min-height: 220px; } .wizard-footer { padding: 14px 30px; border-top: 1px solid var(--border); background: var(--surface-2); display: flex; align-items: center; justify-content: space-between; } .wizard-icon { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--teal-50); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; } .wizard-icon svg { width: 24px; height: 24px; stroke-width: 1.75; } .wizard-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; } .wizard-sub { font-size: 13px; color: var(--text-3); margin-bottom: 20px; } .site-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .site-card { border: 2px solid var(--border); border-radius: var(--r-md); padding: 16px; cursor: pointer; transition: border-color .15s, background .15s; } .site-card:hover { border-color: var(--teal-50); background: var(--surface-2); } .site-card.selected { border-color: var(--teal); background: var(--teal-50); } .site-card-name { font-weight: 600; font-size: 14px; } .site-card-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; } /* ── Pagination ── */ .pagination { display: flex; align-items: center; gap: 3px; } .page-btn { min-width: 28px; height: 28px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 8px; } .page-btn:hover { background: var(--surface-3); color: var(--text); } .page-btn.active { background: var(--teal); color: #fff; } .page-btn:disabled { opacity: .4; cursor: not-allowed; } /* ── Error / Success msgs ── */ .error-msg { background: rgba(229,72,77,.08); border: 1px solid rgba(229,72,77,.2); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; color: var(--danger); } .success-msg { background: rgba(52,168,83,.08); border: 1px solid rgba(52,168,83,.2); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; color: var(--success); } /* ── Spinner ── */ .spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ── HTMX ── */ .htmx-indicator { display: none; } .htmx-request .htmx-indicator { display: inline-flex; } /* ── Utilities ── */ .spacer { flex: 1; } .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; }