:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.16), transparent 26rem),
    #0f172a;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

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

h1, h2, p {
  margin-top: 0;
}

h1 {
  font-size: 42px;
  margin-bottom: 8px;
}

h2 {
  font-size: 20px;
}

.badge {
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 999px;
  color: #bfdbfe;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}

.card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13px;
  color: #cbd5e1;
  margin: 14px 0 6px;
}

input, select {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.55);
  color: #f8fafc;
  outline: none;
}

input:focus, select:focus {
  border-color: rgba(96, 165, 250, 0.9);
}

button {
  cursor: pointer;
  margin-top: 16px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: white;
  font-weight: 700;
}

button:hover {
  background: #1d4ed8;
}

button.secondary {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

button.danger {
  background: #dc2626;
}

button.danger:hover {
  background: #b91c1c;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hint {
  margin-top: 10px;
  color: #94a3b8;
  font-size: 13px;
}

.status {
  margin: 12px 0;
  color: #bfdbfe;
  min-height: 22px;
}

.sectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.databaseList {
  display: grid;
  gap: 12px;
}

.databaseItem {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.35);
  border-radius: 14px;
  padding: 14px;
}

.databaseItem strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.databaseMeta {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

.databaseActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.databaseActions button {
  margin-top: 0;
  padding: 9px 11px;
}

@media (max-width: 860px) {
  .header {
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

.databaseDetails {
  margin-top: 12px;
}

.detailsBox {
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(30, 64, 175, 0.12);
  border-radius: 12px;
  padding: 12px;
}

.detailsBox pre {
  white-space: pre-wrap;
  overflow-x: auto;
  color: #dbeafe;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
}
