/* ==========================================================================
   Klever Node Hub - ProxCenter-Inspired Dark Theme
   Mobile-first responsive design | No build tools | Raw CSS
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* Backgrounds */
    --bg-primary: #060b13;
    --bg-secondary: #0a1020;
    --bg-tertiary: #0f172a;
    --bg-card: #0d1525;
    --bg-card-hover: #111c31;
    --bg-input: #09111f;
    --bg-sidebar: #070d18;

    /* Accent */
    --accent: #f59e0b;
    --accent-hover: #ffb74d;
    --accent-muted: rgba(245, 158, 11, 0.18);

    /* Borders */
    --border: rgba(123, 146, 191, 0.16);
    --border-hover: rgba(160, 184, 230, 0.28);

    /* Text */
    --text-primary: #d9dfeb;
    --text-secondary: #94a0ba;
    --text-muted: #66738f;
    --text-heading: #f6f8fc;

    /* Status colors */
    --success: #57d46b;
    --success-bg: rgba(87, 212, 107, 0.12);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.14);
    --error: #ff6b5d;
    --error-bg: rgba(255, 107, 93, 0.14);
    --info: #57b8ff;
    --info-bg: rgba(87, 184, 255, 0.12);

    /* Layout */
    --sidebar-width: 228px;

    /* Radii */
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    /* Shadows */
    --shadow-sm: 0 10px 24px rgba(2, 6, 18, 0.24);
    --shadow: 0 18px 40px rgba(2, 6, 18, 0.32);
    --shadow-lg: 0 28px 64px rgba(2, 6, 18, 0.42);
    --shadow-glow: 0 0 24px rgba(245, 158, 11, 0.18);

    /* Transitions */
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.08), transparent 24%),
        radial-gradient(circle at top right, rgba(87, 184, 255, 0.06), transparent 22%),
        linear-gradient(180deg, #07101d 0%, #050a13 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.55;
    font-size: 14px;
    font-weight: 400;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.app-top-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 26px;
    padding: 4px 12px;
    background: linear-gradient(90deg, #e98a00 0%, #f5a311 45%, #d88707 100%);
    color: #281500;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
}

/* ==========================================================================
   Custom Scrollbars
   ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.app {
    display: flex;
    min-height: 100vh;
    padding-top: 26px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, rgba(11, 16, 31, 0.98) 0%, rgba(6, 11, 22, 1) 100%);
    border-right: 1px solid rgba(93, 111, 145, 0.18);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.015);
    flex-shrink: 0;
    position: fixed;
    top: 26px;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.sidebar.open {
    transform: translateX(0);
}

/* Sidebar header */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.sidebar-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffb648 0%, #f08a00 100%);
    box-shadow: 0 0 0 1px rgba(255, 206, 129, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-logo svg {
    width: 15px;
    height: 15px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Sidebar sections */
.sidebar-section {
    padding: 10px 0 0;
}

.sidebar-section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #6f7b96;
    white-space: nowrap;
}

.sidebar-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

/* Sidebar nav items */
.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0 10px;
}

.sidebar-nav-item {
    margin: 3px 0;
}

.sidebar-nav a,
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    border-radius: 999px;
    border: 1px solid transparent;
}

.sidebar-nav a svg,
.sidebar-nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.82;
}

.sidebar-nav a:hover,
.sidebar-nav-link:hover {
    background: rgba(255, 255, 255, 0.028);
    border-color: rgba(255, 255, 255, 0.025);
    color: #e8eefb;
    text-decoration: none;
}

.sidebar-nav a:hover svg,
.sidebar-nav-link:hover svg {
    opacity: 0.9;
}

.sidebar-nav a.active,
.sidebar-nav-link.active {
    background: linear-gradient(135deg, #f5a11a 0%, #e98900 100%);
    color: #251400;
    font-weight: 800;
    text-decoration: none;
    border-color: rgba(255, 203, 120, 0.3);
    box-shadow: 0 10px 18px rgba(233, 137, 0, 0.24);
}

.sidebar-nav a.active svg,
.sidebar-nav-link.active svg {
    opacity: 1;
    color: #251400;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: auto;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.015);
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.main-content {
    flex: 1;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Page Header Bar */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(8, 14, 28, 0.88);
    border-bottom: 1px solid rgba(123, 146, 191, 0.16);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
    gap: 16px;
    min-height: 64px;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.page-header-left svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.page-header-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-heading);
}

.page-header-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 4px;
}

