:root {
    --bg-primary: #090d16;
    --bg-surface: #101726;
    --bg-card: rgba(18, 26, 43, 0.75);
    --bg-card-hover: rgba(24, 35, 58, 0.9);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(56, 189, 248, 0.3);

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --color-cyan: #38bdf8;
    --color-blue: #3b82f6;
    --color-purple: #a855f7;
    --color-emerald: #10b981;
    --color-amber: #f59e0b;
    --color-rose: #f43f5e;
    --color-rust: #ea580c;

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.15);
}

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

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    padding: 24px;
}

.app-layout {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* HEADER */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #0284c7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-rs {
    font-size: 0.75rem;
    background: var(--color-rust);
    color: white;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-emerald);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-emerald);
    box-shadow: 0 0 8px var(--color-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.master-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
}

.badge-label {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-val {
    font-family: var(--font-mono);
    color: var(--color-cyan);
    font-weight: 600;
}

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--color-cyan);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: var(--color-cyan);
    transform: translateY(-1px);
}

/* OVERVIEW KPI GRID */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.kpi-icon {
    font-size: 1.1rem;
    padding: 6px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
}

.kpi-value {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-family: var(--font-mono);
}

.kpi-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.kpi-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

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

.cpu-fill { background: linear-gradient(90deg, #38bdf8, #818cf8); }
.mem-fill { background: linear-gradient(90deg, #a855f7, #ec4899); }
.disk-fill { background: linear-gradient(90deg, #10b981, #06b6d4); }

/* SECTIONS */
.section-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-sub {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.section-meta {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* NODES GRID */
.nodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--text-dim);
    background: var(--bg-surface);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
}

.node-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.node-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.node-card.master {
    border-top: 3px solid var(--color-cyan);
}

.node-card.rpi {
    border-top: 3px solid var(--color-emerald);
}

.node-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.node-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.node-name {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.node-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tag-master { background: rgba(56, 189, 248, 0.2); color: var(--color-cyan); }
.tag-worker { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }
.tag-rpi { background: rgba(16, 185, 129, 0.2); color: var(--color-emerald); }
.tag-arch { background: rgba(168, 85, 247, 0.2); color: var(--color-purple); }
.tag-gpu { background: rgba(132, 204, 22, 0.2); color: #a3e635; border: 1px solid rgba(132, 204, 22, 0.35); }

.node-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-ready {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-emerald);
}

.status-notready {
    background: rgba(244, 63, 94, 0.15);
    color: var(--color-rose);
}

.node-specs-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    color: var(--text-dim);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.spec-value {
    color: var(--text-main);
    font-family: var(--font-mono);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* NODE METRIC GAUGES */
.node-gauges {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gauge-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gauge-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.gauge-label {
    color: var(--text-muted);
    font-weight: 600;
}

.gauge-values {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-family: var(--font-mono);
}

.gauge-percent {
    font-weight: 700;
}

.gauge-details {
    color: var(--text-dim);
    font-size: 0.72rem;
}

.gauge-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.gauge-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.4s ease;
}

.bar-low { background: #10b981; }
.bar-mid { background: #f59e0b; }
.bar-high { background: #f43f5e; }

/* CHART SECTION */
.chart-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-group {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 2px;
}

.btn-toggle {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-toggle:hover {
    color: var(--text-main);
}

.btn-toggle.active {
    background: rgba(56, 189, 248, 0.18);
    color: var(--color-cyan);
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 340px;
}

#historyChart {
    width: 100%;
    height: 100%;
    display: block;
}

/* FOOTER */
.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-cyan);
}

/* NAVIGATION TABS & PANES */
.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--color-cyan);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tab-badge {
    background: rgba(56, 189, 248, 0.2);
    color: var(--color-cyan);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 700;
}

.tab-pane {
    display: none;
    flex-direction: column;
    gap: 28px;
}

.tab-pane.active {
    display: flex;
}

/* WORKLOADS FILTERS */
.filters-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-card);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    flex: 1;
    min-width: 260px;
    color: var(--text-muted);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.filters-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.select-wrapper select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
}

.select-wrapper select option {
    background: var(--bg-surface);
    color: var(--text-main);
}

/* DEPLOYMENT CARDS */
.deployments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 20px;
}

.deployment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, border-color 0.2s;
}

.deployment-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.deployment-card.ha {
    border-left: 4px solid var(--color-emerald);
}

.deployment-card.mono {
    border-left: 4px solid var(--color-amber);
}

.deployment-card.degraded {
    border-left: 4px solid var(--color-rose);
}

.deployment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.deployment-name-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.deployment-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-all;
}

.deployment-tags {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.tag-ha {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.tag-mono {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.tag-single {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.tag-replicas-ok {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-emerald);
    font-weight: 700;
}

.tag-replicas-warn {
    background: rgba(244, 63, 94, 0.15);
    color: var(--color-rose);
    font-weight: 700;
}

/* Distribution Box */
.distribution-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.distribution-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.dist-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    display: flex;
    overflow: hidden;
}

.dist-bar-seg {
    height: 100%;
    transition: width 0.3s ease;
}

.distribution-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.dist-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.dist-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dist-chip-node {
    font-weight: 600;
    color: var(--text-main);
}

.dist-chip-count {
    color: var(--text-muted);
}

/* Deployment Pods Accordion */
.deployment-pods-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.deployment-pods-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}

.deployment-pods-toggle:hover {
    color: var(--color-cyan);
}

.dep-pods-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.dep-pod-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
}

.dep-pod-name {
    font-family: var(--font-mono);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dep-pod-node {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* NODES PODS CARTOGRAPHY */
.nodes-pods-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.node-pod-group-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.node-pod-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 12px;
}

.node-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.node-group-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.node-group-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.node-group-stats {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.pods-table-wrapper {
    overflow-x: auto;
}

.pods-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.pods-table th {
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-dim);
    font-weight: 600;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.pods-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    white-space: nowrap;
}

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

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

.pod-name-cell {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pod-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 600;
}

.pod-status-pill.running {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-emerald);
}

.pod-status-pill.completed {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
}

.pod-status-pill.pending {
    background: rgba(245, 158, 11, 0.12);
    color: var(--color-amber);
}

.pod-status-pill.error {
    background: rgba(244, 63, 94, 0.15);
    color: var(--color-rose);
}

.restarts-badge {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.restarts-badge.warning {
    color: var(--color-amber);
    font-weight: 700;
}

.restarts-badge.danger {
    color: var(--color-rose);
    font-weight: 700;
}

.pod-ctrl-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-cyan);
    font-size: 0.73rem;
    font-weight: 600;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.distribution-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.node-pods-summary-counts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }
    .app-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-controls {
        width: 100%;
        justify-content: space-between;
    }
    .chart-wrapper {
        height: 260px;
    }
    .deployments-grid {
        grid-template-columns: 1fr;
    }
    .filters-card {
        flex-direction: column;
        align-items: stretch;
    }
    .filters-group {
        flex-direction: column;
        align-items: stretch;
    }
    .select-wrapper {
        justify-content: space-between;
    }
    .nav-tabs {
        width: 100%;
    }
    .nav-tab {
        flex: 1;
        justify-content: center;
    }
}
