:root { --bg-primary: #0a0e1a; --bg-secondary: #111627; --bg-card: #1a1f3a; --bg-card-hover: #222845; --bg-input: #0d1225; --border: #2a3158; --border-hover: #3d46a0; --text-primary: #e8eaf0; --text-secondary: #8b90b0; --text-muted: #5a6080; --accent: #6c5ce7; --accent-light: #8b7cf7; --accent-glow: rgba(108, 92, 231, 0.25); --green: #00d4aa; --green-dim: rgba(0, 212, 170, 0.15); --red: #ff4757; --red-dim: rgba(255, 71, 87, 0.15); --yellow: #ffa502; --yellow-dim: rgba(255, 165, 2, 0.15); --blue: #45aaf2; --blue-dim: rgba(69, 170, 242, 0.15); --pink: #fd79a8; --purple: #a29bfe; --radius-sm: 6px; --radius: 10px; --radius-lg: 16px; --shadow: 0 4px 24px rgba(0, 0, 0, 0.3); --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4); --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace; --sidebar-width: 260px; } [data-theme="light"] { --bg-primary: #f0f2f8; --bg-secondary: #ffffff; --bg-card: #ffffff; --bg-card-hover: #f5f7fe; --bg-input: #f0f2f8; --border: #e2e5f0; --border-hover: #6c5ce7; --text-primary: #1a1d2e; --text-secondary: #6b7194; --text-muted: #9ea3c0; --shadow: 0 4px 24px rgba(0, 0, 0, 0.06); --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.08); } *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } html { font-size: 15px; scroll-behavior: smooth; } body { font-family: var(--font); background: var(--bg-primary); color: var(--text-primary); display: flex; min-height: 100vh; overflow: hidden; -webkit-font-smoothing: antialiased; } ::selection { background: var(--accent-glow); color: white; } ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } /* ─── Sidebar ─── */ .sidebar { width: var(--sidebar-width); min-width: var(--sidebar-width); background: var(--bg-secondary); border-right: 1px solid var(--border); display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0; z-index: 100; transition: var(--transition); overflow: hidden; } .sidebar.collapsed { width: 68px; min-width: 68px; } .sidebar.collapsed .logo-text, .sidebar.collapsed .nav-label, .sidebar.collapsed .sidebar-section-label, .sidebar.collapsed .agent-status-text, .sidebar.collapsed .theme-label { display: none; } .sidebar.collapsed .nav-item { justify-content: center; padding: 12px; } .sidebar.collapsed .sidebar-header { justify-content: center; } .sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px; border-bottom: 1px solid var(--border); min-height: 64px; } .logo { display: flex; align-items: center; gap: 10px; } .logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent), var(--pink)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: white; flex-shrink: 0; } .logo-text { font-weight: 700; font-size: 16px; white-space: nowrap; } .sidebar-toggle { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 4px; border-radius: var(--radius-sm); transition: var(--transition); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; } .sidebar-toggle:hover { background: var(--bg-card); color: var(--text-primary); } .sidebar-section { padding: 8px 12px 4px; } .sidebar-section-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 8px 8px 4px; white-space: nowrap; } .sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 8px; } .nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 1px 0; color: var(--text-secondary); text-decoration: none; border-radius: var(--radius); font-size: 13px; font-weight: 500; transition: var(--transition); cursor: pointer; white-space: nowrap; position: relative; } .nav-item:hover { background: var(--bg-card); color: var(--text-primary); } .nav-item.active { background: var(--accent-glow); color: var(--accent-light); } .nav-item.active::before { content: ''; position: absolute; left: -8px; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: var(--accent); border-radius: 0 3px 3px 0; } .nav-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; } .nav-badge { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px; background: var(--accent-glow); color: var(--accent-light); } .sidebar-footer { padding: 12px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; } .agent-status-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; } .agent-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .agent-dot.online { background: var(--green); box-shadow: 0 0 8px var(--green-dim); } .agent-dot.offline { background: var(--red); box-shadow: 0 0 8px var(--red-dim); } .agent-dot.warning { background: var(--yellow); box-shadow: 0 0 8px var(--yellow-dim); } .agent-status-text { color: var(--text-muted); font-size: 11px; white-space: nowrap; } .theme-btn { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: var(--transition); } .theme-btn:hover { background: var(--bg-card-hover); border-color: var(--border-hover); } /* ─── Main Content ─── */ .main-content { flex: 1; display: flex; flex-direction: column; height: 100vh; overflow: hidden; } .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; border-bottom: 1px solid var(--border); min-height: 56px; background: var(--bg-secondary); flex-shrink: 0; } .topbar-left { display: flex; align-items: center; gap: 12px; } .topbar-title { font-size: 16px; font-weight: 600; } .topbar-breadcrumb { font-size: 12px; color: var(--text-muted); } .topbar-right { display: flex; align-items: center; gap: 12px; } .topbar-search { display: flex; align-items: center; gap: 8px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 12px; color: var(--text-muted); font-size: 13px; } .topbar-search input { background: none; border: none; color: var(--text-primary); font-size: 13px; outline: none; width: 180px; } .topbar-search input::placeholder { color: var(--text-muted); } .page-content { flex: 1; overflow-y: auto; padding: 24px 28px; } /* ─── Page Header ─── */ .page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; } .page-header-left {} .page-title { font-size: 22px; font-weight: 700; } .page-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; } /* ─── Cards ─── */ .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; transition: var(--transition); position: relative; } .card:hover { border-color: var(--border-hover); } .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .card-title { font-size: 14px; font-weight: 600; } .stat-card { position: relative; overflow: hidden; padding: 20px; } .stat-card::after { content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 120px; background: radial-gradient(circle, rgba(108,92,231,0.08) 0%, transparent 70%); border-radius: 50%; transform: translate(30%, -30%); } .stat-icon { width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; } .stat-icon.purple { background: var(--accent-glow); color: var(--accent-light); } .stat-icon.green { background: var(--green-dim); color: var(--green); } .stat-icon.blue { background: var(--blue-dim); color: var(--blue); } .stat-icon.yellow { background: var(--yellow-dim); color: var(--yellow); } .stat-icon.red { background: var(--red-dim); color: var(--red); } .stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; } .stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; } .stat-change { font-size: 11px; font-weight: 600; margin-top: 6px; display: inline-flex; align-items: center; gap: 3px; } .stat-change.up { color: var(--green); } .stat-change.down { color: var(--red); } /* ─── Grid ─── */ .grid { display: grid; gap: 16px; } .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } /* ─── Buttons ─── */ .btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--transition); white-space: nowrap; font-family: var(--font); } .btn:hover { background: var(--bg-card-hover); border-color: var(--border-hover); } .btn:active { transform: scale(0.97); } .btn-primary { background: linear-gradient(135deg, var(--accent), #5a4bd1); color: white; border-color: transparent; } .btn-primary:hover { background: linear-gradient(135deg, #7b6df7, #6c5ce7); box-shadow: 0 4px 16px var(--accent-glow); } .btn-danger { background: var(--red); color: white; border-color: transparent; } .btn-danger:hover { box-shadow: 0 4px 16px var(--red-dim); } .btn-ghost { background: transparent; border-color: transparent; color: var(--text-secondary); } .btn-ghost:hover { background: var(--bg-card); color: var(--text-primary); } .btn-sm { padding: 5px 10px; font-size: 12px; } .btn-xs { padding: 3px 8px; font-size: 11px; } .btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; } .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } .btn-group { display: flex; gap: 6px; } /* ─── Tables ─── */ .table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); } table { width: 100%; border-collapse: collapse; } th, td { padding: 10px 14px; text-align: left; font-size: 13px; } th { background: var(--bg-secondary); color: var(--text-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); } td { border-bottom: 1px solid var(--border); } tr:last-child td { border-bottom: none; } tr:hover td { background: var(--bg-card-hover); } /* ─── Forms ─── */ .form-group { margin-bottom: 16px; } .form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; } .form-input, .form-select, .form-textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-input); color: var(--text-primary); font-size: 13px; font-family: var(--font); transition: var(--transition); outline: none; } .form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } .form-textarea { min-height: 100px; resize: vertical; font-family: var(--font-mono); font-size: 12px; } .form-hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .form-error { color: var(--red); font-size: 12px; margin-top: 3px; } /* ─── Badges ─── */ .badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.3px; } .badge-success { background: var(--green-dim); color: var(--green); } .badge-warning { background: var(--yellow-dim); color: var(--yellow); } .badge-danger { background: var(--red-dim); color: var(--red); } .badge-info { background: var(--blue-dim); color: var(--blue); } .badge-accent { background: var(--accent-glow); color: var(--accent-light); } /* ─── Skill Card ─── */ .skill-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; transition: var(--transition); cursor: pointer; display: flex; flex-direction: column; } .skill-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108, 92, 231, 0.12); } .skill-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .skill-card-icon { width: 36px; height: 36px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; background: var(--accent-glow); color: var(--accent-light); } .skill-card-name { font-weight: 600; font-size: 14px; } .skill-card-desc { font-size: 12px; color: var(--text-secondary); flex: 1; line-height: 1.4; } .skill-card-footer { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); } /* ─── Chart ─── */ .chart-container { position: relative; height: 240px; width: 100%; margin: 12px 0; } /* ─── Loading ─── */ .loading { display: flex; align-items: center; justify-content: center; padding: 60px; color: var(--text-muted); gap: 10px; flex-direction: column; } .loading-spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: var(--radius-sm); } @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* ─── Toast ─── */ .toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; } .toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 500; animation: toastSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1); max-width: 400px; backdrop-filter: blur(12px); } .toast-icon { font-size: 16px; flex-shrink: 0; } .toast.success { border-left: 3px solid var(--green); } .toast.error { border-left: 3px solid var(--red); } .toast.info { border-left: 3px solid var(--blue); } .toast.warning { border-left: 3px solid var(--yellow); } @keyframes toastSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } /* ─── Modal ─── */ .modal-overlay { position: fixed; inset: 0; z-index: 5000; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); animation: fadeIn 0.2s ease; } .modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 90%; max-width: 560px; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); } .modal-title { font-size: 16px; font-weight: 700; } .modal-close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 4px; border-radius: var(--radius-sm); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; } .modal-close:hover { background: var(--bg-card-hover); color: var(--text-primary); } .modal-body { padding: 20px; } .modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); } @keyframes modalSlideUp { from { transform: translateY(20px) scale(0.97); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* ─── Empty State ─── */ .empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 12px; } .empty-state-icon { font-size: 48px; opacity: 0.4; } .empty-state-title { font-size: 16px; font-weight: 600; } .empty-state-desc { font-size: 13px; max-width: 360px; } /* ─── Code / Pre ─── */ code, pre { font-family: var(--font-mono); font-size: 12px; } pre { background: var(--bg-primary); padding: 14px; border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--border); line-height: 1.5; color: var(--text-secondary); } /* ─── Tabs ─── */ .tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; } .tab { padding: 10px 16px; font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; transition: var(--transition); background: none; border-top: none; border-left: none; border-right: none; font-family: var(--font); } .tab:hover { color: var(--text-primary); } .tab.active { color: var(--accent-light); border-bottom-color: var(--accent); } /* ─── Event / Activity Items ─── */ .event-list { display: flex; flex-direction: column; gap: 0; } .event-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); } .event-item:last-child { border-bottom: none; } .event-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; } .event-content { flex: 1; } .event-title { font-size: 13px; font-weight: 500; } .event-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; } .event-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; } /* ─── Status Indicators ─── */ .status-indicator { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; } .status-indicator.online { background: var(--green-dim); color: var(--green); } .status-indicator.offline { background: var(--red-dim); color: var(--red); } .status-indicator.warning { background: var(--yellow-dim); color: var(--yellow); } /* ─── Agent Status Cards ─── */ .agent-card-list { display: flex; gap: 10px; flex-wrap: wrap; } .agent-card { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); flex: 1; min-width: 140px; transition: var(--transition); } .agent-card:hover { border-color: var(--border-hover); } /* ─── Page Transitions ─── */ .page-enter { animation: pageIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); } @keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* ─── Responsive ─── */ @media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .sidebar:not(.collapsed) { width: 68px; min-width: 68px; } .sidebar:not(.collapsed) .logo-text, .sidebar:not(.collapsed) .nav-label, .sidebar:not(.collapsed) .sidebar-section-label, .sidebar:not(.collapsed) .agent-status-text, .sidebar:not(.collapsed) .theme-label { display: none; } .sidebar:not(.collapsed) .nav-item { justify-content: center; padding: 12px; } .sidebar:not(.collapsed) .sidebar-header { justify-content: center; } .topbar-search { display: none; } } @media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .page-content { padding: 16px; } .form-row { grid-template-columns: 1fr; } } /* ─── Quick Run Input ─── */ .quick-run { display: flex; gap: 8px; align-items: center; } .quick-run input { flex: 1; } /* ─── Progress Bar ─── */ .progress-bar { width: 100%; height: 4px; background: var(--bg-primary); border-radius: 2px; overflow: hidden; } .progress-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--pink)); transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); } /* ─── Switch / Toggle ─── */ .switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; } .switch input { opacity: 0; width: 0; height: 0; } .switch-slider { position: absolute; cursor: pointer; inset: 0; background: var(--bg-input); border-radius: 11px; border: 1px solid var(--border); transition: var(--transition); } .switch-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; bottom: 2px; background: var(--text-muted); border-radius: 50%; transition: var(--transition); } .switch input:checked + .switch-slider { background: var(--accent-glow); border-color: var(--accent); } .switch input:checked + .switch-slider::before { transform: translateX(18px); background: var(--accent); } /* ─── Divider ─── */ .divider { height: 1px; background: var(--border); margin: 16px 0; } /* ─── Flex helpers ─── */ .flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .text-muted { color: var(--text-muted); } .text-sm { font-size: 12px; } .text-xs { font-size: 11px; } .font-mono { font-family: var(--font-mono); } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }