.page {
  max-width: 980px;
  margin: 32px auto;
  padding: 0 16px 48px;
  font-family: "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #dbeafe;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body {
  background: radial-gradient(circle at top, #1e293b 0%, #0b1220 45%, #070b14 100%);
  margin: 0;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
}

h1 {
  margin: 0;
  color: #f8fafc;
  letter-spacing: 0.2px;
}

.sub {
  margin: 8px 0 0;
  color: #93c5fd;
}

.panel {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid #23314d;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(2, 8, 23, 0.45);
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  justify-content: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  width: 100%;
}

label {
  font-weight: 600;
  color: #bfdbfe;
}

select,
button {
  border-radius: 10px;
  border: 1px solid #304466;
  padding: 10px 14px;
  font-size: 14px;
}

select {
  background: #0b1325;
  color: #dbeafe;
}

button {
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
}

button.secondary {
  background: #1e293b;
  color: #dbeafe;
  border: 1px solid #304466;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  color: #e2e8f0;
}

.metric.big {
  font-size: 36px;
  font-weight: 700;
  margin: 10px 0;
}

.metric .label {
  font-size: 12px;
  color: #93c5fd;
  text-transform: uppercase;
}

.unit {
  font-size: 14px;
  color: #93c5fd;
}

.status {
  margin: 8px 0 4px;
  color: #86efac;
  font-weight: 600;
  text-align: center;
  min-height: 22px;
}

.history {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: #cbd5e1;
  max-height: 200px;
  overflow: auto;
  background: #0b1325;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid #22304a;
}

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

.server-detail-item {
  background: #0b1325;
  border: 1px solid #22304a;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 64px;
  justify-content: center;
}

.server-detail-label {
  font-size: 12px;
  color: #93c5fd;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .server-detail-grid {
    grid-template-columns: 1fr;
  }
  .metric.big {
    font-size: 30px;
  }
}