.page-header-version {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.6;
    margin-left: 8px;
}

.page-header-center {
    flex: 1 1 460px;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.page-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, 420px);
}

.page-search svg {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.page-search-input {
    width: 100%;
    min-height: 40px;
    padding: 0 16px 0 40px;
    border-radius: 999px;
    border: 1px solid rgba(129, 154, 198, 0.16);
    background: rgba(6, 12, 24, 0.92);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.page-search-input:focus {
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
    background: rgba(8, 15, 29, 0.98);
}

.page-search-input::placeholder {
    color: var(--text-muted);
}

.page-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-header-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(98, 212, 112, 0.18);
    background: rgba(14, 33, 19, 0.6);
    color: #79e283;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.page-header-icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.page-header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.page-header-icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Page body (scrollable content area) */
.page-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 28px;
}

/* ==========================================================================
   Top Bar (Mobile)
   ========================================================================== */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    margin: -16px -16px 16px;
}

.topbar h1 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.hamburger {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Overlay / Backdrop
   ========================================================================== */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 99;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    background:
        linear-gradient(180deg, rgba(14, 22, 38, 0.98) 0%, rgba(10, 17, 30, 0.98) 100%);
    border: 1px solid rgba(123, 146, 191, 0.16);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.card-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
}

.card-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-heading);
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* ==========================================================================
   Server Rows (full-width list items — compact datacenter style)
   ========================================================================== */

.server-table-head,
.server-row-grid {
    display: grid;
    grid-template-columns: minmax(220px, 2.2fr) minmax(120px, 1.25fr) 88px 72px minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) 96px 44px;
    align-items: center;
    gap: 12px;
}

