:root {
  --font-base: "Segoe UI", Arial, sans-serif;
  --btn-font-size: 0.95rem;
  --btn-height: 40px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  background: #0f172a;
  color: #e5e7eb;
}

header, footer {
  padding: 0.75rem 1rem;
  background: #0b1221;
  color: #cbd5e1;
}

.brand {
  font-size: 3rem !important;
  font-weight: 700;
  color: #e5e7eb;
  text-decoration: none;
  line-height: 1.1;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.brand-img {
  height: 56px;
  width: auto;
  display: block;
}
.brand-text {
  display: none; /* shown only if image fails */
  flex-direction: column;
  gap: 0.1rem;
}
.brand-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: #f7c948;
  letter-spacing: 0.12em;
}
.brand small {
  font-size: 0.85rem;
  font-weight: 400;
  color: #cbd5e1;
  margin-left: 0.35rem;
}

main {
  padding: 0 1rem 2rem 1rem;
}

table {
  width: 100%;
  color: #e5e7eb;
}

.grid {
  display: grid;
  gap: 0.75rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.btn, button.btn, a.btn {
  font-family: var(--font-base);
  font-size: var(--btn-font-size);
  line-height: 1.1;
  min-height: var(--btn-height);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #111827;
  color: #e5e7eb;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.1;
}

.btn:hover {
  background: #1f2937;
}

.btn-primary {
  background: #2563eb;
  border-color: #1d4ed8;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: #1f2937;
  border-color: #111827;
}

.btn-danger {
  background: #b91c1c;
  border-color: #991b1b;
}

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-link {
  background: transparent;
  border: none;
  color: #93c5fd;
  padding: 0;
  min-height: auto;
}

input, select, textarea {
  background: #111827;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
}

input:focus, select:focus, textarea:focus {
  outline: 1px solid #2563eb;
}
