:root {
  --cui-font-sans-serif: "DejaVu Sans Mono", "Liberation Mono", "Ubuntu Mono", "Courier New", monospace;
  --cui-font-monospace: "DejaVu Sans Mono", "Liberation Mono", "Ubuntu Mono", "Courier New", monospace;
  --cui-body-font-family: var(--cui-font-monospace);
}

html,
body,
button,
input,
select,
textarea,
.table,
.card,
.sidebar,
.header,
.btn,
.form-control {
  font-family: var(--cui-body-font-family);
}

.progress-sm {
  height: 8px;
}

.progress-cell {
  min-width: 120px;
}

.gauge-card .card-body {
  padding: 1.25rem 1rem 1rem;
}

.gauge-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cui-secondary-color);
  margin-bottom: 0.5rem;
}

.gauge-wrap {
  position: relative;
  width: 160px;
  max-width: 100%;
  margin: 0 auto;
}

.gauge-svg {
  display: block;
  width: 100%;
  height: auto;
}

.gauge-value {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cui-body-color);
}

.gauge-used {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cui-body-color);
}

.gauge-detail {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--cui-secondary-color);
}

.gauge-fill {
  transition: stroke-dashoffset 0.4s ease;
}

.table-vm-columns {
  --vm-col-a: rgba(50, 31, 219, 0.04);
  --vm-col-b: rgba(50, 31, 219, 0.1);
}

.table-vm-columns thead th:nth-child(odd),
.table-vm-columns tbody td:nth-child(odd) {
  background-color: var(--vm-col-a);
}

.table-vm-columns thead th:nth-child(even),
.table-vm-columns tbody td:nth-child(even) {
  background-color: var(--vm-col-b);
}

.table-vm-columns.table-hover tbody tr:hover td {
  background-color: rgba(50, 31, 219, 0.16);
}

.vm-ip-cell {
  min-width: 110px;
  white-space: nowrap;
}

.btn-ip-badge {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.btn-ip-badge:hover {
  opacity: 0.85;
}

.btn-ip-badge:focus {
  outline: 2px solid rgba(50, 31, 219, 0.35);
  outline-offset: 1px;
}

.vm-metric-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#vmDetailContent code {
  word-break: break-all;
}

.action-cell {
  white-space: nowrap;
}

.action-cell .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.action-cell .btn-icon .icon {
  width: 1rem;
  height: 1rem;
}

#sshTerminalMount {
  height: 420px;
  background: #0d1117;
  border-radius: 0.375rem;
  padding: 0.5rem;
  overflow: hidden;
}

#sshTerminalMount .xterm {
  height: 100%;
}

.file-manager-table-wrap {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--cui-border-color, #dee2e6);
  border-radius: 0.375rem;
}

.file-editor-panel {
  border-top: 1px solid var(--cui-border-color, #dee2e6);
  padding-top: 0.75rem;
}

.file-editor-textarea {
  min-height: 220px;
  font-size: 0.85rem;
  line-height: 1.4;
  resize: vertical;
}
