/* ============================================================ MMaxAI Hosting Panel — Copilot-style overlay ------------------------------------------------------------ Layered on top of panel.css. Overrides design tokens for the dark theme, redefines the shell layout (.sidebar / .topbar / .content), AND overrides every legacy component class used by other templates (.card, .btn, .badge, .table, .form-*, .alert, .tabs, .action-tile, .chip, .timeline, .empty-state, .detail-list, .stats-grid, .toolbar, .modal, .toast, etc.) so the entire panel renders in the new visual language without touching Jinja logic, data-attributes, or panel.js handlers. ============================================================ */ /* ---------------------------------------------------------------- Tokens — dark theme override (Copilot palette) ---------------------------------------------------------------- */ :root, :root[data-theme="dark"] { /* Surfaces — deep navy monochrome */ --bg: #0a0e1c; --bg-elev-1: #161b35; --bg-elev-2: #1c2240; --surface: #161b35; --surface-hover: #1f2547; --surface-2: #1c2240; --border: rgba(255, 255, 255, 0.06); --border-strong: rgba(255, 255, 255, 0.10); /* Text — soft off-white */ --text: #ebecf2; --text-muted: #b0b4c5; --text-faint: #8084a0; --text-on-accent: #ffffff; /* Accent — restrained, used sparingly */ --primary: #ebecf2; --primary-hover: #ffffff; --primary-soft: rgba(255, 255, 255, 0.08); --accent: #ffffff; --accent-2: #06b6d4; --accent-2-soft: rgba(6, 182, 212, 0.16); /* Status palette — softened */ --status-pending: #fbbf24; --status-building: #60a5fa; --status-running: #4ade80; --status-stopped: #8084a0; --status-error: #f87171; --status-sleeping: #818cf8; /* Soft shadows — vignette-friendly */ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow: 0 4px 14px rgba(0, 0, 0, 0.4); --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55); --ring: 0 0 0 3px rgba(255, 255, 255, 0.20); /* Geometry — larger rounded corners */ --radius: 10px; --radius-sm: 6px; --radius-lg: 22px; --radius-pill: 9999px; /* Layout constants */ --sidebar-w: 260px; --topbar-h: 64px; /* Card gradient palette (for featured + thumbnails) */ --grad-1: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 50%, #06b6d4 100%); --grad-2: linear-gradient(135deg, #064e3b 0%, #059669 50%, #34d399 100%); --grad-3: linear-gradient(135deg, #7c2d12 0%, #dc2626 50%, #fca5a5 100%); --grad-4: linear-gradient(135deg, #1e293b 0%, #475569 50%, #94a3b8 100%); --grad-5: linear-gradient(135deg, #581c87 0%, #7c3aed 50%, #c4b5fd 100%); --grad-6: linear-gradient(135deg, #075985 0%, #0ea5e9 50%, #7dd3fc 100%); } /* Light theme stays as-is from panel.css — clean and crisp. */ /* ---------------------------------------------------------------- Body background — radial vignette ---------------------------------------------------------------- */ body.has-copilot { background: radial-gradient(ellipse 90% 70% at 50% 30%, #161b35 0%, #0c1124 45%, #07091a 100%); background-attachment: fixed; min-height: 100vh; } /* ---------------------------------------------------------------- Shell layout ---------------------------------------------------------------- */ .shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; } .main-wrap { display: flex; flex-direction: column; min-width: 0; } /* ---------------------------------------------------------------- Sidebar (overrides panel.css .sidebar) ---------------------------------------------------------------- */ .sidebar { width: var(--sidebar-w); background: rgba(10, 14, 28, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 30; transition: transform var(--t-med) var(--ease); } .sidebar-head { padding: 18px 20px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); height: var(--topbar-h); } .sidebar-head .brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; } .sidebar-head .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--text); color: var(--bg); display: grid; place-items: center; font-size: 15px; font-weight: 700; } .sidebar-nav { flex: 0 0 auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; } .sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-md, 12px); color: var(--text-muted); font-size: 14px; font-weight: 500; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); position: relative; } .sidebar-nav a:hover { background: var(--surface); color: var(--text); } .sidebar-nav a.active { background: var(--surface); color: var(--text); } .sidebar-nav a.active::before { content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 3px; height: 16px; border-radius: 0 3px 3px 0; background: var(--text); } .sidebar-nav a svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--text-faint); } .sidebar-nav a.active svg { color: var(--text); } .sidebar-nav a:hover svg { color: var(--text); } .sidebar-nav .badge { margin-left: auto; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-muted); font-size: 11px; font-weight: 600; } .sidebar-nav a.active .badge { color: var(--text); } .sidebar-section-label { padding: 16px 14px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-faint); } .sidebar-divider { height: 1px; background: var(--border); margin: 10px 18px; } .sidebar-section { flex: 1; overflow-y: auto; padding: 0 12px 12px; border-top: none; } .sidebar-section .item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-md, 12px); font-size: 13px; color: var(--text); transition: background var(--t-fast) var(--ease); line-height: 1.3; border-bottom: none; background: transparent; } .sidebar-section .item:hover { background: var(--surface); } .sidebar-section .item .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; } .sidebar-section .item .text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; color: var(--text); font-size: 13px; } .sidebar-section .item .when { font-size: 11px; color: var(--text-faint); flex: 0 0 auto; } .sidebar-footer { padding: 12px 14px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; background: transparent; } .sidebar-footer .profile { display: flex; align-items: center; gap: 10px; flex: 1; padding: 6px 4px; border-radius: var(--radius-md, 12px); cursor: pointer; min-width: 0; text-decoration: none; color: var(--text); } .sidebar-footer .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5, #06b6d4); display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px; flex: 0 0 34px; } .sidebar-footer .meta { min-width: 0; flex: 1; } .sidebar-footer .name { font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 1.2; } .sidebar-footer .role { font-size: 11px; color: var(--text-muted); text-transform: capitalize; } /* ---------------------------------------------------------------- Topbar (overrides panel.css .topbar) ---------------------------------------------------------------- */ .topbar { display: flex; align-items: center; gap: 14px; padding: 0 32px; height: var(--topbar-h); background: rgba(10, 14, 28, 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 9; } .topbar .crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 13.5px; flex: 0 0 auto; } .topbar .crumbs h1 { margin: 0; font-size: 15px; font-weight: 500; color: var(--text); } .topbar .crumbs .sep { color: var(--text-faint); } .topbar .spacer { flex: 1; } .topbar .topbar-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; } /* Scope pill */ .scope-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 13.5px; font-weight: 500; transition: background var(--t-fast) var(--ease); cursor: pointer; } .scope-pill:hover { background: var(--surface-hover); } .scope-pill .badge { padding: 1px 7px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-muted); font-size: 11px; font-weight: 600; } .scope-pill svg { width: 12px; height: 12px; opacity: 0.7; } /* Search trigger */ .search-trigger { display: inline-flex; align-items: center; gap: 10px; width: 280px; height: 36px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text-faint); font-size: 13px; transition: background var(--t-fast) var(--ease); cursor: pointer; text-align: left; } .search-trigger:hover { background: var(--surface-hover); } .search-trigger svg { width: 14px; height: 14px; } .search-trigger .label { flex: 1; text-align: left; } .search-trigger kbd { padding: 2px 6px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); font-family: var(--font); font-size: 10.5px; font-weight: 600; } /* Icon button */ .icon-btn { width: 36px; height: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); display: grid; place-items: center; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); cursor: pointer; } .icon-btn:hover { background: var(--surface-hover); color: var(--text); } .icon-btn svg { width: 16px; height: 16px; } /* Mobile menu toggle (preserved from panel.css for drawer behaviour) */ .menu-toggle { display: none; width: 36px; height: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); place-items: center; } .menu-toggle:hover { background: var(--surface-hover); color: var(--text); } .menu-toggle svg { width: 18px; height: 18px; } /* ---------------------------------------------------------------- Content area (overrides panel.css .content) ---------------------------------------------------------------- */ .content { padding: 32px 32px 100px; /* extra bottom for floating cmd-bar */ max-width: 1400px; width: 100%; flex: 1; margin: 0 auto; } /* ---------------------------------------------------------------- Hero (dashboard greeting) ---------------------------------------------------------------- */ .hero { position: relative; padding: 48px 24px 32px; text-align: center; margin-bottom: 32px; } .hero-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 600px; background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 70%); pointer-events: none; z-index: 0; } .hero-content { position: relative; z-index: 1; } .hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-size: 12px; font-weight: 500; margin-bottom: 16px; } .hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-running); animation: copilot-pulse 1.8s ease-in-out infinite; } @keyframes copilot-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } } .hero h1 { margin: 0 0 8px; font-size: 44px; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; } .hero h1 .greet { font-weight: 500; } .hero h1 .accent-num { font-weight: 600; background: linear-gradient(135deg, #4ade80 0%, #06b6d4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; } .hero p { margin: 12px auto 0; max-width: 580px; font-size: 15px; color: var(--text-muted); line-height: 1.55; } .hero p .warn { color: var(--status-error); font-weight: 500; } /* ---------------------------------------------------------------- Stats row (overrides panel.css .stats-grid / .stat-card) ---------------------------------------------------------------- */ .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; } .stat-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; overflow: hidden; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); display: block; color: inherit; text-decoration: none; margin-bottom: 0; /* override panel.css */ } .stat-card:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-2px); box-shadow: none; } .stat-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; } .stat-card .label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; } .stat-card .label .ico { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-muted); } .stat-card .label .ico svg { width: 14px; height: 14px; } .stat-card .trend { font-size: 11.5px; color: var(--text-muted); font-weight: 500; } .stat-card .trend.up { color: var(--status-running); } .stat-card .trend.down { color: var(--status-error); } .stat-card .stat-value { font-size: 36px; font-weight: 600; color: var(--text); line-height: 1; letter-spacing: -0.02em; margin: 0; position: static; background: none; opacity: 1; } .stat-card .stat-value small { font-size: 14px; font-weight: 500; color: var(--text-muted); margin-left: 4px; } .stat-card .stat-foot { margin-top: 6px; font-size: 12px; color: var(--text-muted); background: none; padding: 0; opacity: 1; } /* ---------------------------------------------------------------- Featured hero card ---------------------------------------------------------------- */ .featured { position: relative; background: var(--grad-1); border-radius: var(--radius-lg); padding: 32px 36px; overflow: hidden; margin-bottom: 32px; cursor: pointer; transition: transform var(--t-fast) var(--ease); display: block; color: #fff; text-decoration: none; } .featured:hover { transform: translateY(-2px); color: #fff; } .featured::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 80% 20%, rgba(255,255,255,0.12), transparent 60%), radial-gradient(50% 50% at 20% 80%, rgba(0,0,0,0.30), transparent 60%); pointer-events: none; } .featured .deco { position: absolute; right: -40px; bottom: -40px; width: 320px; height: 320px; color: rgba(255,255,255,0.06); } .featured .top-row { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; } .featured .live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; background: rgba(255,255,255,0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-pill); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; } .featured .live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: copilot-pulse 1.8s ease-in-out infinite; } .featured .scope { position: relative; color: rgba(255,255,255,0.85); font-size: 12.5px; font-weight: 500; font-family: var(--font-mono); } .featured .info { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; } .featured .info h2 { margin: 0 0 6px; font-size: 32px; font-weight: 500; color: #fff; line-height: 1.15; letter-spacing: -0.02em; } .featured .info .meta { color: rgba(255,255,255,0.85); font-size: 13.5px; font-family: var(--font-mono); } .featured .stats-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; min-width: 280px; } .featured .stat-mini { color: #fff; } .featured .stat-mini .num { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; } .featured .stat-mini .num small { font-size: 13px; opacity: 0.7; } .featured .stat-mini .lbl { margin-top: 4px; font-size: 11.5px; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.5px; } /* ---------------------------------------------------------------- Section heads (for bots, activity) ---------------------------------------------------------------- */ .dash-section { margin-bottom: 32px; } .dash-section .section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .dash-section .section-head h2 { margin: 0; font-size: 18px; font-weight: 500; color: var(--text); } .dash-section .section-head .more { font-size: 13px; color: var(--text-muted); } .dash-section .section-head .more:hover { color: var(--text); } /* ---------------------------------------------------------------- Bots grid ---------------------------------------------------------------- */ .bots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } .bot-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); cursor: pointer; display: block; color: inherit; text-decoration: none; } .bot-card:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-2px); color: inherit; } .bot-card .head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; gap: 12px; } .bot-card .name { font-size: 16px; font-weight: 500; color: var(--text); margin: 0 0 4px; letter-spacing: -0.01em; } .bot-card .desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; font-family: var(--font-mono); } .bot-card .badge { padding: 3px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; } .bot-card .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; } .bot-card .foot { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); } .bot-card .foot .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); } /* ---------------------------------------------------------------- Status badges (override panel.css) ---------------------------------------------------------------- */ .badge.status-running { background: rgba(74, 222, 128, 0.16); color: var(--status-running); border-color: rgba(74,222,128,0.20); } .badge.status-error { background: rgba(248, 113, 113, 0.18); color: var(--status-error); border-color: rgba(248,113,113,0.22); } .badge.status-building { background: rgba(96, 165, 250, 0.18); color: var(--status-building); border-color: rgba(96,165,250,0.22); } .badge.status-pending { background: rgba(251, 191, 36, 0.16); color: var(--status-pending); border-color: rgba(251,191,36,0.20); } .badge.status-sleeping { background: rgba(129, 140, 248, 0.18); color: var(--status-sleeping); border-color: rgba(129,140,248,0.22); } .badge.status-stopped { background: var(--surface-2); color: var(--text-muted); } /* ---------------------------------------------------------------- Activity feed (override panel.css .activity) ---------------------------------------------------------------- */ .activity-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: block; } .activity-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background var(--t-fast) var(--ease); } .activity-item:last-child { border-bottom: 0; } .activity-item:hover { background: var(--surface-hover); } .activity-item .ico { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); color: var(--text-muted); display: grid; place-items: center; } .activity-item .ico svg { width: 16px; height: 16px; } .activity-item .ico.st-running { background: rgba(74, 222, 128, 0.16); color: var(--status-running); } .activity-item .ico.st-error { background: rgba(248, 113, 113, 0.18); color: var(--status-error); } .activity-item .ico.st-building { background: rgba(96, 165, 250, 0.18); color: var(--status-building); } .activity-item .ico.st-pending { background: rgba(251, 191, 36, 0.16); color: var(--status-pending); } .activity-item .ico.st-sleeping { background: rgba(129, 140, 248, 0.18); color: var(--status-sleeping); } .activity-item .body .what { font-size: 13.5px; color: var(--text); font-weight: 500; line-height: 1.4; } .activity-item .body .what strong { font-weight: 600; } .activity-item .body .what code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; color: var(--text); font-size: 12px; } .activity-item .body .meta { margin-top: 2px; font-size: 12px; color: var(--text-muted); } .activity-item .when { font-size: 12px; color: var(--text-faint); font-feature-settings: "tnum"; white-space: nowrap; } /* ---------------------------------------------------------------- Floating command palette (Cmd+K) ---------------------------------------------------------------- */ .cmd-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(640px, calc(100% - 64px)); background: rgba(22, 27, 53, 0.85); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 6px 6px 6px 8px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg), 0 8px 16px rgba(0,0,0,0.4); z-index: 50; } .cmd-bar .cmd-add { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--text); display: grid; place-items: center; flex: 0 0 40px; transition: background var(--t-fast) var(--ease); cursor: pointer; border: 0; } .cmd-bar .cmd-add:hover { background: #2e3560; } .cmd-bar .cmd-add svg { width: 18px; height: 18px; } .cmd-bar input { flex: 1; height: 100%; background: transparent; border: 0; outline: 0; color: var(--text); font: 400 14px/1 var(--font); padding: 0 8px; min-width: 0; } .cmd-bar input::placeholder { color: var(--text-muted); } .cmd-bar .cmd-kbd { display: inline-flex; gap: 3px; } .cmd-bar .cmd-kbd kbd { padding: 2px 7px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); font-family: var(--font); font-size: 11px; font-weight: 600; } .cmd-bar .cmd-send { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; height: 40px; border-radius: var(--radius-pill); background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600; transition: opacity var(--t-fast) var(--ease); cursor: pointer; border: 0; flex: 0 0 auto; } .cmd-bar .cmd-send:hover { opacity: 0.85; } .cmd-bar .cmd-send svg { width: 14px; height: 14px; } /* ---------------------------------------------------------------- Misc adjustments ---------------------------------------------------------------- */ .scrim { background: rgba(0, 0, 0, 0.6); } /* Toast container tweaks for Copilot aesthetic */ .toast { background: var(--surface); border: 1px solid var(--border-strong); } /* ============================================================ LEGACY COMPONENT OVERRIDES ------------------------------------------------------------ Every panel.css class below is redefined here so the rest of the templates (bots_list, bot_detail, bot_form, bot_settings, bot_logs, bot_files, bot_proxy, profile, admin_users, admin_invites, admin_stats, admin_secrets, admin_control, admin_audit) automatically picks up the new visual language without touching the Jinja templates. ============================================================ */ /* ---------------------------------------------------------------- Page headers ---------------------------------------------------------------- */ .page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; } .page-header h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); } .page-header .subtitle { margin-top: 4px; color: var(--text-muted); font-size: 14px; } .page-header .actions { display: flex; gap: 8px; flex-wrap: wrap; } /* ---------------------------------------------------------------- Cards ---------------------------------------------------------------- */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 18px; overflow: hidden; box-shadow: none; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); } .card:hover { box-shadow: none; background: var(--surface); } .card.flush { padding: 0; } .card-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--border); gap: 12px; } .card-header h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: var(--text); } .card-header .desc { color: var(--text-muted); font-size: 12.5px; margin-top: 2px; } .card-body { padding: 20px; } .card-body.tight { padding: 12px 16px; } .card.elevated { background: var(--bg-elev-1); border-color: var(--border); } /* ---------------------------------------------------------------- Buttons ---------------------------------------------------------------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 500 14px/1.2 var(--font); cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); text-decoration: none; white-space: nowrap; } .btn:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: none; } .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-soft); } .btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; } .btn svg { width: 14px; height: 14px; } .btn-primary { background: var(--text); border-color: transparent; color: var(--bg); font-weight: 600; } .btn-primary:hover { background: #ffffff; border-color: transparent; color: var(--bg); transform: none; } .btn-success { background: var(--status-running); border-color: transparent; color: #04150b; font-weight: 600; } .btn-success:hover { background: #6ff09a; color: #04150b; } .btn-warning { background: var(--status-pending); border-color: transparent; color: #1c1300; font-weight: 600; } .btn-warning:hover { background: #fcd34d; color: #1c1300; } .btn-danger { background: var(--status-error); border-color: transparent; color: #1f0405; font-weight: 600; } .btn-danger:hover { background: #fca5a5; color: #1f0405; } .btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); } .btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); } .btn-ghost:hover { background: var(--surface-hover); color: var(--text); } .btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); } .btn-outline:hover { background: var(--surface-hover); } .btn-block { width: 100%; } .btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: var(--radius-pill); } .btn-lg { padding: 12px 22px; font-size: 15px; border-radius: var(--radius-pill); } .btn .spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ---------------------------------------------------------------- Forms ---------------------------------------------------------------- */ .form-grid { display: grid; gap: 18px; } .form-section { display: grid; gap: 14px; } .form-section-title { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; margin: 4px 0 -4px; } .form-section-title .ico { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); color: var(--text); display: grid; place-items: center; } .form-section-title .ico svg { width: 14px; height: 14px; } .form-group { margin-bottom: 14px; } .form-group label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.01em; } .form-group label .req { color: var(--status-error); margin-left: 2px; } .form-group .help { display: block; margin-top: 5px; font-size: 12px; color: var(--text-muted); line-height: 1.45; } .form-group .help a { color: var(--text); } .input, input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="search"], textarea, select { width: 100%; padding: 11px 14px; background: rgba(10, 14, 28, 0.55); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font: inherit; font-size: 14px; line-height: 1.4; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease); } textarea { font-family: var(--font-mono); font-size: 13px; resize: vertical; min-height: 96px; } select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; } .input:focus, input:focus, textarea:focus, select:focus { outline: none; border-color: var(--border-strong); background: rgba(10, 14, 28, 0.75); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); } .input.is-invalid, input.is-invalid { border-color: var(--status-error); } .input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.20); } ::placeholder { color: var(--text-faint); } .input-with-action { position: relative; display: flex; gap: 8px; align-items: stretch; } .input-with-action .input, .input-with-action input { padding-right: 38px; } .input-with-action .input-action { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; background: transparent; border: 0; color: var(--text-muted); border-radius: 6px; cursor: pointer; } .input-with-action .input-action:hover { background: var(--surface-hover); color: var(--text); } .input-with-action .input-action svg { width: 16px; height: 16px; } .input-with-action .input-action[aria-pressed="true"] { background: var(--surface-2); color: var(--text); } .caps-warn { margin-top: 6px; font-size: 12px; color: var(--status-pending); display: flex; align-items: center; gap: 4px; } .form-row-between { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 18px 0; font-size: 13px; } .checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); cursor: pointer; user-select: none; } .checkbox input { width: 16px; height: 16px; accent-color: var(--text); margin: 0; } .link-muted { color: var(--text-muted); text-decoration: none; } .link-muted:hover { color: var(--text); text-decoration: underline; } .form-actions { display: flex; gap: 10px; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--border); align-items: center; } .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; } .form-row .form-group { margin: 0; } .check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13.5px; } .check input { width: 16px; height: 16px; accent-color: var(--text); margin: 0; } /* ---------------------------------------------------------------- Badges ---------------------------------------------------------------- */ .badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; border: 1px solid transparent; background: var(--surface-2); color: var(--text-muted); } .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; } .badge.status-pending { background: rgba(251, 191, 36, 0.16); color: var(--status-pending); } .badge.status-building { background: rgba(96, 165, 250, 0.18); color: var(--status-building); } .badge.status-running { background: rgba(74, 222, 128, 0.16); color: var(--status-running); } .badge.status-stopped { background: var(--surface-2); color: var(--text-muted); } .badge.status-error { background: rgba(248, 113, 113, 0.18); color: var(--status-error); } .badge.status-sleeping { background: rgba(129, 140, 248, 0.18); color: var(--status-sleeping); } .badge.status-success { background: rgba(74, 222, 128, 0.16); color: var(--status-running); } .badge.status-failed { background: rgba(248, 113, 113, 0.18); color: var(--status-error); } .badge.status-warning { background: rgba(251, 191, 36, 0.16); color: var(--status-pending); } .badge.role-admin { background: var(--primary-soft); color: var(--text); } .badge.role-operator { background: rgba(96, 165, 250, 0.18); color: var(--status-building); } .badge.role-viewer { background: var(--surface-2); color: var(--text-muted); } .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--status-running); animation: copilot-pulse 1.8s ease-in-out infinite; } /* ---------------------------------------------------------------- Alerts ---------------------------------------------------------------- */ .alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13.5px; border: 1px solid var(--border); background: var(--surface-2); } .alert > .ico { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; } .alert > .ico svg { width: 18px; height: 18px; } .alert .alert-body { flex: 1; } .alert .alert-title { font-weight: 600; margin-bottom: 2px; color: var(--text); } .alert-error { background: rgba(248, 113, 113, 0.10); border-color: rgba(248, 113, 113, 0.30); color: var(--text); } .alert-error > .ico { color: var(--status-error); } .alert-warning { background: rgba(251, 191, 36, 0.10); border-color: rgba(251, 191, 36, 0.30); color: var(--text); } .alert-warning > .ico { color: var(--status-pending); } .alert-success { background: rgba(74, 222, 128, 0.10); border-color: rgba(74, 222, 128, 0.30); color: var(--text); } .alert-success > .ico { color: var(--status-running); } .alert-info { background: rgba(96, 165, 250, 0.10); border-color: rgba(96, 165, 250, 0.30); color: var(--text); } .alert-info > .ico { color: var(--status-building); } /* ---------------------------------------------------------------- Tables ---------------------------------------------------------------- */ .table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); } .table { width: 100%; border-collapse: collapse; font-size: 13.5px; } .table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; } .table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; background: var(--bg-elev-1); border-bottom: 1px solid var(--border); } .table tbody tr { transition: background var(--t-fast) var(--ease); } .table tbody tr:hover { background: var(--bg-elev-1); } .table tbody tr:last-child td { border-bottom: 0; } .table td.muted, .table .muted { color: var(--text-muted); } .table .actions-cell { text-align: right; white-space: nowrap; } .table .row-actions { display: inline-flex; gap: 6px; opacity: 1; transition: none; } .table-empty { padding: 60px 20px; text-align: center; color: var(--text-muted); } /* ---------------------------------------------------------------- Detail list & rows ---------------------------------------------------------------- */ .detail-list { display: grid; gap: 0; } .detail-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); } .detail-row:last-child { border-bottom: 0; } .detail-row .label { color: var(--text-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; flex: 0 0 auto; } .detail-row .value { font-weight: 500; text-align: right; word-break: break-all; color: var(--text); font-size: 14px; } .detail-row .value a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; } .detail-row .value a:hover { text-decoration-color: var(--text); } .detail-row .value code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: 12.5px; } /* ---------------------------------------------------------------- Stats grid (legacy dashboard class) ---------------------------------------------------------------- */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; } /* ---------------------------------------------------------------- Tabs ---------------------------------------------------------------- */ .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; scrollbar-width: thin; } .tab { padding: 11px 16px; background: transparent; border: 0; color: var(--text-muted); font: 500 13.5px/1 var(--font); letter-spacing: 0.25px; cursor: pointer; position: relative; border-radius: 8px 8px 0 0; transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); white-space: nowrap; } .tab:hover { color: var(--text); background: var(--bg-elev-1); } .tab.active { color: var(--text); } .tab.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); } .tab .count { margin-left: 6px; padding: 1px 7px; background: var(--surface-2); color: var(--text-muted); border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; } .tab.active .count { background: var(--surface-2); color: var(--text); } .tab-panel { display: none; } .tab-panel.active { display: block; animation: fadeUp var(--t-med) var(--ease); } @keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } /* ---------------------------------------------------------------- Toolbar (filter + search above tables) ---------------------------------------------------------------- */ .toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; } .toolbar .search { position: relative; flex: 1; min-width: 220px; max-width: 360px; } .toolbar .search input { padding-left: 36px; } .toolbar .search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-faint); pointer-events: none; } .toolbar .filter-chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: all var(--t-fast) var(--ease); user-select: none; } .chip:hover { color: var(--text); border-color: var(--border-strong); } .chip.active { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); } .chip.active .badge { background: var(--bg-elev-1); color: var(--text); } .chip .badge { padding: 1px 7px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-muted); font-size: 11px; font-weight: 600; } .chip .count { font-size: 11px; opacity: 0.85; } /* ---------------------------------------------------------------- Action tiles ---------------------------------------------------------------- */ .action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; } .action-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; color: var(--text); transition: all var(--t-fast) var(--ease); } .action-tile:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateY(-2px); text-decoration: none; box-shadow: none; color: var(--text); } .action-tile .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--text); display: grid; place-items: center; margin-bottom: 4px; } .action-tile .ico svg { width: 18px; height: 18px; } .action-tile .label { font-weight: 600; font-size: 14px; } .action-tile .hint { font-size: 12px; color: var(--text-muted); } /* ---------------------------------------------------------------- Activity feed (legacy .activity used in dashboard) ---------------------------------------------------------------- */ .activity { display: flex; flex-direction: column; gap: 0; } .activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); } .activity-item:last-child { border-bottom: 0; } .activity-item .ico { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); color: var(--text-muted); display: grid; place-items: center; flex: 0 0 28px; } .activity-item .ico svg { width: 14px; height: 14px; } .activity-item .body { flex: 1; min-width: 0; } .activity-item .body .who { font-weight: 600; font-size: 13px; } .activity-item .body .what { color: var(--text-muted); font-size: 12.5px; } .activity-item .body .when { color: var(--text-faint); font-size: 11.5px; } /* ---------------------------------------------------------------- Empty state ---------------------------------------------------------------- */ .empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); } .empty-state .ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: var(--surface-2); color: var(--text); display: grid; place-items: center; } .empty-state .ico svg { width: 28px; height: 28px; } .empty-state h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); } .empty-state p { margin: 0 0 16px; font-size: 13.5px; } /* ---------------------------------------------------------------- Timeline ---------------------------------------------------------------- */ .timeline { position: relative; padding-left: 22px; } .timeline::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 7px; width: 2px; background: var(--border); border-radius: 2px; } .timeline-item { position: relative; padding: 0 0 16px; } .timeline-item:last-child { padding-bottom: 0; } .timeline-item::before { content: ""; position: absolute; left: -19px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); } .timeline-item.success::before { background: var(--status-running); border-color: var(--status-running); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16); } .timeline-item.error::before { background: var(--status-error); border-color: var(--status-error); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18); } .timeline-item.pending::before { background: var(--status-pending); border-color: var(--status-pending); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.16); } .timeline-item .t-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 2px; } .timeline-item .t-action { font-weight: 600; font-size: 13px; } .timeline-item .t-time { color: var(--text-muted); font-size: 11.5px; white-space: nowrap; } .timeline-item .t-msg { color: var(--text-muted); font-size: 12.5px; line-height: 1.45; } /* ---------------------------------------------------------------- Health pills (legacy) ---------------------------------------------------------------- */ .health-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); } .health-pill.healthy { color: var(--status-running); border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.16); } .health-pill.warn { color: var(--status-pending); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.16); } .health-pill.down { color: var(--status-error); border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.18); } .health-pill .ico { width: 8px; height: 8px; border-radius: 50%; background: currentColor; } /* ---------------------------------------------------------------- Secrets (legacy) ---------------------------------------------------------------- */ .secret { display: inline-flex; align-items: center; gap: 8px; } .secret code { background: var(--surface-2); padding: 4px 8px; border-radius: 6px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text); } .secret .secret-actions { display: inline-flex; gap: 4px; } .secret .secret-btn { width: 28px; height: 28px; display: grid; place-items: center; background: transparent; border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); cursor: pointer; transition: all var(--t-fast) var(--ease); } .secret .secret-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); } .secret .secret-btn svg { width: 14px; height: 14px; } /* ---------------------------------------------------------------- Grids ---------------------------------------------------------------- */ .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } @media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } } /* ---------------------------------------------------------------- Invite code box ---------------------------------------------------------------- */ .invite-code { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(10, 14, 28, 0.55); border: 1px dashed var(--border-strong); border-radius: var(--radius); font-family: var(--font-mono); font-size: 14px; word-break: break-all; } /* ---------------------------------------------------------------- Misc utilities (keep panel.css ones too, redefine to Copilot palette) ---------------------------------------------------------------- */ .text-muted { color: var(--text-muted); } .text-faint { color: var(--text-faint); } .text-success { color: var(--status-running); } .text-error { color: var(--status-error); } .text-warning { color: var(--status-pending); } .text-primary { color: var(--text); } .inline { display: inline; } .d-none { display: none !important; } .mono { font-family: var(--font-mono); } .copy-target { user-select: all; } .nowrap { white-space: nowrap; } .spacer { flex: 1; } .divider { height: 1px; background: var(--border); margin: 16px 0; } .muted { color: var(--text-muted); } /* ---------------------------------------------------------------- Filter section (audit page filters) ---------------------------------------------------------------- */ .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 16px; } .filters .form-group { margin: 0; } .filters label { font-size: 11.5px; } /* ---------------------------------------------------------------- Toast / snackbar ---------------------------------------------------------------- */ .toast-container { position: fixed; right: 18px; top: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 100; pointer-events: none; /* When several toasts land at once the last entry should sit on top; the natural DOM order already does that — no extra reordering. */ max-width: min(360px, calc(100vw - 32px)); } .toast { pointer-events: auto; position: relative; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px 14px 14px; min-width: 240px; max-width: 360px; display: flex; gap: 10px; align-items: flex-start; /* Enter animation — slide down from the top with a tiny bounce. translate3d engages the GPU so the transform is smooth on low-end laptops even with several toasts stacked. */ animation: toastIn 380ms cubic-bezier(0.2, 1.2, 0.4, 1) both; overflow: hidden; /* The left accent stripe sits on top of the gradient progress bar — keep a tiny inset so the bar doesn't bleed past the radius. */ will-change: transform, opacity; } .toast::before { /* Kind-coloured accent stripe (left edge). */ content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--text-muted); opacity: 0.85; } .toast.success::before { background: var(--status-running); } .toast.error::before { background: var(--status-error); } .toast.info::before { background: var(--status-building); } .toast.warning::before { background: #f0a500; } .toast .ico { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; animation: toastIconPop 480ms 80ms cubic-bezier(0.2, 1.6, 0.4, 1) both; transform-origin: center; } .toast.success .ico { color: var(--status-running); } .toast.error .ico { color: var(--status-error); } .toast.info .ico { color: var(--status-building); } .toast.warning .ico { color: #f0a500; } .toast .toast-body { flex: 1; font-size: 13.5px; line-height: 1.4; min-width: 0; } .toast .toast-title { font-weight: 600; word-break: break-word; } .toast .toast-msg { color: var(--text-muted); margin-top: 2px; font-size: 12.5px; word-break: break-word; } /* Close hint on hover. */ .toast::after { content: "×"; position: absolute; top: 6px; right: 8px; font-size: 14px; line-height: 1; color: var(--text-muted); opacity: 0; transition: opacity 120ms var(--ease); cursor: pointer; user-select: none; } .toast:hover::after { opacity: 0.8; } /* Progress bar that drains while the toast is on screen. */ .toast .toast-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; pointer-events: none; overflow: hidden; } .toast .toast-progress > span { display: block; height: 100%; background: currentColor; opacity: 0.55; width: 100%; transform-origin: left center; transform: scaleX(1); /* JS toggles ``animation-play-state`` to pause on hover. */ animation: toastProgressDrain linear forwards; } .toast.success .toast-progress > span { color: var(--status-running); } .toast.error .toast-progress > span { color: var(--status-error); } .toast.info .toast-progress > span { color: var(--status-building); } .toast.warning .toast-progress > span { color: #f0a500; } .toast.leaving { animation: toastOut 220ms cubic-bezier(0.4, 0.0, 1, 1) forwards; } @keyframes toastIn { 0% { opacity: 0; transform: translate3d(0, -16px, 0) scale(0.96); } 60% { opacity: 1; transform: translate3d(0, 4px, 0) scale(1.01); } 100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } } @keyframes toastIconPop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); opacity: 1; } } @keyframes toastOut { 0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } 100% { opacity: 0; transform: translate3d(0, -8px, 0) scale(0.97); } } /* Default progress duration — JS overrides with the toast's lifetime. */ @keyframes toastProgressDrain { from { transform: scaleX(1); } to { transform: scaleX(0); } } /* Respect users who turn motion off. */ @media (prefers-reduced-motion: reduce) { .toast, .toast .ico, .toast .toast-progress > span { animation: none !important; } .toast { opacity: 1; } } /* ---------------------------------------------------------------- Modal ---------------------------------------------------------------- */ .modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; } .modal-backdrop.is-open { display: flex; animation: fadeIn var(--t-fast) var(--ease); } .modal { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); overflow: hidden; animation: scaleIn var(--t-med) var(--ease); } .modal-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; } .modal-head h3 { margin: 0; font-size: 16px; } .modal-body { padding: 18px; color: var(--text-muted); } .modal-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; background: var(--bg-elev-1); } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes scaleIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } } /* ---------------------------------------------------------------- File tree (for bot_files.html) ---------------------------------------------------------------- */ .file-tree { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: calc(var(--topbar-h) + 16px); max-height: calc(100vh - var(--topbar-h) - 32px); display: flex; flex-direction: column; } .file-tree-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-elev-1); } .file-tree-head h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); } .file-tree-list { overflow-y: auto; padding: 6px; flex: 1; font-size: 13px; } .tree-node { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; color: var(--text); cursor: pointer; user-select: none; transition: background var(--t-fast) var(--ease); } .tree-node:hover { background: var(--surface-hover); } .tree-node.active { background: var(--surface-2); color: var(--text); } .tree-node .tree-icon { width: 14px; height: 14px; color: var(--text-faint); flex: 0 0 14px; } .tree-node.active .tree-icon { color: var(--text); } .tree-node .tree-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tree-node .tree-size { color: var(--text-faint); font-size: 11px; } .tree-folder { font-weight: 600; } .tree-children { margin-left: 14px; border-left: 1px dashed var(--border); padding-left: 6px; } .tree-children.collapsed { display: none; } .tree-folder .tree-icon { transition: transform var(--t-fast) var(--ease); } .tree-folder.collapsed .tree-icon { transform: rotate(-90deg); } .tree-empty { padding: 20px 12px; color: var(--text-muted); text-align: center; font-size: 13px; } /* ---------------------------------------------------------------- Code viewer ---------------------------------------------------------------- */ .code-pane { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; display: flex; flex-direction: column; } .code-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-elev-1); border-bottom: 1px solid var(--border); flex-wrap: wrap; } .code-head .crumbs { display: flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 12.5px; flex: 1; min-width: 0; } .code-head .crumbs .seg { font-family: var(--font-mono); color: var(--text); padding: 2px 6px; border-radius: 4px; background: var(--surface-2); } .code-head .crumbs .sep { color: var(--text-faint); } .code-head .meta { display: flex; gap: 6px; font-size: 11.5px; color: var(--text-muted); } .code-body { flex: 1; background: var(--bg); overflow: auto; position: relative; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; } .code-view { display: grid; grid-template-columns: 56px 1fr; min-height: 100%; } .code-view .gutter { background: var(--bg-elev-1); color: var(--text-faint); padding: 12px 6px 12px 0; text-align: right; user-select: none; border-right: 1px solid var(--border); font-size: 11.5px; } .code-view .source { padding: 12px 14px; margin: 0; white-space: pre; color: var(--text); overflow: auto; } .code-view .source code { background: transparent; padding: 0; } .code-editor { width: 100%; min-height: 360px; padding: 12px 14px; background: var(--bg); color: var(--text); border: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; resize: vertical; } .code-empty { display: grid; place-items: center; min-height: 360px; color: var(--text-maint); text-align: center; } .code-empty .ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--primary-soft); color: var(--text); display: grid; place-items: center; } /* ---------------------------------------------------------------- Log pane ---------------------------------------------------------------- */ .log-pane { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 360px; display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; } .log-pane .log-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--border); font-family: var(--font); font-size: 12.5px; } .log-pane pre { margin: 0; padding: 14px 16px; background: var(--bg); overflow: auto; flex: 1; } /* ---------------------------------------------------------------- Strength bar ---------------------------------------------------------------- */ .strength { display: flex; gap: 4px; margin-top: 8px; } .strength-bar { flex: 1; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; } .strength-bar.weak { background: var(--status-error); } .strength-bar.medium { background: var(--status-pending); } .strength-bar.strong { background: var(--status-running); } /* ---------------------------------------------------------------- Syntax tokens (lightweight highlight) ---------------------------------------------------------------- */ .tok-key { color: #c084fc; } .tok-str { color: #86efac; } .tok-num { color: #fbbf24; } .tok-com { color: #6b7280; font-style: italic; } .tok-fn { color: #60a5fa; } .tok-var { color: #f0abfc; } .tok-class { color: #fbbf24; font-weight: 600; } .tok-built { color: #f472b6; } .tok-prop { color: #93c5fd; } .tok-bool { color: #fbbf24; } .tok-key2 { color: #f472b6; } .tok-tag { color: #f87171; } /* ---------------------------------------------------------------- Code highlight helpers used by light theme ---------------------------------------------------------------- */ :root[data-theme="light"] .tok-key { color: #7c3aed; } :root[data-theme="light"] .tok-str { color: #15803d; } :root[data-theme="light"] .tok-num { color: #b45309; } :root[data-theme="light"] .tok-com { color: #9ca3af; } :root[data-theme="light"] .tok-fn { color: #1d4ed8; } :root[data-theme="light"] .tok-var { color: #c026d3; } :root[data-theme="light"] .tok-class { color: #b45309; } :root[data-theme="light"] .tok-built { color: #be185d; } :root[data-theme="light"] .tok-prop { color: #1d4ed8; } :root[data-theme="light"] .tok-bool { color: #b45309; } :root[data-theme="light"] .tok-key2 { color: #be185d; } :root[data-theme="light"] .tok-tag { color: #b91c1c; } /* ---------------------------------------------------------------- File save indicator / binary notice ---------------------------------------------------------------- */ .dirty-badge { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--status-pending); margin-right: 4px; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.16); } .binary-notice { padding: 24px; text-align: center; color: var(--text-muted); } /* ---------------------------------------------------------------- Proxy rows (legacy) ---------------------------------------------------------------- */ .proxy-row { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); } .proxy-row:last-child { border-bottom: 0; } .proxy-row .ico { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); color: var(--text-muted); display: grid; place-items: center; } .proxy-row .ico.ok { background: rgba(74, 222, 128, 0.16); color: var(--status-running); } .proxy-row .ico.down { background: rgba(248, 113, 113, 0.18); color: var(--status-error); } .proxy-row .ico.idle { background: rgba(251, 191, 36, 0.16); color: var(--status-pending); } .proxy-row .body { min-width: 0; } .proxy-row .body .name { font-weight: 600; font-size: 14px; } .proxy-row .body .name a { color: var(--text); } .proxy-row .body .url { color: var(--text-muted); font-size: 12px; font-family: var(--font-mono); } /* ---------------------------------------------------------------- Two-pane split (for bot_files) ---------------------------------------------------------------- */ .split { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; } @media (max-width: 768px) { .split { grid-template-columns: 1fr; } } /* ---------------------------------------------------------------- Misc adjustments ---------------------------------------------------------------- */ .scrim { background: rgba(0, 0, 0, 0.6); } /* ---------------------------------------------------------------- Responsive (sidebar collapses to drawer on narrow viewports) ---------------------------------------------------------------- */ @media (max-width: 1200px) { .stats { grid-template-columns: repeat(2, 1fr); } .bots-grid { grid-template-columns: repeat(2, 1fr); } .featured .info { grid-template-columns: 1fr; gap: 24px; } } @media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); transform: translateX(-100%); box-shadow: var(--shadow-lg); z-index: 50; } .sidebar.is-open { transform: translateX(0); } .menu-toggle { display: grid; } .content { padding: 20px; } .hero h1 { font-size: 32px; } .stats { grid-template-columns: 1fr 1fr; } .bots-grid { grid-template-columns: 1fr; } .search-trigger { display: none; } } @media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }