/* ═══════════════════════════════════════════════════════════ Commander AI Lab — Global Design System Dark & Polished · Premium Dashboard Aesthetic ═══════════════════════════════════════════════════════════ */ /* ── Reset ──────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } /* ── Design Tokens ──────────────────────────────────────── */ :root { /* Surfaces — layered dark with subtle warmth */ --bg: #0c0e14; --surface-0: #12141c; --surface-1: #171a24; --surface-2: #1c1f2b; --surface-3: #222533; --surface-hover: #252839; /* Borders */ --border: #2a2d3a; --border-subtle: #1e2130; --border-focus: #4a6fa5; /* Text */ --text: #e1e4eb; --text-secondary:#8b90a0; --text-tertiary: #5c6070; --text-inverse: #0c0e14; /* Accent — cool blue with subtle depth */ --accent: #5b9ef0; --accent-hover: #7ab4ff; --accent-dim: rgba(91, 158, 240, 0.12); --accent-glow: rgba(91, 158, 240, 0.25); /* Semantic */ --success: #4ade80; --success-dim: rgba(74, 222, 128, 0.12); --warning: #fbbf24; --warning-dim: rgba(251, 191, 36, 0.12); --error: #f87171; --error-dim: rgba(248, 113, 113, 0.12); --purple: #a78bfa; --purple-dim: rgba(167, 139, 250, 0.12); --gold: #fcd34d; /* Radius */ --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px; /* Shadows */ --shadow-sm: 0 1px 3px rgba(0,0,0,0.3); --shadow-md: 0 4px 16px rgba(0,0,0,0.35); --shadow-lg: 0 12px 40px rgba(0,0,0,0.45); --shadow-glow: 0 0 20px var(--accent-dim); /* Transitions */ --ease: cubic-bezier(0.16, 1, 0.3, 1); --duration: 180ms; /* Typography */ --font: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --font-display: 'Barlow Condensed', 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace; /* Spacing scale */ --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; /* Layout */ --content-max: 1280px; --sidebar-width: 280px; --nav-height: 56px; } /* ── Base ───────────────────────────────────────────────── */ html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; } body { min-height: 100vh; font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--text); background: var(--bg); } h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: #fff; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; } h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 16px; } a { color: var(--accent); text-decoration: none; transition: color var(--duration) var(--ease); } a:hover { color: var(--accent-hover); } img, svg { display: block; max-width: 100%; } button { cursor: pointer; font: inherit; } input, select, textarea { font: inherit; color: inherit; } table { border-collapse: collapse; width: 100%; } ::selection { background: var(--accent-dim); color: #fff; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); } /* ── Scrollbar ──────────────────────────────────────────── */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); } /* ── Navigation ─────────────────────────────────────────── */ .nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; height: var(--nav-height); padding: 0 var(--sp-6); background: rgba(12, 14, 20, 0.85); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid var(--border-subtle); } .nav-brand { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--font-display); font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; margin-right: var(--sp-8); } .nav-brand svg { width: 28px; height: 28px; flex-shrink: 0; } .nav-links { display: flex; align-items: center; gap: var(--sp-1); overflow-x: auto; scrollbar-width: none; } .nav-links::-webkit-scrollbar { display: none; } .nav-links a { display: flex; align-items: center; gap: var(--sp-2); padding: 6px 12px; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-secondary); border-radius: var(--radius-sm); white-space: nowrap; transition: all var(--duration) var(--ease); text-decoration: none; } .nav-links a:hover { color: var(--text); background: var(--surface-2); } .nav-links a.active { color: #fff; background: var(--accent-dim); } .nav-links a .nav-icon { width: 16px; height: 16px; opacity: 0.7; } .nav-links a.active .nav-icon, .nav-links a:hover .nav-icon { opacity: 1; } /* ── Page Layout ────────────────────────────────────────── */ .page { max-width: var(--content-max); margin: 0 auto; padding: var(--sp-8) var(--sp-6); } .page-header { margin-bottom: var(--sp-8); } .page-header h1 { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: 0.005em; text-transform: uppercase; margin-bottom: var(--sp-2); } .page-header p { color: var(--text-secondary); font-size: 15px; } /* ── Cards / Panels ─────────────────────────────────────── */ .panel { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-6); margin-bottom: var(--sp-6); transition: border-color var(--duration) var(--ease); } .panel:hover { border-color: var(--border-focus); } .panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); } .panel-header h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; } .panel-header .badge { font-family: var(--font-display); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.05em; } /* ── Stat Cards ─────────────────────────────────────────── */ .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-6); } .stat-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-5); transition: all var(--duration) var(--ease); } .stat-card:hover { border-color: var(--border-focus); transform: translateY(-1px); box-shadow: var(--shadow-md); } .stat-label { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-2); } .stat-value { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; } .stat-sub { font-size: 12px; color: var(--text-tertiary); margin-top: var(--sp-1); } /* ── Buttons ────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: 8px 18px; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: all var(--duration) var(--ease); white-space: nowrap; line-height: 1.4; } .btn-primary { background: var(--accent); color: var(--text-inverse); } .btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 14px var(--accent-glow); transform: translateY(-1px); } .btn-primary:active { transform: translateY(0); } .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; } .btn-secondary { background: var(--surface-3); color: var(--text); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--surface-hover); border-color: var(--text-tertiary); } .btn-ghost { background: transparent; color: var(--text-secondary); padding: 6px 12px; } .btn-ghost:hover { color: var(--text); background: var(--surface-2); } .btn-success { background: var(--success); color: var(--text-inverse); } .btn-success:hover { box-shadow: 0 4px 14px var(--success-dim); } .btn-purple { background: var(--purple); color: var(--text-inverse); } .btn-purple:hover { box-shadow: 0 4px 14px var(--purple-dim); } .btn-danger { background: var(--error); color: #fff; } .btn-danger:hover { box-shadow: 0 4px 14px var(--error-dim); } .btn-sm { padding: 5px 12px; font-size: 12px; } .btn-lg { padding: 12px 24px; font-size: 15px; } .btn-icon-only { padding: 8px; width: 36px; height: 36px; } /* ── Forms ──────────────────────────────────────────────── */ .form-group { display: flex; flex-direction: column; gap: var(--sp-2); } .form-label { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; } .form-input, .form-select, .form-textarea { width: 100%; padding: 9px 14px; font-size: 14px; color: var(--text); background: var(--surface-0); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: all var(--duration) var(--ease); } .form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); outline: none; } .form-input::placeholder, .form-textarea::placeholder { color: var(--text-tertiary); } .form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6070' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; } .form-textarea { resize: vertical; min-height: 100px; } .form-checkbox { display: flex; align-items: center; gap: var(--sp-2); font-size: 13px; color: var(--text-secondary); cursor: pointer; } .form-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; } .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-4); } /* ── Progress Bar ───────────────────────────────────────── */ .progress-container { margin-top: var(--sp-4); padding: var(--sp-4); background: var(--surface-0); border-radius: var(--radius-md); border: 1px solid var(--border-subtle); } .progress-header { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); } .progress-label { font-size: 13px; font-weight: 500; color: var(--text); } .progress-track { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; } .progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); border-radius: 3px; transition: width 0.3s var(--ease); } .progress-detail { margin-top: var(--sp-2); font-size: 12px; font-family: var(--font-mono); color: var(--text-tertiary); line-height: 1.6; } /* ── Phase Badge ────────────────────────────────────────── */ .badge-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.05em; } .badge-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; } .badge-idle { background: var(--surface-3); color: var(--text-secondary); } .badge-idle::before { background: var(--text-tertiary); } .badge-running { background: var(--accent-dim); color: var(--accent); } .badge-running::before { background: var(--accent); animation: pulse-dot 1.5s ease-in-out infinite; } .badge-success { background: var(--success-dim); color: var(--success); } .badge-success::before { background: var(--success); } .badge-error { background: var(--error-dim); color: var(--error); } .badge-error::before { background: var(--error); } .badge-warning { background: var(--warning-dim); color: var(--warning); } .badge-warning::before { background: var(--warning); } @keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } /* ── Empty State ────────────────────────────────────────── */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--sp-12) var(--sp-6); text-align: center; color: var(--text-tertiary); } .empty-state svg { width: 48px; height: 48px; margin-bottom: var(--sp-4); opacity: 0.3; } .empty-state p { font-size: 14px; margin-bottom: var(--sp-3); } /* ── Tables ─────────────────────────────────────────────── */ .data-table { width: 100%; border-collapse: collapse; font-size: 13px; } .data-table thead th { text-align: left; padding: var(--sp-3) var(--sp-4); font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); background: var(--surface-0); } .data-table tbody td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border-subtle); vertical-align: middle; } .data-table tbody tr:hover { background: var(--surface-2); } .data-table tbody tr:last-child td { border-bottom: none; } /* ── Tags ───────────────────────────────────────────────── */ .tag { display: inline-flex; align-items: center; padding: 2px 8px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; border-radius: var(--radius-sm); white-space: nowrap; } .tag-blue { background: var(--accent-dim); color: var(--accent); } .tag-green { background: var(--success-dim); color: var(--success); } .tag-yellow { background: var(--warning-dim); color: var(--warning); } .tag-red { background: var(--error-dim); color: var(--error); } .tag-purple { background: var(--purple-dim); color: var(--purple); } /* ── Toast / Notification ───────────────────────────────── */ .toast { position: fixed; bottom: var(--sp-6); right: var(--sp-6); padding: var(--sp-3) var(--sp-5); background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 13px; color: var(--text); z-index: 1000; animation: toast-in 0.3s var(--ease); } .toast-success { border-left: 3px solid var(--success); } .toast-error { border-left: 3px solid var(--error); } .toast-warning { border-left: 3px solid var(--warning); } @keyframes toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } } /* ── Loading Spinner ────────────────────────────────────── */ .spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ── Divider ────────────────────────────────────────────── */ .divider { height: 1px; background: var(--border); margin: var(--sp-5) 0; } /* ── Utility Classes ────────────────────────────────────── */ .hidden { display: none !important; } .text-accent { color: var(--accent); } .text-success { color: var(--success); } .text-warning { color: var(--warning); } .text-error { color: var(--error); } .text-muted { color: var(--text-secondary); } .text-faint { color: var(--text-tertiary); } .text-mono { font-family: var(--font-mono); } .text-sm { font-size: 12px; } .text-xs { font-size: 11px; } .font-bold { font-weight: 700; } .text-center { text-align: center; } .text-right { text-align: right; } .mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); } .mb-2 { margin-bottom: var(--sp-2); } .mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); } .gap-2 { gap: var(--sp-2); } .gap-4 { gap: var(--sp-4); } .flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .flex-1 { flex: 1; } .grid { display: grid; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; } /* ── Responsive ─────────────────────────────────────────── */ @media (max-width: 768px) { .page { padding: var(--sp-5) var(--sp-4); } .nav { padding: 0 var(--sp-4); } .nav-brand { margin-right: var(--sp-4); font-size: 13px; } .stat-grid { grid-template-columns: repeat(2, 1fr); } .form-row { grid-template-columns: 1fr; } } @media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } } /* ═══════════════════════════════════════════════════════════ PREMIUM UPGRADE LAYER ═══════════════════════════════════════════════════════════ */ /* ── Ambient background glow (body) ─────────────────────── */ body { background-image: radial-gradient(ellipse 80% 50% at 10% -10%, rgba(91,158,240,0.07) 0%, transparent 60%), radial-gradient(ellipse 60% 40% at 90% 110%, rgba(167,139,250,0.05) 0%, transparent 60%); background-attachment: fixed; } /* ── Page title: subtle gradient text ───────────────────── */ .page-header h1 { background: linear-gradient(135deg, #fff 60%, rgba(91,158,240,0.85) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* ── Nav: stronger glass + accent underline ─────────────── */ .nav { background: rgba(9,11,16,0.80); backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8); box-shadow: 0 1px 0 rgba(91,158,240,0.08), 0 4px 24px rgba(0,0,0,0.3); border-bottom-color: rgba(255,255,255,0.06); } .nav-brand svg { filter: drop-shadow(0 0 8px rgba(91,158,240,0.4)); } .nav-links a.active { box-shadow: inset 0 0 0 1px rgba(91,158,240,0.2); } /* ── Panels: gradient border on hover ───────────────────── */ .panel { position: relative; transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); } .panel::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg); padding: 1px; background: linear-gradient(135deg, rgba(91,158,240,0.18), transparent 50%, rgba(167,139,250,0.1)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0; transition: opacity var(--duration) var(--ease); } .panel:hover::before { opacity: 1; } .panel:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(91,158,240,0.08); } /* ── Stat cards: gradient surface + shimmer top edge ─────── */ .stat-card { position: relative; background: linear-gradient(145deg, var(--surface-2), var(--surface-1)); overflow: hidden; } .stat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent); pointer-events: none; } .stat-card:hover { box-shadow: var(--shadow-md), 0 0 20px rgba(91,158,240,0.08); transform: translateY(-2px); } /* ── Buttons: gradient fills + inner highlight ───────────── */ .btn { position: relative; overflow: hidden; } .btn::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(to bottom, rgba(255,255,255,0.07), transparent); border-radius: inherit; pointer-events: none; } .btn-primary { background: linear-gradient(135deg, var(--accent), #4a8de0); box-shadow: 0 2px 8px rgba(91,158,240,0.25); } .btn-primary:hover { background: linear-gradient(135deg, var(--accent-hover), var(--accent)); box-shadow: 0 4px 20px rgba(91,158,240,0.4); } .btn-success { background: linear-gradient(135deg, var(--success), #38c46c); box-shadow: 0 2px 8px rgba(74,222,128,0.2); } .btn-success:hover { box-shadow: 0 4px 20px rgba(74,222,128,0.4); transform: translateY(-1px); } .btn-purple { background: linear-gradient(135deg, var(--purple), #9171f0); box-shadow: 0 2px 8px rgba(167,139,250,0.2); } .btn-purple:hover { box-shadow: 0 4px 20px rgba(167,139,250,0.4); transform: translateY(-1px); } /* ── Tags: subtle colored border ────────────────────────── */ .tag-blue { border: 1px solid rgba(91,158,240,0.25); } .tag-green { border: 1px solid rgba(74,222,128,0.25); } .tag-yellow { border: 1px solid rgba(251,191,36,0.25); } .tag-red { border: 1px solid rgba(248,113,113,0.25); } .tag-purple { border: 1px solid rgba(167,139,250,0.25); } /* ── Progress fill: glow ─────────────────────────────────── */ .progress-fill { box-shadow: 0 0 8px rgba(91,158,240,0.5); } /* ── Badge running: glow dot ─────────────────────────────── */ .badge-running { box-shadow: 0 0 12px rgba(91,158,240,0.15); } .badge-running::before { box-shadow: 0 0 6px var(--accent); } /* ── Toast: glassmorphism + colored glow ─────────────────── */ .toast { backdrop-filter: blur(12px); } .toast-success { box-shadow: var(--shadow-lg), 0 0 20px rgba(74,222,128,0.1); } .toast-error { box-shadow: var(--shadow-lg), 0 0 20px rgba(248,113,113,0.1); } /* ── Divider: fade-out gradient ──────────────────────────── */ .divider { background: linear-gradient(90deg, transparent, var(--border), transparent); } /* ── Inputs: inset shadow for depth ─────────────────────── */ .form-input, .form-select, .form-textarea { box-shadow: inset 0 1px 3px rgba(0,0,0,0.25); } .form-input:focus, .form-select:focus, .form-textarea:focus { box-shadow: 0 0 0 3px var(--accent-dim), inset 0 1px 3px rgba(0,0,0,0.1); } /* ══════════════════════════════════════════════════════════════ Tooltip System (.tip-icon + data-tip) Shared across all pages — do not duplicate in page-specific CSS ══════════════════════════════════════════════════════════════ */ .tip-icon { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: var(--surface-3); color: var(--text-secondary); font-size: 10px; font-weight: 700; font-style: normal; cursor: default; position: relative; vertical-align: middle; margin-left: 4px; flex-shrink: 0; transition: background 0.15s, color 0.15s; user-select: none; } .tip-icon:hover { background: var(--accent-dim); color: var(--accent); } .tip-icon::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--surface-0, #1a1a2e); color: var(--text, #e0e0e0); border: 1px solid var(--border, #333); border-radius: var(--radius-md, 6px); padding: 8px 12px; font-size: 12px; font-weight: 400; line-height: 1.5; white-space: normal; width: 240px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); pointer-events: none; opacity: 0; transition: opacity 0.15s ease; z-index: 1000; text-align: left; text-transform: none; letter-spacing: 0; } .tip-icon::before { content: ''; position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--border, #333); pointer-events: none; opacity: 0; transition: opacity 0.15s ease; z-index: 1001; } .tip-icon:hover::after, .tip-icon:hover::before { opacity: 1; } .tip-icon.tip-below::after { bottom: auto; top: calc(100% + 8px); } .tip-icon.tip-below::before { bottom: auto; top: calc(100% + 3px); border-top-color: transparent; border-bottom-color: var(--border, #333); }