.server-table-head {
    padding: 11px 18px;
    border-top: 1px solid rgba(123, 146, 191, 0.14);
    border-bottom: 1px solid rgba(123, 146, 191, 0.14);
    background: rgba(255, 255, 255, 0.018);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.server-table-head-cell {
    min-width: 0;
}

.server-table-head-status,
.server-table-head-actions {
    text-align: right;
}

.server-row {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(123, 146, 191, 0.1);
    padding: 11px 18px;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.server-row:hover {
    background: var(--bg-card-hover);
    text-decoration: none;
}

.server-row:hover * {
    text-decoration: none;
}

.server-row:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.server-cell {
    min-width: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.server-cell-server {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.server-row-name {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-row-sub-inline {
    min-width: 0;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-cell-status {
    display: flex;
    justify-content: flex-end;
}

.server-cell-actions {
    display: flex;
    justify-content: flex-end;
}

.server-cell-metric {
    min-width: 0;
}

.server-metric {
    position: relative;
    height: 22px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(123, 146, 191, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.server-metric-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: 7px;
    opacity: 0.95;
}

.server-metric-value {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    color: var(--text-primary);
}

.node-table-head,
.node-row-grid {
    display: grid;
    align-items: center;
    gap: 10px;
}

.node-table-head-overview,
.node-row-grid-overview {
    grid-template-columns: 28px minmax(100px, 1.2fr) minmax(80px, 1fr) 68px 76px 82px 86px 68px minmax(56px, 0.7fr) minmax(90px, 0.9fr) 72px 40px;
}

.node-table-head-server,
.node-row-grid-server {
    grid-template-columns: minmax(180px, 1.7fr) 82px 96px 92px minmax(118px, 0.95fr) minmax(150px, 1.15fr) minmax(92px, 0.8fr) 64px 92px 40px;
}

.node-table-head {
    padding: 11px 18px;
    border-top: 1px solid rgba(123, 146, 191, 0.14);
    border-bottom: 1px solid rgba(123, 146, 191, 0.14);
    background: rgba(255, 255, 255, 0.018);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.node-table-head-cell {
    min-width: 0;
}

.node-table-head-status,
.node-table-head-actions {
    text-align: right;
}

.node-row {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(123, 146, 191, 0.1);
    padding: 11px 18px;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.node-row:hover {
    background: var(--bg-card-hover);
    text-decoration: none;
}

.node-row:hover * {
    text-decoration: none;
}

.node-row:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.node-table-scroll {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

.node-cell {
    min-width: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.node-cell-primary {
    display: flex;
    align-items: center;
    min-width: 0;
}

.node-row-name {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
}

.node-rename-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 0 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.node-row:hover .node-rename-btn,
.node-row-grid:hover .node-rename-btn {
    opacity: 0.7;
}

.node-rename-btn:hover {
    opacity: 1 !important;
    color: var(--accent);
    overflow: hidden;
    text-overflow: ellipsis;
}

.node-cell-mono {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 12px;
    color: var(--text-primary);
}

.node-cell-status,
.node-cell-actions {
    display: flex;
    justify-content: flex-end;
}

.node-cell-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-cell-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}

.update-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    margin: 0 24px 0;
    font-size: 13px;
    color: var(--text-primary);
}

.update-banner.hidden {
    display: none;
}

.update-banner-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
}

.update-banner-link:hover {
    text-decoration: underline;
}

.update-banner-btn {
    margin-left: auto;
    padding: 5px 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.update-banner-btn:hover {
    opacity: 0.9;
}

.update-banner-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.update-docker-hint {
    font-family: monospace;
    font-size: 12px;
    background: var(--bg-main);
    padding: 3px 8px;
    border-radius: 3px;
    color: var(--text-secondary);
    margin-left: auto;
    user-select: all;
}

.update-banner-dismiss {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.batch-action-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.batch-action-bar.active {
    border-color: var(--accent);
}

.batch-action-bar:not(.active) .btn {
    opacity: 0.4;
    pointer-events: none;
}

.batch-action-bar .batch-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 8px;
}

@media (max-width: 1320px) {
    .node-table-head-server,
    .node-row-grid-server {
        grid-template-columns: minmax(180px, 1.7fr) 82px 96px 92px minmax(118px, 0.95fr) minmax(150px, 1.15fr) 64px 92px 40px;
    }

    .node-table-head-server > :nth-child(7),
    .node-row-grid-server > :nth-child(7) {
        display: none;
    }
}

@media (max-width: 1580px) {
    /* Hide Nonce (7th child) */
    .node-table-head-overview,
    .node-row-grid-overview {
        grid-template-columns: 28px minmax(140px, 1.8fr) minmax(90px, 1.05fr) 72px 72px 90px 82px minmax(90px, 0.95fr) minmax(120px, 1.15fr) 82px 40px;
    }

    .node-table-head-overview > :nth-child(7),
    .node-row-grid-overview > :nth-child(7) {
        display: none;
    }
}

@media (max-width: 1380px) {
    /* Also hide Version (6th child) and Role (5th child) */
    .node-table-head-overview,
    .node-row-grid-overview {
        grid-template-columns: 28px minmax(140px, 1.8fr) minmax(90px, 1.05fr) 72px 82px minmax(90px, 0.95fr) minmax(120px, 1.15fr) 82px 40px;
    }

    .node-table-head-overview > :nth-child(5),
    .node-row-grid-overview > :nth-child(5),
    .node-table-head-overview > :nth-child(6),
    .node-row-grid-overview > :nth-child(6) {
        display: none;
    }
}

@media (max-width: 1220px) {
    /* Also hide Server (3rd) and Memory (10th) */
    .node-table-head-overview,
    .node-row-grid-overview {
        grid-template-columns: 28px minmax(160px, 1.8fr) 72px 82px minmax(90px, 0.95fr) 82px 40px;
    }

    .node-table-head-overview > :nth-child(3),
    .node-row-grid-overview > :nth-child(3),
    .node-table-head-overview > :nth-child(10),
    .node-row-grid-overview > :nth-child(10) {
        display: none;
    }
}

/* ==========================================================================
   BLS Key Grouped View
   ========================================================================== */

.bls-group {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.bls-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.bls-group-name {
    font-weight: 600;
    color: var(--text-primary);
}

.bls-group-key {
    font-family: var(--font-mono);
    font-size: 11px;
}

.bls-group-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.15s;
}

.bls-group-row:last-child {
    border-bottom: none;
}

.bls-group-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.bls-group-fallback {
    padding-left: 36px;
    opacity: 0.85;
}

.bls-row-name {
    font-weight: 500;
    min-width: 120px;
}

.bls-row-server {
    min-width: 100px;
    font-size: 13px;
}

.bls-row-role {
    min-width: 72px;
}

.bls-row-nonce {
    min-width: 80px;
    font-size: 13px;
}

.bls-row-sync {
    min-width: 70px;
}

.view-toggle .btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

@media (max-width: 1080px) {
    .node-table-head-server,
    .node-row-grid-server {
        grid-template-columns: minmax(180px, 1.8fr) 82px 92px minmax(118px, 0.95fr) 92px 40px;
    }

    .node-table-head-server > :nth-child(3),
    .node-row-grid-server > :nth-child(3),
    .node-table-head-server > :nth-child(6),
    .node-row-grid-server > :nth-child(6) {
        display: none;
    }
}

@media (max-width: 900px) {
    .node-table-head {
        display: none;
    }

    .node-row-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .node-row {
        padding: 14px 16px;
    }

    .node-cell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .node-cell::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .node-cell-primary {
        display: grid;
        gap: 4px;
    }

    .node-cell-primary::before {
        margin-bottom: 2px;
    }

    .node-row-name {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .node-cell-status,
    .node-cell-actions {
        justify-content: space-between;
    }
}

@media (max-width: 1100px) {
    .data-table-controls {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .data-table-controls-meta {
        width: 100%;
        justify-content: flex-end;
    }

    .server-table-head,
    .server-row-grid {
        grid-template-columns: minmax(220px, 2fr) minmax(120px, 1.1fr) 80px 64px minmax(110px, 1fr) minmax(110px, 1fr) 92px 44px;
    }

    .server-table-head div:nth-child(7),
    .server-row-grid > :nth-child(7) {
        display: none;
    }
}

@media (max-width: 820px) {
    .server-table-head {
        display: none;
    }

    .data-table-controls {
        align-items: stretch;
    }

    .data-table-controls-filters,
    .data-table-controls-meta {
        width: 100%;
    }

    .data-table-control-field,
    .data-table-control-search,
    .data-table-search,
    .data-table-filter {
        width: 100%;
        flex-basis: auto;
    }

    .data-table-page-size {
        margin-left: auto;
    }

    .server-row-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .server-row {
        padding: 14px 16px;
    }

    .server-cell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .server-cell::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .server-cell-server {
        display: grid;
        gap: 4px;
    }

    .server-cell-server::before {
        margin-bottom: 2px;
    }

    .server-row-name,
    .server-row-sub-inline {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .server-cell-status {
        justify-content: space-between;
    }

    .server-cell-actions {
        justify-content: space-between;
    }
}

/* ==========================================================================
   Stats Grid (Dashboard stat cards)
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-card {
    background:
        linear-gradient(180deg, rgba(13, 21, 37, 1) 0%, rgba(10, 17, 30, 1) 100%);
    border: 1px solid rgba(123, 146, 191, 0.16);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(123, 146, 191, 0.12);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.stat-card-header svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.stat-card-body {
    padding: 16px 14px 14px;
}

.stat-card-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 800;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    color: var(--text-heading);
    line-height: 1.3;
}

.stat-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-info { color: var(--info); }
.text-accent { color: var(--accent); }

/* Legacy stat-icon classes (kept for node detail page) */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.orange { background: var(--warning-bg); color: var(--warning); }
.stat-icon.red { background: var(--error-bg); color: var(--error); }
.stat-icon.blue { background: var(--info-bg); color: var(--info); }
.stat-icon.amber { background: var(--accent-muted); color: var(--accent); }

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-online,
.badge-running {
    background: rgba(35, 58, 42, 0.74);
    border-color: rgba(87, 212, 107, 0.2);
    color: var(--success);
}

.badge-online::before,
.badge-running::before {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.badge-offline,
.badge-stopped {
    background: rgba(62, 70, 86, 0.42);
    border-color: rgba(126, 136, 154, 0.18);
    color: var(--text-secondary);
}

.badge-offline::before,
.badge-stopped::before {
    background: var(--text-secondary);
}

.badge-syncing {
    background: rgba(67, 49, 14, 0.78);
    border-color: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

.badge-syncing::before,
.badge-restarting::before {
    background: var(--warning);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.badge-restarting {
    background: rgba(67, 49, 14, 0.78);
    border-color: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

.badge-error {
    background: rgba(61, 25, 23, 0.78);
    border-color: rgba(255, 107, 93, 0.24);
    color: var(--error);
}

.badge-error::before {
    background: var(--error);
    box-shadow: 0 0 6px var(--error);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #f5a11a 0%, #e88800 100%);
    color: #261500;
    border-color: rgba(255, 195, 103, 0.35);
    font-weight: 800;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.btn-danger {
    background: var(--error-bg);
    color: var(--error);
    border-color: rgba(248, 113, 113, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(248, 113, 113, 0.2);
    border-color: var(--error);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    min-height: 34px;
    min-width: 34px;
    border-radius: var(--radius-sm);
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
input.form-input,
select.form-input,
textarea.form-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(6, 12, 24, 0.9);
    border: 1px solid rgba(123, 146, 191, 0.16);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    min-height: 42px;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa0a6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* ==========================================================================
   Data Tables
   ========================================================================== */

.data-table-container {
    overflow: visible;
    border: 1px solid rgba(123, 146, 191, 0.16);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(14, 22, 38, 0.98) 0%, rgba(10, 17, 30, 0.98) 100%);
    box-shadow: var(--shadow-sm);
}

.data-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(123, 146, 191, 0.12);
    gap: 12px;
}

.data-table-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-heading);
}

.data-table-controls {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table-controls-filters {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.data-table-control-field {
    flex: 0 0 auto;
    min-width: 0;
}

.data-table-control-search {
    flex-basis: 240px;
}

.data-table-search {
    width: 240px;
    max-width: 100%;
    font-size: 13px;
    min-height: 40px;
}

.data-table-filter {
    width: 170px;
    max-width: 100%;
    min-width: 0;
    font-size: 13px;
    min-height: 40px;
}

.data-table-clear {
    min-height: 40px;
}

.data-table-controls-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.data-table-page-size {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.data-table-page-size-select {
    width: 74px;
    min-height: 40px;
    padding: 6px 30px 6px 10px;
    font-size: 12px;
}

.data-table-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.data-table-pagination-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.data-table-page-button {
    min-width: 36px;
}

.data-table-page-active {
    background: var(--accent);
    color: #141416;
    border-color: var(--accent);
}

.data-table-page-active:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.data-table-count {
    padding: 8px 16px 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Actions Menu (... dropdown)
   ========================================================================== */

.actions-menu-wrap {
    position: relative;
    display: inline-block;
}

.actions-menu-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(123, 146, 191, 0.14);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    letter-spacing: 2px;
    transition: all var(--transition);
}

.actions-menu-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.actions-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: linear-gradient(180deg, rgba(14, 22, 38, 0.99) 0%, rgba(10, 17, 30, 0.99) 100%);
    border: 1px solid rgba(123, 146, 191, 0.18);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    z-index: 100;
    overflow: hidden;
}

.actions-dropdown.active {
    display: block;
}

.actions-dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    text-align: left;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
}

.actions-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.actions-dropdown-divider {
    height: 1px;
    margin: 4px 10px;
    background: rgba(123, 146, 191, 0.16);
}

.actions-dropdown-item.danger {
    color: var(--error);
}

.actions-dropdown-item.danger:hover {
    background: rgba(248, 113, 113, 0.1);
}

/* ==========================================================================
   Resource Bars
   ========================================================================== */

.resource-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(123, 146, 191, 0.12);
}

.resource-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.resource-bar-fill.green {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.resource-bar-fill.orange {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.resource-bar-fill.red {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

/* ==========================================================================
   Info Rows
   ========================================================================== */

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    gap: 16px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.info-value {
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

/* ==========================================================================
   Login Page
   ========================================================================== */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(232, 167, 55, 0.06) 0%, transparent 60%);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.login-card h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.login-logo-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-icon svg {
    width: 30px;
    height: 30px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading);
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ==========================================================================
   Recovery Codes
   ========================================================================== */

.recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: var(--text-primary);
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.alert-error {
    background: var(--error-bg);
    border-color: rgba(248, 113, 113, 0.25);
    color: var(--error);
}

.alert-success {
    background: var(--success-bg);
    border-color: rgba(52, 211, 153, 0.25);
    color: var(--success);
}

.alert-warning {
    background: var(--warning-bg);
    border-color: rgba(251, 191, 36, 0.25);
    color: var(--warning);
}

/* ==========================================================================
   Loading & Spinner
   ========================================================================== */

.spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ==========================================================================
   Gauges
   ========================================================================== */

.gauge-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
    justify-content: center;
}

.gauge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.gauge-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
    text-align: center;
}

.gauge-svg text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Charts
   ========================================================================== */

.chart-container {
    position: relative;
    width: 100%;
    height: 220px;
    margin-top: 8px;
    padding: 12px 12px 8px;
    border-radius: 16px;
    border: 1px solid rgba(123, 146, 191, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.chart-header h4 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ==========================================================================
   Time Range Selector
   ========================================================================== */

.time-range {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.time-range button {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.time-range button:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-muted);
}

.time-range button.active {
    background: var(--accent);
    color: #141416;
    border-color: var(--accent);
    font-weight: 600;
}

/* ==========================================================================
   Sparkline
   ========================================================================== */

.sparkline-container {
    width: 100%;
    height: 32px;
    margin-top: 8px;
}

.sparkline-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================================
   Progress Bar (Sync)
   ========================================================================== */

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
    border: 1px solid rgba(123, 146, 191, 0.12);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-bar-fill.green {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.progress-bar-fill.orange {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.progress-bar-fill.red {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

/* ==========================================================================
   Stat Values
   ========================================================================== */

.stat-value {
    font-size: 20px;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    color: var(--text-heading);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ==========================================================================
   Metrics Grid
   ========================================================================== */

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.metrics-grid > div {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(123, 146, 191, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.008) 100%);
}

/* ==========================================================================
   Node Status
   ========================================================================== */

.node-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.node-stat {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-input);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.server-hero {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background:
        radial-gradient(circle at top left, rgba(64, 110, 255, 0.09), transparent 28%),
        linear-gradient(180deg, rgba(8, 24, 54, 0.98) 0%, rgba(5, 17, 38, 0.985) 54%, rgba(4, 14, 31, 0.99) 100%);
}

.server-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.012), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.016), transparent 24%);
    pointer-events: none;
}

.server-hero-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: start;
}

/* ==========================================================================
   Node Detail Page
   ========================================================================== */

.node-hero {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background:
        radial-gradient(circle at top left, rgba(232, 167, 55, 0.055), transparent 26%),
        linear-gradient(180deg, rgba(7, 20, 46, 0.98) 0%, rgba(5, 16, 36, 0.985) 52%, rgba(4, 14, 31, 0.99) 100%);
}

.node-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.012), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 22%);
    pointer-events: none;
}

.node-hero-main,
.node-action-bar {
    position: relative;
    z-index: 1;
}

.node-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: start;
}

.node-hero-copy {
    min-width: 0;
}

.node-hero-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.node-hero-copy h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-heading);
}

.node-hero-sub {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
}

.node-server-link {
    color: var(--text-heading);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 191, 47, 0.22);
    transition: color var(--transition), border-color var(--transition);
}

.node-server-link:hover {
    color: var(--accent);
    border-bottom-color: rgba(255, 191, 47, 0.65);
}

.node-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.node-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(123, 146, 191, 0.18);
    background: rgba(255, 255, 255, 0.035);
    font-size: 12px;
    color: var(--text-primary);
}

.node-chip-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    font-weight: 800;
}

.node-chip-value {
    font-weight: 700;
}

.node-chip-accent {
    background: rgba(41, 79, 41, 0.46);
    border-color: rgba(87, 212, 107, 0.18);
    color: var(--success);
}

.node-hero-side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.node-hero-status-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.node-hero-state-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: right;
}

.node-hero-state-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.node-hero-state-card {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(123, 146, 191, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.node-hero-state-key {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.node-hero-state-value {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    color: var(--text-heading);
}

.node-action-bar {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(123, 146, 191, 0.14);
}

.node-action-panel {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(123, 146, 191, 0.14);
    background: rgba(4, 13, 30, 0.5);
}

.node-action-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.node-action-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.node-action-hint {
    font-size: 12px;
    color: var(--text-secondary);
}

.node-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.node-action-group-upgrade {
    align-items: center;
}

.node-action-select {
    flex: 1 1 220px;
    min-width: 220px;
    min-height: 34px;
}

.node-tabs-shell {
    padding: 6px;
    border-radius: 18px;
    border: 1px solid rgba(123, 146, 191, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.022) 0%, rgba(255, 255, 255, 0.008) 100%);
}

.node-tabs {
    margin-bottom: 0;
    border-bottom: none;
    gap: 8px;
}

.node-tab {
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 12px;
    min-height: 38px;
    padding: 9px 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.node-tab:hover {
    background: rgba(255, 255, 255, 0.04);
}

.node-tab.active,
.node-tabs .node-tab.active {
    color: #ffbf2f !important;
    -webkit-text-fill-color: #ffbf2f;
    background: linear-gradient(180deg, rgba(18, 30, 49, 0.98) 0%, rgba(13, 22, 38, 0.98) 100%);
    border-color: rgba(255, 191, 47, 0.22);
    border-bottom-color: transparent;
    box-shadow:
        inset 0 -2px 0 rgba(255, 176, 20, 0.95),
        0 10px 24px rgba(255, 176, 20, 0.12);
    text-shadow: none;
}

.node-tab.active:hover,
.node-tabs .node-tab.active:hover {
    color: #ffd36a !important;
    -webkit-text-fill-color: #ffd36a;
    background: linear-gradient(180deg, rgba(20, 34, 55, 0.98) 0%, rgba(14, 24, 42, 0.98) 100%);
}

.node-tab-panel {
    display: none;
}

.node-tab-panel.active {
    display: block;
}

.node-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.node-toolbar-wrap {
    justify-content: flex-end;
}

.node-toolbar-secondary {
    justify-content: flex-start;
}

.node-inline-select,
.node-inline-input {
    min-height: 38px;
}

.node-inline-select {
    min-width: 168px;
}

.node-inline-select-wide {
    min-width: 220px;
}

.node-inline-input {
    width: 180px;
}

.node-code-editor {
    width: 100%;
    min-height: 360px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(123, 146, 191, 0.14);
    background: rgba(8, 17, 31, 0.92);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    resize: vertical;
    tab-size: 4;
    white-space: pre;
    overflow: auto;
}

.node-empty-state {
    min-height: 220px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 14px;
}

.detail-section {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(123, 146, 191, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.022) 0%, rgba(255, 255, 255, 0.008) 100%);
}

.detail-section-title {
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.detail-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 108px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(123, 146, 191, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.detail-item-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.detail-item-value {
    margin-top: auto;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-heading);
    word-break: break-word;
}

.detail-item-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-heading);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 191, 47, 0.22);
    transition: color var(--transition), border-color var(--transition);
}

.detail-item-link:hover {
    color: var(--accent);
    border-bottom-color: rgba(255, 191, 47, 0.65);
}

.detail-item.wide {
    grid-column: 1 / -1;
    min-height: 92px;
}

.detail-item.mono .detail-item-value {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.node-gauges-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.node-gauge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    padding: 18px 16px;
    border-radius: 18px;
    border: 1px solid rgba(123, 146, 191, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.012) 100%);
    text-align: center;
}

.node-gauge-title {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.node-gauge-detail {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.node-key-panel {
    min-height: 120px;
}

.node-log-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 4px;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.node-log-viewer {
    min-height: 520px;
    max-height: 65vh;
    overflow: auto;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(123, 146, 191, 0.14);
    background: rgba(11, 22, 40, 0.96);
    color: #e8eaed;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.node-log-empty {
    padding: 16px;
    text-align: center;
}

/* ==========================================================================
   Connection Status
   ========================================================================== */

.connection-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #89d89b;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.status-dot.connected {
    background: var(--success);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.status-dot.disconnected {
    background: var(--error);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

/* ==========================================================================
   Settings (Tabs & Sections)
   ========================================================================== */

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    min-height: 44px;
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.settings-section {
    margin-bottom: 32px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.setting-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.5;
}

.section-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-panel-lg {
    max-width: 900px;
}

.modal-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.modal-panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
}

.modal-panel-body {
    padding: 20px;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 16px;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }

/* ==========================================================================
   Responsive: Compact Header
   ========================================================================== */

@media (max-width: 1080px) {
    .page-header {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .page-header-left,
    .page-header-center,
    .page-header-right {
        width: 100%;
    }

    .page-header-center {
        order: 3;
        justify-content: flex-start;
    }

    .page-search {
        width: 100%;
    }

    .page-header-right {
        justify-content: flex-end;
    }
}

@media (max-width: 720px) {
    .app-top-strip {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
    }

    .page-header {
        padding: 14px 16px;
    }

    .page-body {
        padding: 16px;
    }

    .page-header-status {
        display: none;
    }
}

/* ==========================================================================
   Responsive: Tablet / Desktop (768px+)
   ========================================================================== */

@media (min-width: 768px) {
    body {
        font-size: 14px;
    }

    .sidebar {
        transform: translateX(0);
    }

    .main-content {
        margin-left: var(--sidebar-width);
    }

    .topbar {
        display: none;
    }

    .overlay {
        display: none !important;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .node-status-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .login-card {
        padding: 44px 36px;
    }
}

@media (max-width: 1100px) {
    .server-hero-main,
    .node-hero-main,
    .node-action-bar {
        grid-template-columns: 1fr;
    }

    .node-hero-status-row,
    .node-hero-state-label {
        justify-content: flex-start;
        text-align: left;
    }

    .node-gauges-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .node-toolbar {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .server-hero,
    .node-hero {
        padding: 18px;
    }

    .node-hero-copy h2 {
        font-size: 28px;
    }

    .node-hero-state-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-section-grid {
        grid-template-columns: 1fr;
    }

    .node-action-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .node-action-select {
        min-width: 0;
        width: 100%;
    }

    .node-tab {
        min-height: 36px;
        padding: 8px 12px;
    }

    .node-inline-input,
    .node-inline-select,
    .node-inline-select-wide {
        width: 100%;
        min-width: 0;
    }

    .node-log-viewer {
        min-height: 380px;
    }
}

/* ==========================================================================
   Responsive: Large Desktop (1200px+)
   ========================================================================== */

@media (min-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: toast-in 0.3s ease-out;
    transition: opacity 0.3s, transform 0.3s;
    max-width: 360px;
}

.toast-success {
    background: rgba(35, 58, 42, 0.95);
    border: 1px solid rgba(87, 212, 107, 0.3);
    color: var(--success);
}

.toast-error {
    background: rgba(61, 25, 23, 0.95);
    border: 1px solid rgba(255, 107, 93, 0.3);
    color: var(--error);
}

.toast-info {
    background: rgba(20, 40, 68, 0.95);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: var(--accent);
}

.toast.toast-out {
    opacity: 0;
    transform: translateX(20px);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Confirm modal */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.15s ease-out;
}

.confirm-dialog {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.confirm-dialog h3 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.confirm-dialog p {
    margin: 0 0 20px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.confirm-dialog .confirm-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.confirm-dialog .confirm-actions .btn-danger {
    background: var(--error);
    color: #fff;
    border: none;
}

.confirm-dialog .confirm-actions .btn-danger:hover {
    background: #e05547;
}

.confirm-dialog .confirm-actions .btn-warning {
    background: var(--warning);
    color: #000;
    border: none;
}

.confirm-dialog .confirm-actions .btn-warning:hover {
    background: #e5a825;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Status dot inline (small dot before node name) */
.node-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

.node-status-dot-running {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.node-status-dot-stopped {
    background: var(--text-secondary);
}

.node-status-dot-restarting,
.node-status-dot-syncing {
    background: var(--warning);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.node-status-dot-error {
    background: var(--error);
    box-shadow: 0 0 6px var(--error);
}
