9508b73293
Categorized link cards for all services across nodes + public domains. Opens in new tabs. Accessible from sidebar navigation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1205 lines
23 KiB
CSS
1205 lines
23 KiB
CSS
/* ===== CSS Variables ===== */
|
|
:root {
|
|
--bg-primary: #0d1117;
|
|
--bg-secondary: #161b22;
|
|
--bg-tertiary: #21262d;
|
|
--bg-card: #1c2128;
|
|
--border: #30363d;
|
|
--text-primary: #e6edf3;
|
|
--text-secondary: #8b949e;
|
|
--accent: #58a6ff;
|
|
--success: #3fb950;
|
|
--danger: #f85149;
|
|
--warning: #d29922;
|
|
--info: #58a6ff;
|
|
|
|
--sidebar-width: 280px;
|
|
--header-height: 56px;
|
|
--log-panel-width: 520px;
|
|
--card-radius: 8px;
|
|
--transition: 0.2s ease;
|
|
}
|
|
|
|
/* ===== Reset & Base ===== */
|
|
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
line-height: 1.5;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* ===== Scrollbar ===== */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--border);
|
|
}
|
|
|
|
/* ===== Header ===== */
|
|
#header {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: var(--header-height);
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 24px;
|
|
z-index: 100;
|
|
}
|
|
|
|
#header h1 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
letter-spacing: -0.3px;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.refresh-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.refresh-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--success);
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.refresh-indicator.paused .refresh-dot {
|
|
background: var(--warning);
|
|
animation: none;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.3; }
|
|
}
|
|
|
|
.last-updated {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* ===== Sidebar ===== */
|
|
#sidebar {
|
|
position: fixed;
|
|
top: var(--header-height);
|
|
left: 0;
|
|
bottom: 0;
|
|
width: var(--sidebar-width);
|
|
background: var(--bg-secondary);
|
|
border-right: 1px solid var(--border);
|
|
overflow-y: auto;
|
|
z-index: 50;
|
|
padding: 12px 0;
|
|
}
|
|
|
|
.sidebar-section {
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.sidebar-section + .sidebar-section {
|
|
border-top: 1px solid var(--border);
|
|
margin-top: 4px;
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.sidebar-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px 16px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sidebar-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: background var(--transition), color var(--transition);
|
|
border: none;
|
|
background: none;
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.sidebar-item:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.sidebar-item.active {
|
|
background: rgba(88, 166, 255, 0.1);
|
|
color: var(--accent);
|
|
border-right: 2px solid var(--accent);
|
|
}
|
|
|
|
.sidebar-icon {
|
|
font-size: 14px;
|
|
width: 18px;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Node items */
|
|
.node-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 7px 16px 7px 20px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.node-item:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.node-item.active {
|
|
background: rgba(88, 166, 255, 0.1);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.health-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.health-dot.healthy {
|
|
background: var(--success);
|
|
box-shadow: 0 0 4px rgba(63, 185, 80, 0.4);
|
|
}
|
|
|
|
.health-dot.unhealthy {
|
|
background: var(--danger);
|
|
box-shadow: 0 0 4px rgba(248, 81, 73, 0.4);
|
|
}
|
|
|
|
.node-name {
|
|
flex: 1;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.node-count {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
background: var(--bg-tertiary);
|
|
padding: 1px 6px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
/* Group items */
|
|
.group-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 7px 16px 7px 20px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.group-item:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.group-item.active {
|
|
background: rgba(88, 166, 255, 0.1);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.group-item .group-name {
|
|
flex: 1;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.group-item .group-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
opacity: 0;
|
|
transition: opacity var(--transition);
|
|
}
|
|
|
|
.group-item:hover .group-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.group-action-btn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
transition: color var(--transition), background var(--transition);
|
|
line-height: 1;
|
|
}
|
|
|
|
.group-action-btn:hover {
|
|
color: var(--text-primary);
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.group-action-btn.delete:hover {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.group-svc-count {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
background: var(--bg-tertiary);
|
|
padding: 1px 6px;
|
|
border-radius: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ===== Main Content ===== */
|
|
#main {
|
|
margin-left: var(--sidebar-width);
|
|
margin-top: var(--header-height);
|
|
padding: 20px 24px;
|
|
min-height: calc(100vh - var(--header-height));
|
|
}
|
|
|
|
/* ===== Toolbar ===== */
|
|
.toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-bottom: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.toolbar-left {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.toolbar-left h2 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.service-count {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
background: var(--bg-tertiary);
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.toolbar-filters {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.filter-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 4px 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
border: 1px solid var(--border);
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.filter-pill:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.filter-pill.active {
|
|
background: rgba(88, 166, 255, 0.15);
|
|
color: var(--accent);
|
|
border-color: rgba(88, 166, 255, 0.3);
|
|
}
|
|
|
|
.filter-pill[data-filter="stopped"].active {
|
|
background: rgba(248, 81, 73, 0.12);
|
|
color: var(--danger);
|
|
border-color: rgba(248, 81, 73, 0.3);
|
|
}
|
|
|
|
.filter-pill[data-filter="running"].active {
|
|
background: rgba(63, 185, 80, 0.12);
|
|
color: var(--success);
|
|
border-color: rgba(63, 185, 80, 0.3);
|
|
}
|
|
|
|
.filter-count {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.toolbar-center {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toolbar-right {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.search-input {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
width: 240px;
|
|
transition: border-color var(--transition);
|
|
}
|
|
|
|
.search-input::placeholder {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.search-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* ===== Service Grid ===== */
|
|
.service-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
/* ===== Service Card ===== */
|
|
.service-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--card-radius);
|
|
padding: 16px;
|
|
transition: border-color var(--transition), box-shadow var(--transition);
|
|
}
|
|
|
|
.service-card:hover {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.15);
|
|
}
|
|
|
|
.service-card.stopped {
|
|
opacity: 0.55;
|
|
border-left: 3px solid var(--danger);
|
|
}
|
|
|
|
.service-card.stopped:hover {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.card-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
word-break: break-all;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.card-swarm-badge {
|
|
font-size: 10px;
|
|
padding: 1px 6px;
|
|
border-radius: 3px;
|
|
background: rgba(88, 166, 255, 0.15);
|
|
color: var(--accent);
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
letter-spacing: 0.5px;
|
|
flex-shrink: 0;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.status-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.status-running .status-dot {
|
|
background: var(--success);
|
|
box-shadow: 0 0 4px rgba(63, 185, 80, 0.5);
|
|
}
|
|
|
|
.status-running {
|
|
color: var(--success);
|
|
}
|
|
|
|
.status-exited .status-dot,
|
|
.status-stopped .status-dot,
|
|
.status-dead .status-dot {
|
|
background: var(--danger);
|
|
}
|
|
|
|
.status-exited,
|
|
.status-stopped,
|
|
.status-dead {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.status-restarting .status-dot {
|
|
background: var(--warning);
|
|
animation: pulse 1s infinite;
|
|
}
|
|
|
|
.status-restarting {
|
|
color: var(--warning);
|
|
}
|
|
|
|
.status-created .status-dot,
|
|
.status-paused .status-dot {
|
|
background: var(--text-secondary);
|
|
}
|
|
|
|
.status-created,
|
|
.status-paused {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.card-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.card-meta-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.card-meta-label {
|
|
flex-shrink: 0;
|
|
min-width: 40px;
|
|
}
|
|
|
|
.card-meta-value {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.card-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-top: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
/* ===== Buttons ===== */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
border: 1px solid transparent;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
white-space: nowrap;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.35;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 4px 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: #4393e6;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.btn-secondary:hover:not(:disabled) {
|
|
background: var(--border);
|
|
}
|
|
|
|
.btn-success {
|
|
background: rgba(63, 185, 80, 0.15);
|
|
color: var(--success);
|
|
border-color: rgba(63, 185, 80, 0.3);
|
|
}
|
|
|
|
.btn-success:hover:not(:disabled) {
|
|
background: rgba(63, 185, 80, 0.25);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: rgba(248, 81, 73, 0.15);
|
|
color: var(--danger);
|
|
border-color: rgba(248, 81, 73, 0.3);
|
|
}
|
|
|
|
.btn-danger:hover:not(:disabled) {
|
|
background: rgba(248, 81, 73, 0.25);
|
|
}
|
|
|
|
.btn-warning {
|
|
background: rgba(210, 153, 34, 0.15);
|
|
color: var(--warning);
|
|
border-color: rgba(210, 153, 34, 0.3);
|
|
}
|
|
|
|
.btn-warning:hover:not(:disabled) {
|
|
background: rgba(210, 153, 34, 0.25);
|
|
}
|
|
|
|
.btn-info {
|
|
background: rgba(88, 166, 255, 0.15);
|
|
color: var(--info);
|
|
border-color: rgba(88, 166, 255, 0.3);
|
|
}
|
|
|
|
.btn-info:hover:not(:disabled) {
|
|
background: rgba(88, 166, 255, 0.25);
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
border-color: transparent;
|
|
}
|
|
|
|
.btn-ghost:hover:not(:disabled) {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-icon {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
padding: 4px 6px;
|
|
border-radius: 4px;
|
|
transition: all var(--transition);
|
|
line-height: 1;
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
color: var(--text-primary);
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
/* Card action buttons */
|
|
.card-action-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 28px;
|
|
font-size: 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
position: relative;
|
|
}
|
|
|
|
.card-action-btn:hover:not(:disabled) {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.card-action-btn:disabled {
|
|
opacity: 0.25;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.card-action-btn.action-start:hover:not(:disabled) {
|
|
border-color: var(--success);
|
|
color: var(--success);
|
|
background: rgba(63, 185, 80, 0.1);
|
|
}
|
|
|
|
.card-action-btn.action-stop:hover:not(:disabled) {
|
|
border-color: var(--danger);
|
|
color: var(--danger);
|
|
background: rgba(248, 81, 73, 0.1);
|
|
}
|
|
|
|
.card-action-btn.action-restart:hover:not(:disabled) {
|
|
border-color: var(--warning);
|
|
color: var(--warning);
|
|
background: rgba(210, 153, 34, 0.1);
|
|
}
|
|
|
|
.card-action-btn.action-pull:hover:not(:disabled) {
|
|
border-color: var(--info);
|
|
color: var(--info);
|
|
background: rgba(88, 166, 255, 0.1);
|
|
}
|
|
|
|
.card-action-btn.action-logs:hover:not(:disabled) {
|
|
border-color: var(--text-secondary);
|
|
color: var(--text-primary);
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
/* Tooltip on action buttons */
|
|
.card-action-btn[title]::after {
|
|
content: attr(title);
|
|
position: absolute;
|
|
bottom: calc(100% + 6px);
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
font-size: 11px;
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.15s;
|
|
border: 1px solid var(--border);
|
|
z-index: 10;
|
|
}
|
|
|
|
.card-action-btn[title]:hover::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Spinning indicator for loading */
|
|
.card-action-btn.loading {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.card-action-btn.loading::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 4px;
|
|
border: 2px solid transparent;
|
|
border-top-color: currentColor;
|
|
border-radius: 50%;
|
|
animation: spin 0.6s linear infinite;
|
|
}
|
|
|
|
.card-action-btn.loading > span {
|
|
visibility: hidden;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* ===== Log Panel ===== */
|
|
.log-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 200;
|
|
}
|
|
|
|
.log-panel {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: var(--log-panel-width);
|
|
background: var(--bg-secondary);
|
|
border-left: 1px solid var(--border);
|
|
z-index: 210;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: translateX(100%);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.log-panel.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.log-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 14px 18px;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.log-header h3 {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.log-close {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.log-content {
|
|
flex: 1;
|
|
overflow: auto;
|
|
padding: 14px 18px;
|
|
font-family: "SF Mono", "Cascadia Code", "Fira Code", "Consolas", monospace;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
color: #c9d1d9;
|
|
background: #010409;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
margin: 0;
|
|
}
|
|
|
|
/* ===== Modals ===== */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
z-index: 300;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
animation: fadeIn 0.15s ease;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.modal {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
width: 560px;
|
|
max-width: 90vw;
|
|
max-height: 80vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
|
|
animation: slideUp 0.2s ease;
|
|
}
|
|
|
|
.modal-sm {
|
|
width: 400px;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from { transform: translateY(20px); opacity: 0; }
|
|
to { transform: translateY(0); opacity: 1; }
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding: 14px 20px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
/* ===== Form ===== */
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 8px 12px;
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
transition: border-color var(--transition);
|
|
}
|
|
|
|
.form-input::placeholder {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* Group service list in modal */
|
|
.group-service-list {
|
|
max-height: 340px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
margin-top: 8px;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.group-service-node-heading {
|
|
padding: 8px 12px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--text-secondary);
|
|
background: var(--bg-tertiary);
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
}
|
|
|
|
.group-service-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.group-service-item:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.group-service-item input[type="checkbox"] {
|
|
accent-color: var(--accent);
|
|
width: 15px;
|
|
height: 15px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.group-service-item.hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* ===== Toasts ===== */
|
|
.toast-container {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
z-index: 400;
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toast {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 16px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
min-width: 280px;
|
|
max-width: 420px;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
|
|
animation: toastIn 0.3s ease;
|
|
border: 1px solid;
|
|
}
|
|
|
|
.toast.toast-success {
|
|
background: rgba(63, 185, 80, 0.12);
|
|
color: var(--success);
|
|
border-color: rgba(63, 185, 80, 0.25);
|
|
}
|
|
|
|
.toast.toast-error {
|
|
background: rgba(248, 81, 73, 0.12);
|
|
color: var(--danger);
|
|
border-color: rgba(248, 81, 73, 0.25);
|
|
}
|
|
|
|
.toast.toast-info {
|
|
background: rgba(88, 166, 255, 0.12);
|
|
color: var(--info);
|
|
border-color: rgba(88, 166, 255, 0.25);
|
|
}
|
|
|
|
.toast.toast-warning {
|
|
background: rgba(210, 153, 34, 0.12);
|
|
color: var(--warning);
|
|
border-color: rgba(210, 153, 34, 0.25);
|
|
}
|
|
|
|
.toast.removing {
|
|
animation: toastOut 0.3s ease forwards;
|
|
}
|
|
|
|
@keyframes toastIn {
|
|
from { transform: translateX(100%); opacity: 0; }
|
|
to { transform: translateX(0); opacity: 1; }
|
|
}
|
|
|
|
@keyframes toastOut {
|
|
from { transform: translateX(0); opacity: 1; }
|
|
to { transform: translateX(100%); opacity: 0; }
|
|
}
|
|
|
|
/* ===== Empty State ===== */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 48px;
|
|
display: block;
|
|
margin-bottom: 12px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.empty-state p {
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* ===== Links Page ===== */
|
|
.links-category {
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
.links-category-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 10px;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.links-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.link-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--card-radius);
|
|
text-decoration: none;
|
|
color: var(--text-primary);
|
|
transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
|
|
}
|
|
|
|
.link-card:hover {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.15);
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.link-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
flex-shrink: 0;
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.link-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.link-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.link-url {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.link-arrow {
|
|
color: var(--text-secondary);
|
|
font-size: 16px;
|
|
flex-shrink: 0;
|
|
transition: color var(--transition), transform var(--transition);
|
|
}
|
|
|
|
.link-card:hover .link-arrow {
|
|
color: var(--accent);
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
/* ===== Responsive ===== */
|
|
@media (max-width: 1200px) {
|
|
.service-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
#sidebar {
|
|
width: 220px;
|
|
}
|
|
#main {
|
|
margin-left: 220px;
|
|
}
|
|
.log-panel {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
#sidebar {
|
|
display: none;
|
|
}
|
|
#main {
|
|
margin-left: 0;
|
|
}
|
|
.service-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.toolbar {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
.toolbar-right {
|
|
margin-left: 0;
|
|
}
|
|
.search-input {
|
|
width: 100%;
|
|
}
|
|
}
|