/* Todify colors on top of Scalar's default theme. Scalar puts .light-mode / .dark-mode on <body>. */

body {
  margin: 0;
  --scalar-custom-header-height: 56px;
}

.light-mode {
  --scalar-color-accent: #037BAF;
  --scalar-background-accent: #0495C71a;
  --scalar-background-1: #ffffff;
  --scalar-background-2: #f6f8fa;
  --scalar-background-3: #eef2f5;
  --scalar-sidebar-background-1: #f6f8fa;
  --scalar-sidebar-item-active-background: #0495C71f;
  --scalar-sidebar-color-active: #0068AE;
  --site-header-bg: #ffffff;
  --site-header-border: #e3e8ec;
  --site-header-text: #3a4650;
}

.dark-mode {
  --scalar-color-accent: #38b6e3;
  --scalar-background-accent: #0495C72e;
  --scalar-background-1: #0B1B26;
  --scalar-background-2: #102431;
  --scalar-background-3: #16303f;
  --scalar-sidebar-background-1: #0d202c;
  --scalar-sidebar-item-active-background: #0495C738;
  --scalar-sidebar-color-active: #7fd3f0;
  --site-header-bg: #0B1B26;
  --site-header-border: #1d3a4b;
  --site-header-text: #c3d3dd;
}

/* Scalar's paid SDK generator: not something Todify offers */
.generate-sdk-button,
.selected-client-row .selected-client-action {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--scalar-custom-header-height);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: var(--site-header-bg, #ffffff);
  border-bottom: 1px solid var(--site-header-border, #e3e8ec);
  font-family: var(--scalar-font, system-ui, sans-serif);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo {
  height: 22px;
  width: auto;
}

.logo-dark,
.dark-mode .logo-light {
  display: none;
}

.dark-mode .logo-dark {
  display: block;
}

.brand-label {
  padding-left: 10px;
  border-left: 1px solid var(--site-header-border, #e3e8ec);
  color: var(--site-header-text, #3a4650);
  font-size: 14px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.site-nav a {
  color: var(--site-header-text, #3a4650);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--scalar-color-accent);
}

.site-nav .cta {
  padding: 7px 14px;
  border-radius: 8px;
  background: #0495C7;
  color: #ffffff;
  font-weight: 500;
}

.site-nav .cta:hover {
  background: #037BAF;
  color: #ffffff;
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 14px;
  }

  .hide-phone,
  .brand-label {
    display: none;
  }
}
