* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0f1923; color: #e0e0e0; min-height: 100vh; font-weight: 400; letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Header */
header { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; background: #1a2733; border-bottom: 1px solid #2a3a4a; }
.header-left { display: flex; align-items: center; gap: 16px; }
header h1 { font-size: 1.3rem; color: #4fc3f7; font-weight: 800; letter-spacing: -0.02em; }
.cluster-badge { background: #263545; padding: 4px 12px; border-radius: 12px; font-size: 0.8rem; color: #81d4fa; font-family: 'JetBrains Mono', 'Cascadia Code', monospace; font-weight: 500; }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-right label { font-size: 0.85rem; color: #90a4ae; }

/* Form elements */
select, input[type="text"], input[type="number"] { background: #1e2d3d; color: #e0e0e0; border: 1px solid #37474f; border-radius: 6px; padding: 6px 10px; font-size: 0.85rem; font-family: 'Inter', sans-serif; }
select:focus, input:focus { outline: none; border-color: #4fc3f7; }
button { background: #263545; color: #e0e0e0; border: 1px solid #37474f; border-radius: 6px; padding: 6px 14px; cursor: pointer; font-size: 0.85rem; transition: background 0.2s; font-family: 'Inter', sans-serif; font-weight: 500; }
button:hover { background: #37474f; }
button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Summary Cards */
.summary-cards { display: flex; gap: 8px; padding: 12px 20px; flex-wrap: nowrap; }
.card { background: #1a2733; border: 1px solid #2a3a4a; border-radius: 8px; padding: 10px 12px; min-width: 0; text-align: center; flex: 1; }
.card-value { font-size: 1.3rem; font-weight: 800; color: #4fc3f7; font-family: 'JetBrains Mono', 'Inter', monospace; }
.card-label { font-size: 0.65rem; color: #78909c; margin-top: 2px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.card-green .card-value { color: #66bb6a; }
.card-yellow .card-value { color: #ffa726; }
.card-red .card-value { color: #ef5350; }
.card-orange .card-value { color: #ff7043; }
.card-cpu .card-value { color: #29b6f6; }
.card-mem .card-value { color: #ab47bc; }
.card-clickable { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.card-clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); border-color: #4fc3f7; }
.card-clickable:active { transform: translateY(0); }
.card-clickable .card-label { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }

/* Progress bars (CPU/Memory cards) */
.progress-bar { width: 100%; height: 6px; background: #263545; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.progress-cpu { background: linear-gradient(90deg, #29b6f6, #0288d1); }
.progress-mem { background: linear-gradient(90deg, #ab47bc, #7b1fa2); }

/* Metric cells in pod table */
.metric-cell { font-family: 'JetBrains Mono', 'Cascadia Code', monospace; font-size: 0.7rem; color: #b0bec5; white-space: nowrap; }
.th-center { text-align: center; }
.pct-cell { text-align: center; }
.pct-ok { color: #66bb6a; font-weight: 600; text-align: center; }
.pct-high { color: #ffa726; font-weight: 600; text-align: center; }
.pct-over { color: #ef5350; font-weight: 700; text-align: center; }

/* Node Details Section */
.node-details { padding: 0 24px 12px; }
.node-details-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.node-details-header h2 { font-size: 1rem; color: #4fc3f7; font-weight: 700; }
.toggle-btn { background: transparent; border: 1px solid #37474f; color: #90a4ae; padding: 2px 10px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; }
.toggle-btn:hover { background: #263545; color: #e0e0e0; }
.node-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.node-grid.collapsed { display: none; }
.node-card { background: #1a2733; border: 1px solid #2a3a4a; border-radius: 10px; padding: 14px 18px; }
.node-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.node-card-name { font-size: 0.9rem; font-weight: 700; color: #e0e0e0; font-family: 'JetBrains Mono', monospace; }
.node-card-status { padding: 2px 10px; border-radius: 10px; font-size: 0.72rem; font-weight: 600; }
.node-card-status.ready { background: #1b5e20; color: #a5d6a7; }
.node-card-status.not-ready { background: #b71c1c; color: #ef9a9a; }
.node-card-meta { display: flex; gap: 12px; margin-bottom: 10px; font-size: 0.78rem; color: #78909c; }
.node-card-meta span { display: flex; align-items: center; gap: 4px; }
.node-card-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.node-metric { background: #0f1923; border-radius: 6px; padding: 8px 10px; }
.node-metric-label { font-size: 0.7rem; color: #78909c; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-bottom: 4px; }
.node-metric-value { font-size: 0.95rem; font-weight: 700; color: #4fc3f7; font-family: 'JetBrains Mono', monospace; }
.node-metric-sub { font-size: 0.72rem; color: #546e7a; margin-top: 2px; }
.node-metric-bar { width: 100%; height: 4px; background: #263545; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.node-metric-bar-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
.node-metric-bar-fill.cpu { background: linear-gradient(90deg, #29b6f6, #0288d1); }
.node-metric-bar-fill.mem { background: linear-gradient(90deg, #ab47bc, #7b1fa2); }
.node-metric-bar-fill.high { background: linear-gradient(90deg, #ffa726, #ef5350); }
.node-resources { margin-top: 10px; background: #0f1923; border-radius: 6px; padding: 8px 10px; }
.node-resources-title { font-size: 0.7rem; color: #78909c; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; font-weight: 600; }
.node-resources-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.node-resources-table th { text-align: left; color: #546e7a; font-weight: 600; padding: 3px 6px; border-bottom: 1px solid #1e2d3d; font-size: 0.7rem; }
.node-resources-table td { padding: 4px 6px; color: #b0bec5; }
.node-resources-table td:first-child { font-weight: 600; color: #90a4ae; width: 70px; }
.res-high { color: #ffa726 !important; font-weight: 600; }
.res-over { color: #ef5350 !important; font-weight: 600; }

/* Tabs */
.tabs { display: flex; gap: 2px; padding: 0 24px; background: #1a2733; align-items: center; }
.tabs-ns-selector { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.tabs-ns-selector label { font-size: 0.85rem; color: #90a4ae; font-weight: 500; white-space: nowrap; }
.tabs-ns-selector select { min-width: 160px; }
.tabs-divider { width: 1px; height: 24px; background: #37474f; margin: 0 12px; flex-shrink: 0; }
.tab { background: transparent; border: none; color: #78909c; padding: 10px 20px; font-size: 0.9rem; border-bottom: 2px solid transparent; border-radius: 0; font-family: 'Inter', sans-serif; font-weight: 500; letter-spacing: 0.02em; }
.tab:hover { color: #e0e0e0; background: #263545; }
.tab.active { color: #4fc3f7; border-bottom-color: #4fc3f7; }

/* Search */
.search-bar { padding: 12px 24px; }
.search-bar input { width: 100%; max-width: 400px; padding: 8px 14px; }

/* Tables */
.tab-content { display: none; padding: 0 24px 24px; }
.tab-content.active { display: block; }
.tab-content { position: relative; }
.tab-content table { width: 100%; border-collapse: separate; border-spacing: 0; background: #1a2733; border-radius: 8px; }
.table-scroll-wrapper { max-height: 70vh; overflow: auto; border-radius: 8px; border: 1px solid #2a3a4a; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: #1a2733; }
thead { background: #263545; }
thead th { position: sticky; top: 0; z-index: 10; background: #263545; border-bottom: 2px solid #4fc3f7; }
th { padding: 6px 8px; text-align: left; font-size: 0.68rem; color: #90a4ae; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; font-family: 'Inter', sans-serif; }
td { padding: 5px 8px; font-size: 0.76rem; border-top: 1px solid #1e2d3d; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Inter', sans-serif; }
tr:hover { background: #1e2d3d; }
/* Keyboard-selected row highlight */
tr.row-selected { background: #1e3a5f; outline: 1px solid #4fc3f7; outline-offset: -1px; }
tr.row-selected td { color: #e0e0e0; }

/* Status badges */
.status { padding: 2px 10px; border-radius: 10px; font-size: 0.72rem; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: 0.03em; }
.status-running { background: #1b5e20; color: #a5d6a7; }
.status-succeeded { background: #1b5e20; color: #a5d6a7; }
.status-pending { background: #e65100; color: #ffcc80; }
.status-failed { background: #b71c1c; color: #ef9a9a; }
.status-unknown { background: #37474f; color: #90a4ae; }

/* Action buttons */
.action-btn { background: #1e3a5f; color: #4fc3f7; border: none; padding: 3px 7px; border-radius: 4px; cursor: pointer; font-size: 0.66rem; margin-right: 2px; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0.02em; }
.action-btn:hover { background: #2a5080; }

/* Clickable name links in tables (Deployment name → Pods, Pod name → Containers) */
.nav-link { color: #4fc3f7; text-decoration: none; cursor: pointer; font-weight: 600; }
.nav-link:hover { color: #81d4fa; text-decoration: underline; }

/* Logs */
.logs-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.logs-controls select, .logs-controls input { min-width: 140px; }
.log-output { background: #0a1520; color: #b0bec5; padding: 16px; border-radius: 8px; font-family: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace; font-size: 0.8rem; line-height: 1.6; max-height: 600px; overflow: auto; white-space: pre-wrap; word-break: break-all; border: 1px solid #1e2d3d; }
.log-line-error { color: #ef5350; }
.log-line-warn { color: #ffa726; }

/* ── Pretty Log Viewer (Sematext-style) ── */
#logOutput { background: #0a1018; border: 1px solid #2a3a4a; border-radius: 0 0 8px 8px; padding: 0; max-height: 650px; overflow: auto; font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace; font-size: 0.78rem; line-height: 1.5; }

.log-toolbar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: #1a2733; border: 1px solid #2a3a4a; border-radius: 8px 8px 0 0; margin-top: 10px; }
.log-toolbar-left { display: flex; align-items: center; gap: 8px; flex: 1; }
.log-toolbar-right { display: flex; align-items: center; gap: 6px; }
.log-line-count { font-size: 0.75rem; color: #546e7a; font-family: 'JetBrains Mono', monospace; }
.log-toolbar-btn { padding: 3px 10px; font-size: 0.72rem; border-radius: 4px; background: #263545; border: 1px solid #37474f; color: #b0bec5; cursor: pointer; }
.log-toolbar-btn:hover { background: #37474f; color: #fff; }

/* Log Entry */
.log-entry { border-bottom: 1px solid #111a24; transition: background 0.1s; }
.log-entry:hover { background: #141e2a; }
.log-entry:nth-child(even) { background: #0c1219; }
.log-entry:nth-child(even):hover { background: #141e2a; }

.log-entry-header { display: flex; align-items: flex-start; gap: 0; padding: 4px 10px; cursor: pointer; min-height: 28px; }
.log-entry-header:hover .log-expand-icon { color: #4fc3f7; }

.log-line-num { min-width: 36px; text-align: right; color: #37474f; font-size: 0.68rem; padding-right: 8px; user-select: none; border-right: 1px solid #1a2733; margin-right: 8px; padding-top: 2px; flex-shrink: 0; }
.log-ts { min-width: 85px; color: #546e7a; font-size: 0.72rem; padding-right: 8px; white-space: nowrap; padding-top: 2px; flex-shrink: 0; }
.log-badge { display: inline-block; min-width: 30px; text-align: center; padding: 1px 5px; border-radius: 3px; font-size: 0.65rem; font-weight: 700; margin-right: 6px; letter-spacing: 0.5px; flex-shrink: 0; }
.log-badge-info { background: #1a3a4a; color: #4fc3f7; }
.log-badge-warn { background: #3e2723; color: #ffb74d; }
.log-badge-error { background: #3e1a1a; color: #ef5350; }
.log-badge-debug { background: #1a2e1a; color: #81c784; }

.log-svc { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 0.68rem; margin-right: 6px; background: #1a2733; color: #4dd0e1; border: 1px solid #2a3a4a; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.log-trace { display: inline-block; padding: 1px 5px; border-radius: 3px; font-size: 0.65rem; margin-right: 6px; background: #1a1a2e; color: #7986cb; border: 1px solid #283060; white-space: nowrap; flex-shrink: 0; cursor: help; }
.log-msg { flex: 1; color: #cfd8dc; white-space: normal; word-break: break-word; padding-top: 1px; line-height: 1.5; }
.log-expand-icon { color: #37474f; font-size: 0.65rem; margin-left: 6px; transition: transform 0.2s, color 0.2s; flex-shrink: 0; padding-top: 3px; }

/* Level-based row tinting */
.log-level-error { border-left: 3px solid #ef5350; }
.log-level-error .log-msg { color: #ef9a9a; }
.log-level-warn { border-left: 3px solid #ffa726; }
.log-level-warn .log-msg { color: #ffe0b2; }
.log-level-debug { border-left: 3px solid #66bb6a; }
.log-level-info { border-left: 3px solid transparent; }

/* Expanded JSON detail */
.log-entry-detail { display: none; padding: 8px 12px 12px 54px; background: #0d1520; border-top: 1px solid #1a2733; font-size: 0.76rem; line-height: 1.6; overflow-x: auto; }
.log-entry.expanded .log-entry-detail { display: block; }
.log-entry.expanded .log-expand-icon { transform: rotate(90deg); color: #4fc3f7; }
.log-entry.expanded .log-msg { white-space: normal; word-break: break-word; }

/* JSON tree styling */
.log-json-key { color: #4fc3f7; }
.log-json-str { color: #81c784; }
.log-json-num { color: #ffb74d; }
.log-json-bool { color: #ce93d8; }
.log-json-null { color: #78909c; font-style: italic; }
.log-json-bracket { color: #78909c; font-weight: 600; }
.log-json-colon { color: #546e7a; }
.log-json-indent { padding-left: 18px; }
.log-json-val { color: #b0bec5; }

/* Search highlight */
.log-highlight { background: #f9a825; color: #000; padding: 0 2px; border-radius: 2px; }

/* Empty state */
.log-empty { display: flex; align-items: center; justify-content: center; padding: 50px 20px; color: #546e7a; font-size: 0.9rem; }

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal.hidden { display: none; }
.modal-content { background: #1a2733; border: 1px solid #2a3a4a; border-radius: 12px; width: 90%; max-width: 1100px; max-height: 85vh; display: flex; flex-direction: column; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #2a3a4a; }
.modal-header h2 { font-size: 1.1rem; color: #4fc3f7; font-weight: 700; }
.close-btn { background: none; border: none; color: #78909c; font-size: 1.5rem; cursor: pointer; }
.close-btn:hover { color: #e0e0e0; }
.modal-body { padding: 16px 20px; overflow: auto; font-family: 'Inter', sans-serif; font-size: 0.84rem; line-height: 1.6; color: #b0bec5; }

/* Loading */
.loading { text-align: center; padding: 40px; color: #78909c; }
.spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid #37474f; border-top-color: #4fc3f7; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Events */
.event-type { padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; font-family: 'Inter', sans-serif; letter-spacing: 0.04em; }
.event-type-normal { background: #1b5e20; color: #a5d6a7; }
.event-type-warning { background: #e65100; color: #ffcc80; }
tr.event-warning { background: rgba(230, 81, 0, 0.08); }
tr.event-normal { }
.event-message {
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.event-message:hover { color: #64b5f6; }
.event-message.expanded {
  white-space: normal;
  word-break: break-word;
  max-width: 600px;
  overflow: visible;
  text-overflow: unset;
  background: #0d1b2a;
  padding: 8px 10px;
  border-radius: 4px;
  line-height: 1.5;
}
.event-message::after {
  content: ' ▸';
  font-size: 0.7rem;
  color: #546e7a;
  margin-left: 4px;
}
.event-message.expanded::after {
  content: ' ▾';
  color: #64b5f6;
}

/* SPC provider badge */
/* IngressRoutes */
.ingress-link { color: #4dd0e1; text-decoration: none; cursor: pointer; font-weight: 500; transition: color 0.2s; }
.ingress-link:hover { color: #80deea; text-decoration: underline; }
.tls-enabled { color: #66bb6a; font-weight: 500; }
.tls-disabled { color: #78909c; }

.spc-provider { background: #1a237e; color: #7986cb; padding: 2px 8px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; font-family: 'JetBrains Mono', monospace; }

/* HPA Targets */
.hpa-targets-cell { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; }
.hpa-target { white-space: nowrap; }
.hpa-target-name { color: #81d4fa; font-weight: 500; }
.hpa-unknown { color: #ffa726; font-style: italic; }

/* CiliumNetworkPolicy */
.cnp-selector-cell { max-width: 260px; white-space: normal; word-break: break-word; }

/* ── VPA (VerticalPodAutoscaler) ── */
.vpa-container { display: flex; flex-direction: column; gap: 16px; }
.vpa-card { background: #0d1b2a; border: 1px solid #1e3a5f; border-radius: 10px; overflow: hidden; }
.vpa-card-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: linear-gradient(135deg, #0a1628 0%, #122240 100%); border-bottom: 1px solid #1e3a5f; flex-wrap: wrap; gap: 8px; }
.vpa-card-title { display: flex; align-items: center; gap: 10px; }
.vpa-name { font-weight: 700; font-size: 1rem; color: #e0e0e0; }
.vpa-ns { font-size: 0.78rem; color: #546e7a; background: #0a1628; padding: 2px 8px; border-radius: 4px; }
.vpa-card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vpa-mode-badge { font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.vpa-mode-auto { background: #1b5e20; color: #66bb6a; }
.vpa-mode-initial { background: #1a237e; color: #7986cb; }
.vpa-mode-off { background: #37474f; color: #90a4ae; }
.vpa-ref { font-size: 0.82rem; color: #4fc3f7; font-family: 'JetBrains Mono', monospace; }
.vpa-age { font-size: 0.78rem; color: #78909c; }
.vpa-card-body { padding: 14px 18px; }
.vpa-section { margin-bottom: 14px; }
.vpa-section h4 { margin: 0 0 8px 0; font-size: 0.85rem; color: #90a4ae; font-weight: 600; }
.vpa-reco-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.vpa-reco-table th { text-align: left; padding: 6px 10px; color: #78909c; font-weight: 600; border-bottom: 1px solid #1e3a5f; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3px; }
.vpa-reco-table td { padding: 6px 10px; border-bottom: 1px solid #0f1923; color: #b0bec5; }
.vpa-container-name { font-weight: 600; color: #81d4fa; font-family: 'JetBrains Mono', monospace; }
.vpa-res { font-weight: 600; color: #66bb6a; font-family: 'JetBrains Mono', monospace; }
.vpa-no-data { color: #546e7a; font-style: italic; text-align: center; padding: 12px; }
.vpa-policies-section { margin-top: 10px; }
.vpa-policies { display: flex; flex-wrap: wrap; gap: 6px; }
.vpa-policy-chip { display: inline-block; font-size: 0.75rem; padding: 3px 10px; background: #1a237e; color: #7986cb; border-radius: 4px; font-family: 'JetBrains Mono', monospace; cursor: default; }
.vpa-policy-chip:hover { background: #283593; }

/* Describe Pod Modal */
.describe-output { font-size: 0.85rem; line-height: 1.4; font-family: 'Inter', sans-serif; }
.describe-section { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #263545; }
.describe-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.describe-heading { font-size: 0.9rem; font-weight: 700; color: #4fc3f7; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; font-family: 'Inter', sans-serif; }
.describe-row { padding: 1px 0; color: #cfd8dc; line-height: 1.4; }
.describe-key { color: #78909c; font-weight: 600; display: inline-block; min-width: 140px; font-family: 'Inter', sans-serif; }
.describe-indent { padding-left: 24px; color: #90a4ae; font-size: 0.82rem; }
.describe-label-tag { background: #263545; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; color: #81d4fa; font-family: 'JetBrains Mono', 'Cascadia Code', monospace; font-weight: 500; }
.describe-table { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 0.82rem; }
.describe-table th { background: #1e2d3d; padding: 6px 10px; text-align: left; color: #90a4ae; font-size: 0.75rem; text-transform: uppercase; }
.describe-table td { padding: 5px 10px; border-top: 1px solid #1e2d3d; color: #cfd8dc; }
.describe-table .event-message { max-width: 300px; white-space: normal; word-break: break-word; }
.cond-true { color: #66bb6a; font-weight: 600; }
.cond-false { color: #ef5350; font-weight: 600; }
.cond-warn { color: #ffa726; font-weight: 600; }

/* Breadcrumb Navigation */
.breadcrumb { padding: 8px 24px; background: #1a2733; border-bottom: 1px solid #2a3a4a; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.breadcrumb.hidden { display: none; }
.breadcrumb a { color: #4fc3f7; text-decoration: none; cursor: pointer; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; color: #81d4fa; }
.breadcrumb .breadcrumb-sep { color: #546e7a; margin: 0 2px; }
.breadcrumb .breadcrumb-current { color: #e0e0e0; font-weight: 600; }

/* Context Banner */
.context-banner { padding: 10px 16px; margin-bottom: 12px; background: #1e3a5f; border: 1px solid #2a5080; border-radius: 8px; color: #81d4fa; font-size: 0.85rem; display: flex; align-items: center; gap: 10px; }
.context-banner.hidden { display: none; }
.context-banner .context-label { color: #90a4ae; font-weight: 500; }
.context-banner .context-value { color: #4fc3f7; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.context-banner .context-clear { background: #263545; color: #90a4ae; border: 1px solid #37474f; padding: 2px 10px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; margin-left: auto; }
.context-banner .context-clear:hover { background: #37474f; color: #e0e0e0; }

/* Container state badges */
.state-running { color: #66bb6a; font-weight: 600; }
.state-waiting { color: #ffa726; font-weight: 600; }
.state-terminated { color: #ef5350; font-weight: 600; }

/* Service Account styles */
/* Annotations column in table - full key=value display */
.sa-ann-header { min-width: 400px; }
.sa-annotations-cell { max-width: none !important; white-space: normal !important; overflow: visible !important; text-overflow: unset !important; vertical-align: top; }
.sa-ann-list { display: flex; flex-direction: column; gap: 3px; }
.sa-ann-row { display: flex; gap: 6px; align-items: flex-start; padding: 2px 0; border-bottom: 1px solid #1a2733; }
.sa-ann-row:last-child { border-bottom: none; }
.sa-ann-key { color: #4fc3f7; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.sa-ann-val { color: #b0bec5; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; word-break: break-all; line-height: 1.4; }
/* Describe modal annotation styles */
.sa-annotations-detail { display: flex; flex-direction: column; gap: 8px; }
.sa-annotation-item { background: #162230; border: 1px solid #2a3a4a; border-radius: 6px; padding: 8px 12px; }
.sa-annotation-key { color: #4fc3f7; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; word-break: break-all; }
.sa-annotation-value { color: #b0bec5; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; word-break: break-all; line-height: 1.5; }
.sa-annotation-long { max-height: 120px; overflow-y: auto; padding-right: 4px; }
.sa-annotation-long::-webkit-scrollbar { width: 4px; }
.sa-annotation-long::-webkit-scrollbar-thumb { background: #37474f; border-radius: 2px; }
.describe-indent { padding-left: 20px; }

/* Resource Recommendations styles */
.reco-filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 16px; background: #1a2733; border: 1px solid #2a3a4a; border-radius: 8px; }
.reco-filter-bar label { font-size: 0.85rem; color: #90a4ae; font-weight: 600; white-space: nowrap; }
.reco-filter-bar input[type="text"] { flex: 1; max-width: 400px; padding: 7px 12px; font-size: 0.85rem; }
.reco-filter-count { font-size: 0.78rem; color: #78909c; font-weight: 500; margin-left: auto; }
.reco-scroll-wrapper { max-height: 70vh; overflow-y: auto; border-radius: 8px; padding-right: 4px; }
.reco-scroll-wrapper::-webkit-scrollbar { width: 6px; }
.reco-scroll-wrapper::-webkit-scrollbar-track { background: #0f1923; border-radius: 3px; }
.reco-scroll-wrapper::-webkit-scrollbar-thumb { background: #37474f; border-radius: 3px; }
.reco-scroll-wrapper::-webkit-scrollbar-thumb:hover { background: #546e7a; }
.reco-container { display: flex; flex-direction: column; gap: 16px; }
.reco-card { background: #1a2733; border: 1px solid #2a3a4a; border-radius: 10px; padding: 16px 20px; }
.reco-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.reco-card-title { display: flex; align-items: center; gap: 10px; }
.reco-card-name { font-size: 1rem; font-weight: 700; color: #e0e0e0; font-family: 'JetBrains Mono', monospace; }
.reco-phase { padding: 2px 10px; border-radius: 10px; font-size: 0.72rem; font-weight: 600; }
.reco-phase-completed { background: #1b5e20; color: #a5d6a7; }
.reco-phase-running { background: #e65100; color: #ffcc80; }
.reco-phase-unknown { background: #37474f; color: #90a4ae; }
.reco-card-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; font-size: 0.82rem; color: #90a4ae; }
.reco-card-meta strong { color: #b0bec5; }
.reco-card-message { background: #0f1923; border: 1px solid #1e2d3d; border-radius: 6px; padding: 10px 14px; font-size: 0.82rem; color: #81d4fa; line-height: 1.5; margin-bottom: 8px; font-family: 'JetBrains Mono', monospace; word-break: break-word; }
.reco-card-times { display: flex; gap: 20px; font-size: 0.78rem; color: #78909c; margin-bottom: 12px; }
.reco-status-message { background: #0f1923; border: 1px solid #1e2d3d; border-radius: 6px; padding: 10px 14px; font-size: 0.82rem; color: #81d4fa; line-height: 1.5; margin-top: 8px; font-family: 'JetBrains Mono', monospace; word-break: break-word; }
.reco-table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 0.85rem; color: #90a4ae; font-weight: 600; }
.reco-table-scroll { max-height: 400px; overflow: auto; border-radius: 6px; border: 1px solid #1e2d3d; }
.reco-table { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
.reco-table thead { background: #263545; position: sticky; top: 0; z-index: 5; }
.reco-table th { padding: 6px 8px; text-align: left; font-size: 0.68rem; color: #90a4ae; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; white-space: nowrap; border-bottom: 2px solid #4fc3f7; }
.reco-table td { padding: 5px 8px; border-top: 1px solid #1e2d3d; }
.reco-table tr:hover { background: #1e2d3d; }
.reco-deploy-name { color: #4fc3f7; font-weight: 600; font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; white-space: nowrap; }
.reco-val { font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; color: #b0bec5; white-space: nowrap; }
.reco-changed { color: #66bb6a !important; font-weight: 700; background: rgba(102, 187, 106, 0.08); }
.reco-verdict { padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.reco-verdict-unset { background: #e65100; color: #ffcc80; }
.reco-verdict-waste { background: #b71c1c; color: #ef9a9a; }
.reco-verdict-ok { background: #1b5e20; color: #a5d6a7; }
.reco-verdict-other { background: #1a237e; color: #7986cb; }

/* Recommendation Detail Modal (pretty layout) */
.reco-detail { display: flex; flex-direction: column; gap: 16px; }
.reco-detail-banner { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #1a2733 0%, #1e3a5f 100%); border: 1px solid #2a5080; border-radius: 12px; padding: 18px 24px; }
.reco-detail-banner-left { display: flex; align-items: center; gap: 14px; }
.reco-detail-name { font-size: 1.15rem; font-weight: 800; color: #e0e0e0; font-family: 'JetBrains Mono', monospace; }
.reco-detail-banner-right { display: flex; gap: 20px; }
.reco-detail-stat { display: flex; flex-direction: column; align-items: center; }
.reco-detail-stat-val { font-size: 1.4rem; font-weight: 800; color: #4fc3f7; font-family: 'JetBrains Mono', monospace; }
.reco-detail-stat-lbl { font-size: 0.65rem; color: #78909c; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.reco-detail-verdicts { display: flex; gap: 8px; flex-wrap: wrap; }
.reco-verdict-pill { padding: 5px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; }
.reco-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reco-detail-card { background: #1a2733; border: 1px solid #2a3a4a; border-radius: 10px; padding: 14px 18px; }
.reco-detail-card-title { font-size: 0.85rem; font-weight: 700; color: #4fc3f7; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #263545; }
.reco-detail-kv { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px solid #0f1923; }
.reco-detail-kv:last-child { border-bottom: none; }
.reco-detail-k { color: #78909c; font-size: 0.8rem; font-weight: 600; }
.reco-detail-v { color: #e0e0e0; font-size: 0.82rem; text-align: right; max-width: 60%; word-break: break-all; }
.reco-detail-mono { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #4fc3f7; }
.reco-detail-thresh-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; }
.reco-detail-thresh { background: #0f1923; border-radius: 6px; padding: 8px; text-align: center; }
.reco-detail-thresh-lbl { display: block; font-size: 0.65rem; color: #78909c; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 2px; }
.reco-detail-thresh-val { font-size: 0.95rem; font-weight: 700; color: #4fc3f7; font-family: 'JetBrains Mono', monospace; }
.reco-detail-exclude-tag { display: inline-block; background: #3e2723; color: #ffab91; padding: 2px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; margin: 2px; }
.reco-detail-status-msg { background: #0f1923; border: 1px solid #1e2d3d; border-radius: 6px; padding: 10px 14px; font-size: 0.8rem; color: #81d4fa; line-height: 1.5; margin-top: 8px; font-family: 'JetBrains Mono', monospace; word-break: break-word; }
.reco-detail-meta { background: #162230; border: 1px solid #2a3a4a; border-radius: 8px; padding: 10px 14px; font-size: 0.82rem; }
.reco-detail-meta summary { cursor: pointer; color: #78909c; font-weight: 600; }
.reco-detail-meta summary:hover { color: #b0bec5; }
.reco-detail-table-section { background: #1a2733; border: 1px solid #2a3a4a; border-radius: 10px; padding: 14px 18px; }
.reco-detail-table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.9rem; color: #4fc3f7; font-weight: 700; }

/* Responsive */
@media (max-width: 768px) {
  header { flex-direction: column; gap: 10px; }
  .summary-cards { gap: 8px; }
  .card { min-width: 80px; padding: 10px; }
  .card-value { font-size: 1.3rem; }
  td, th { padding: 6px 8px; font-size: 0.75rem; }
}
