/* Shared AstroGene header — white logo on dark bar */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 16px;
  margin: 0 -16px 24px;
  background: linear-gradient(135deg, #1a0a1f 0%, #2d1535 50%, #1e1030 100%);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 20px rgba(79, 24, 90, 0.25);
}
.site-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.site-logo-link img {
  height: 44px;
  width: auto;
  max-width: min(280px, 100%);
  object-fit: contain;
}
.site-logo-link:focus {
  outline: 2px solid rgba(196, 181, 253, 0.8);
  outline-offset: 4px;
  border-radius: 4px;
}
.site-line-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-line-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  max-height: 56px;
}
.site-line-qr {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
@media (max-width: 520px) {
  .site-line-caption {
    writing-mode: horizontal-tb;
    max-height: none;
  }
}

/* Logged-in bar: greeting + About me + logout (booking / records / personal-info) */
.app-user-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 15px;
}
.app-user-bar .app-user-greet {
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  white-space: nowrap;
}
.app-user-bar a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
  background: #fff;
  line-height: 1.2;
}
.app-user-bar a:hover {
  background: #eef2ff;
}
.app-user-bar button {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  cursor: pointer;
  line-height: 1.2;
}
.app-user-bar button:hover {
  background: #f1f5f9;
}

/* Full-viewport backdrop for FastAPI/Jinja pages (place image as app/static/AstroGene_Frontpage_Backdrop.jpg or .png) */
body {
  background-color: #faf8fc;
  background-image: url("/static/AstroGene_Frontpage_Backdrop.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
