/* Base styles */
body {
  font-family: system-ui, -apple-system, Roboto, "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f9fafb;
  color: #111827;
  line-height: 1.5;
}

.container {
  max-width: 960px;
  margin: 24px auto;
  padding: 16px;
}

/* Topbar / header */
.topbar {
  background: linear-gradient(90deg, #103050, #0b63d6);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.topbar h1 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: 0.3px;
}
.nav a {
  color: #fff;
  margin-left: 14px;
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover {
  text-decoration: underline;
}

/* Tables / grid */
.grid {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.grid th, .grid td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
}
.grid th {
  text-align: left;
  font-weight: 600;
  background: #f3f4f6;
}
.grid tr:last-child td {
  border-bottom: none;
}
.grid tr:hover td {
  background: #f9fafc;
}

/* Messages */
.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.hint {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 6px;
}
small {
  color: #6b7280;
}

/* Footer */
footer.container {
  margin-top: 28px;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

/* Code blocks */
pre {
  white-space: pre-wrap;
  background: #f3f4f6;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

/* Buttons */
button, .btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(90deg, #0b63d6, #0b95ff);
  color: #fff;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
button:hover, .btn:hover {
  box-shadow: 0 4px 12px rgba(11,99,214,0.2);
}
button:active, .btn:active {
  transform: translateY(1px);
}

/* Inputs */
input[type="text"], input[type="password"], input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  background: #fff;
  box-sizing: border-box;
}
input:focus {
  outline: none;
  border-color: #0b63d6;
  box-shadow: 0 0 0 3px rgba(11,99,214,0.15);
}
