/* Force desktop-width layout on all viewports.
   The <meta viewport width=1280> handles real mobile browsers;
   min-width prevents CSS reflow below 1280px as a fallback. */
html, body {
  min-width: 1280px;
}

/* Remove default body margin and padding */
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove top margin/padding from navbar container */
#navbar-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Language flag images inside the Fomantic menu */
.ui.menu .lang-flag {
  height: 18px;
  width: auto;
  display: inline-block;
  border-radius: 2px;
  vertical-align: middle;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.ui.menu .lang-dropdown:hover .lang-flag {
  opacity: 1;
}

/* ── Language dropdown trigger ── */
.lang-dropdown.ui.dropdown.item {
  padding: 0.45em 0.6em !important;
  display: flex !important;
  align-items: center !important;
}

/* Dropdown caret arrow */
.lang-dropdown .dropdown.icon {
  margin-left: 0.35em !important;
  font-size: 0.75em;
}

/* ── Dropdown menu panel ── */
.lang-dropdown > .menu {
  min-width: 100px !important;
  right: 0 !important;
  left: auto !important;
  border-radius: 0 0 5px 5px !important;
  background: #fff !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  margin-top: 0 !important;
  padding: 4px 0 !important;
}

/* Individual items inside the dropdown */
.lang-dropdown .menu > .lang-dropdown-item.item {
  display: flex !important;
  align-items: center !important;
  padding: 0.55em 0.9em !important;
  font-size: 0.8em !important;
  color: #333 !important;
  line-height: 1.3 !important;
}
.lang-dropdown .menu > .lang-dropdown-item.item:hover {
  background: rgba(33, 133, 208, 0.09) !important;
  color: #1a1a1a !important;
}
.lang-dropdown .menu > .lang-dropdown-item.item.active {
  background: rgba(33, 133, 208, 0.14) !important;
  font-weight: 700 !important;
}

/* Flags inside dropdown items */
.lang-dropdown .menu .lang-flag {
  height: 16px !important;
  opacity: 1 !important;
}

body :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
  font-size: 16px !important;
}

/* Override the blanket 16px rule for Fomantic UI menus so size classes work */
body .ui.massive.menu .item,
body .ui.massive.menu {
  font-size: 1.71428571rem !important;
}
body .ui.huge.menu .item,
body .ui.huge.menu {
  font-size: 1.42857143rem !important;
}
body .ui.large.menu .item,
body .ui.large.menu {
  font-size: 1.14285714rem !important;
}

/* Tabular inverted menu: active tab stands out, items evenly spaced */
.ui.tabular.inverted.menu .item {
  border-bottom: 3px solid transparent;
}
.ui.tabular.inverted.menu .active.item {
  border-bottom: 3px solid white;
  background: rgba(255, 255, 255, 0.12);
}

/* Custom green color for primary action buttons */
.ui.button.green {
  background-color: #4CBB17 !important;
}

.ui.button.green:hover {
  background-color: #3A9B12 !important;
}

/* Custom blue color for test/secondary buttons */
.ui.button.blue-action {
  background-color: #1976D2 !important;
}

.ui.button.blue-action:hover {
  background-color: #1565C0 !important;
}


/* Make checkboxes outlined in black and larger on the landing page */
#landing-page .form-check-input {
  border-color: black;
  width: 1.4em;
  height: 1.4em;
  margin-top: 0.15em;
  cursor: pointer;
}

#landing-page .form-check-label {
  font-size: 15px;
  padding-left: 0.4em;
  cursor: pointer;
}

/* Info page styling (About, Contact, Demo pages) */
.info-page {
  min-height: 100vh;
  padding: 40px clamp(24px, 5vw, 60px) 60px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 35%, #fff7ed 100%);
  margin: 0 auto;
  max-width: 1100px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* H1 title styling for info pages */
.info-page h1 {
  font-family: inherit !important;
  font-size: 36px !important;
  font-weight: 800 !important;
  color: #0f172a;
  margin-bottom: 16px;
  margin-top: 0;
  letter-spacing: -0.01em;
}

/* H2 subtitle styling for info pages */
.info-page h2 {
  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1565c0;
  margin-bottom: 8px;
  margin-top: 18px;
}

/* FAQ / info page question headings */
.info-page h3,
.info-page .ui.segment h3 {
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  letter-spacing: 0.01em !important;
  margin-bottom: 6px !important;
  margin-top: 0 !important;
}

/* FAQ / info page body text */
.info-page p,
.info-page .ui.segment p {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: #374151 !important;
  margin-bottom: 0 !important;
}

.info-page a {
  color: #1565c0;
  text-decoration: underline;
  word-break: break-all;
}
.info-page a:hover {
  color: #0d47a1;
}

/* Study design content styling */
.study-design-content h1,
.study-design-content h2,
.study-design-content h3,
.study-design-content h4 {
  font-family: inherit !important;
}

.study-design-content h1 {
  font-size: 24px !important;
  font-weight: 700;
  color: #0f172a;
  margin-top: 24px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.study-design-content h2 {
  font-size: 20px !important;
  font-weight: 700;
  color: #1565c0;
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.study-design-content h3 {
  font-size: 18px !important;
  font-weight: 600;
  color: #334155;
  margin-top: 16px;
  margin-bottom: 8px;
}

.study-design-content p {
  line-height: 1.7;
  margin-bottom: 10px;
  color: #1e293b;
}

.study-design-content ul,
.study-design-content ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.study-design-content li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.study-design-content img {
  max-width: 100%;
  width: auto;
  min-width: 300px;
  height: auto;
  display: block;
  margin: 16px auto;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

/* Suppress Dash's default "Loading..." text and white flash during callback
   updates to page-content / navbar-container.  Dash inserts a ._dash-loading
   element that replaces the previous children while the new callback response
   is in flight — hiding it keeps the old content visible for a seamless feel. */
._dash-loading {
  display: none !important;
}

/* H3 subtitle styling for consent notice (match required consent title style) */
#consent-notice-scroll h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  margin-top: 18px;
}


