/* Blue Byte Systems - site-wide overrides for the docfx modern template */

/* Navbar brand logo (default template renders it tiny) */
#logo {
  width: 34px;
  height: 34px;
  max-width: 34px;
  object-fit: contain;
}

.navbar-brand,
.navbar-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding-top: 6px;
  padding-bottom: 6px;
}

@media (max-width: 768px) {
  #logo {
    width: 30px;
    height: 30px;
    max-width: 30px;
  }
}

/* Trial actions above the page navigation */
body > main > .content > .bbs-content-trials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 16px 0 8px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, #1f7ed0 24%, var(--bs-border-color, #d7dde4));
  border-left: 3px solid #2f8fd4;
  border-radius: 6px;
  background: color-mix(in srgb, #1f7ed0 6%, var(--bs-body-bg, #fff));
  flex-wrap: wrap;
}

.bbs-content-trials-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bbs-content-trials-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #dceefa;
  color: #0c65a8;
  font-size: 16px;
}

.bbs-content-trials-key {
  position: absolute;
  right: 2px;
  bottom: 1px;
  padding: 1px;
  border-radius: 50%;
  background: #dceefa;
  font-size: 10px;
}

.bbs-content-trials-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.bbs-content-trials-logo {
  display: block;
  flex: 0 0 auto;
  width: 104px;
  max-width: 100%;
  height: auto;
}

.bbs-content-trials-title {
  color: var(--bs-body-color);
  font-size: 14px;
  font-weight: 600;
}

.bbs-content-trials-note {
  color: var(--bs-secondary-color, #5f6b7a);
  font-size: 12px;
  font-weight: 400;
}

.bbs-content-trials-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.bbs-content-trial-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #84b7df;
  background: #eaf4fc;
  color: #0c5f9f !important;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none !important;
}

.bbs-content-trial-button:hover,
.bbs-content-trial-button:focus {
  border-color: #5a9dce;
  background: #d7eaf8;
  color: #084b7d !important;
  text-decoration: none !important;
}

[data-bs-theme="dark"] body > main > .content > .bbs-content-trials {
  border-color: #345c7a;
  border-left-color: #4aa4e6;
  background: #192c3a;
}

[data-bs-theme="dark"] .bbs-content-trials-icon,
[data-bs-theme="dark"] .bbs-content-trials-key {
  background: #24445d;
  color: #8acbf5;
}

[data-bs-theme="dark"] .bbs-content-trial-button {
  border-color: #4d86b5;
  background: #263f54;
  color: #d8efff !important;
}

[data-bs-theme="dark"] .bbs-content-trial-button:hover,
[data-bs-theme="dark"] .bbs-content-trial-button:focus {
  border-color: #66a5d7;
  background: #31536e;
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .bbs-content-trials {
    margin-top: 12px;
  }

  .bbs-content-trials-copy,
  .bbs-content-trials-actions {
    width: 100%;
  }
}

/* Center the landing page content */
[data-layout="landing"] main.container-xxl {
  display: block !important;
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

[data-layout="landing"] .content {
  display: block !important;
  flex: none !important;
  max-width: none !important;
  margin: 0 !important;
  width: 100% !important;
}

[data-layout="landing"] .actionbar,
[data-layout="landing"] .affix,
[data-layout="landing"] .contribution,
[data-layout="landing"] .next-article {
  display: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

[data-layout="landing"] article {
  display: block !important;
  width: min(100%, 1120px) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

[data-layout="landing"] .bbs-page {
  width: 100% !important;
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Footer */
footer {
  padding: 22px 0 26px;
  margin-top: 48px;
  font-size: 14px;
  height: auto !important;
  background: var(--bs-tertiary-bg, #f8fafc);
  border-top: 1px solid var(--bs-border-color, #dee2e6);
}

footer > .container-xxl {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

footer .flex-fill {
  width: 100% !important;
  text-align: center !important;
}

.bbs-site-footer {
  display: block;
  max-width: none;
  margin: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 20px;
  width: 100vw;
  line-height: 1.5;
  text-align: center !important;
  color: var(--bs-secondary-color, #5f6b7a);
  font-size: 13px;
}

.bbs-highlight-panel {
  border: 1px solid var(--bs-border-color, #9cc7f4);
  border-left: 5px solid #1f7ed0;
  border-radius: 8px;
  background: var(--bs-tertiary-bg, #f4f9ff);
  color: var(--bs-body-color);
  padding: 18px 20px;
  margin: 18px 0 24px;
}

.bbs-highlight-panel h3 {
  margin-top: 0;
}

.bbs-read-time {
  margin: -4px 0 18px;
  color: var(--bs-secondary-color, #5f6b7a);
  font-size: 14px;
}

.bbs-important-notes {
  border: 1px solid #9bd1b1;
  border-left: 5px solid #1f9d55;
  border-radius: 8px;
  background: color-mix(in srgb, #1f9d55 10%, var(--bs-body-bg, #fff));
  color: var(--bs-body-color);
  padding: 16px 20px;
  margin: 18px 0 26px;
}

.bbs-important-notes h2 {
  margin: 0 0 10px;
  color: #13713b;
  font-size: 20px;
}

.bbs-important-notes p {
  margin: 0 0 10px;
}

.bbs-important-notes ul {
  margin-bottom: 0;
}

[data-bs-theme="dark"] .bbs-important-notes {
  border-color: #2ba769;
  background: color-mix(in srgb, #1f9d55 18%, var(--bs-body-bg, #111));
}

[data-bs-theme="dark"] .bbs-important-notes h2 {
  color: #74d99d;
}

.bbs-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  background: #1f7ed0;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
}

.bbs-download-button:hover,
.bbs-download-button:focus {
  background: #155f9f;
  color: #fff !important;
  text-decoration: none !important;
}

.bbs-activation-code {
  display: inline-block;
  padding: 8px 10px;
  border: 1px solid var(--bs-border-color, #b7cce4);
  border-radius: 6px;
  background: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #16385f);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .bbs-site-footer {
    line-height: 1.6;
  }
}
