/* ===== Server Management ===== */
.server-status-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.server-status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

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

.server-status--online {
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.server-status--offline {
  background: #EF4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.server-status-label {
  font-size: 15px;
  font-weight: 600;
}

.server-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.server-stat {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}

.server-stat:nth-child(even) {
  border-right: none;
}

.server-stat:nth-last-child(-n+2) {
  border-bottom: none;
}

.server-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.server-stat-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.server-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.server-last-restart {
  margin-bottom: 20px;
}

.server-last-restart-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: 13px;
}

.server-last-restart-time {
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
}

.server-last-restart-reason {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-actions {
  margin-bottom: 20px;
}

.server-restart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #FEE2E2;
  color: #DC2626;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.server-restart-btn:hover {
  background: #DC2626;
  color: #fff;
}

.server-restart-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== Env-Up ===== */
.server-envup {
  margin-bottom: 24px;
}

.envup-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.envup-version,
.envup-last-check {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.envup-version-label,
.envup-check-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.envup-version-value,
.envup-check-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.envup-check-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #DBEAFE;
  color: #2563EB;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.envup-check-btn:hover {
  background: #2563EB;
  color: #fff;
}

.envup-check-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.envup-results {
  margin-top: 16px;
}

.envup-results-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-size: 14px;
  font-weight: 600;
}

.envup-results-list {
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  max-height: 400px;
  overflow-y: auto;
}

.envup-release {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.envup-release:last-child {
  border-bottom: none;
}

.envup-release-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 600;
}

.envup-release-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.envup-impact {
  padding: 3px 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.envup-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.envup-badge--breaking {
  background: #FEE2E2;
  color: #DC2626;
}

.envup-badge--medium {
  background: #FEF3C7;
  color: #D97706;
}

.envup-badge--safe {
  background: #D1FAE5;
  color: #059669;
}

.envup-history {
  margin-top: 16px;
}

.envup-history-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.envup-history-list {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-height: 200px;
  overflow-y: auto;
}

.envup-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-secondary);
}

.envup-history-item:last-child {
  border-bottom: none;
}

.envup-history-date {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 120px;
}

.envup-history-detail {
  flex: 1;
}

/* ===== Kaizen Health Dashboard ===== */
.kaizen-section {
  margin-bottom: 0;
