body {
  margin: 0;
  padding: 0;
  background: #f5f7fa;
  font-family: Arial, sans-serif;
  color: #1f2937;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
}

.page-header h1 {
  margin-bottom: 5px;
}

.page-header p {
  margin-top: 0;
  color: #6b7280;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: white;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

.button.primary {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.button.danger {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
}

.checkbox label {
  display: inline;
  margin-left: 6px;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.servers-table {
  width: 100%;
  border-collapse: collapse;
}

.servers-table th,
.servers-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.servers-table th {
  color: #6b7280;
  font-size: 13px;
}

.actions {
  white-space: nowrap;
}

.status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.status-unknown {
  background: #e5e7eb;
}

.status-online {
  background: #dcfce7;
  color: #166534;
}

.status-offline {
  background: #fee2e2;
  color: #991b1b;
}

.status-error {
  background: #fef3c7;
  color: #92400e;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
}

dt {
  font-weight: bold;
  color: #6b7280;
}

dd {
  margin: 0;
}

.notice {
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.errors {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.danger-zone {
  border-color: #fecaca;
}

.empty-state {
  text-align: center;
  padding: 50px;
}

@media (max-width: 800px) {
  .server-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.alert {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.metrics-section {
  margin-top: 30px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.metric-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 22px;
}

.metric-label {
  display: block;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
}

.metric-value {
  display: block;
  font-size: 28px;
  margin-bottom: 5px;
}

.metric-card small {
  color: #6b7280;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-actions form {
  margin: 0;
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
.host-key-warning {
  border: 1px solid #f59e0b;
  background: #fffbeb;
}

.host-key-warning h2 {
  color: #92400e;
}

.fingerprint-box {
  margin: 20px 0;
  padding: 16px;
  background: #111827;
  border-radius: 8px;
  overflow-x: auto;
}

.fingerprint-box strong {
  display: block;
  color: #d1d5db;
  margin-bottom: 8px;
}

.fingerprint-box code {
  color: #f9fafb;
  font-size: 14px;
  word-break: break-all;
}

.error-message {
  color: #b91c1c;
  word-break: break-word;
}

.oracle-section {
  margin-top: 30px;
  margin-bottom: 30px;
}

.oracle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.oracle-card {
  position: relative;
}

.oracle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.oracle-card-header h3 {
  margin: 0 0 8px 0;
  font-size: 24px;
}

.oracle-home {
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
}

.oracle-button {
  background: #b91c1c;
  color: white;
  border-color: #b91c1c;
}

.oracle-button:hover {
  background: #991b1b;
  text-decoration: none;
}

@media (max-width: 900px) {
  .oracle-grid {
    grid-template-columns: 1fr;
  }
}

.availability-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.availability-section h4 {
  margin-top: 0;
  margin-bottom: 16px;
}

.availability-summary {
  margin-bottom: 18px;
}

.oracle-services {
  word-break: break-word;
}

.empty-inline {
  padding: 12px 0;
  color: #6b7280;
}

.oracle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.oracle-actions form {
  margin: 0;
}

.storage-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.storage-section h4 {
  margin-top: 0;
  margin-bottom: 8px;
}

.storage-section h5 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 16px;
}

.storage-checked-at {
  color: #6b7280;
  margin-bottom: 18px;
}

.storage-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.storage-growth {
  margin-top: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.tablespaces-section {
  margin-top: 24px;
}

.tablespaces-section .servers-table {
  min-width: 1100px;
}

@media (max-width: 1000px) {
  .storage-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .storage-metrics-grid {
    grid-template-columns: 1fr;
  }
}