/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

:root {
  --brand-logo-size: 2.5625rem; /* ~41px, single source of truth for logo dimensions */
}

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
}

.app-brand-logo.demo svg {
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* Collapsed icon rail: hide section titles (they render as a "一" / dots glyph)
   and the duplicate brand (navbar already shows the logo). */
@media (min-width: 1200px) {
  html.layout-menu-collapsed:not(.layout-menu-hover) .layout-menu .app-brand {
    display: none !important;
  }
  html.layout-menu-collapsed:not(.layout-menu-hover) .layout-menu .menu-inner > .menu-header {
    display: none !important;
  }
  html.layout-menu-collapsed:not(.layout-menu-hover) .layout-menu .menu-inner {
    padding-top: 0.75rem !important;
  }

  /* Keep the frosted navbar overlay off the sidebar. */
  .layout-navbar-fixed .layout-wrapper:not(.layout-horizontal) .layout-page::before {
    left: 16.25rem;
    width: auto;
    right: 0;
  }
  html.layout-menu-collapsed:not(.layout-menu-hover) .layout-page::before {
    left: 5.25rem;
  }
}

/* Light mode sidebar must stay light — do not keep the semi-dark navy rail. */
html.light-style .layout-menu.bg-menu-theme {
  background-color: #ffffff !important;
  color: #6f6b7d !important;
  border-right: 1px solid #ecebf1;
}
html.light-style .layout-menu.bg-menu-theme .menu-link,
html.light-style .layout-menu.bg-menu-theme .menu-link div,
html.light-style .layout-menu.bg-menu-theme .menu-header-text {
  color: #5d596c !important;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 78px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/* Dark theme: one surface, one accent — no rainbow cards or white hero */
html.dark-style {
  --bs-body-bg: #12141c;
  --bs-body-color: #d8dbe3;
}
.dark-style .layout-page,
.dark-style .content-wrapper,
.dark-style .container-p-y,
.dark-style body {
  background: #12141c !important;
}
.dark-style .bg-navbar-theme,
.dark-style .layout-navbar {
  background: #1a1d27 !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Vuexy paints a viewport-wide frosted bar (z-index 10) over the sidebar + navbar.
   theme-semi-dark.css always uses the LIGHT white fade, which looks wrong in dark mode. */
html.dark-style.layout-navbar-fixed .layout-page::before {
  display: none !important;
}

html.dark-style .app-brand-img,
html.dark-style .app-brand-img-collapsed {
  filter: invert(1) brightness(1.12);
}
html.dark-style .app-brand-text,
html.dark-style .layout-navbar .menu-text,
html.dark-style .layout-menu .menu-text {
  color: #f3f5fa !important;
}
.dark-style .bg-menu-theme,
.dark-style .layout-menu {
  background: #161822 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.dark-style .bg-primary-subtle {
  background: #1c2030 !important;
  color: #e6e8ee !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.dark-style .bg-primary-subtle h3,
.dark-style .bg-primary-subtle .fw-bold {
  color: #f2f4f8 !important;
}
.dark-style .bg-primary-subtle .text-muted,
.dark-style .bg-primary-subtle p {
  color: #9aa3b5 !important;
}
.dark-style .card {
  background: #1a1d27 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: #d8dbe3;
}
.dark-style .card-header {
  background: transparent !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
.dark-style .bg-label-primary,
.dark-style .bg-label-success,
.dark-style .bg-label-warning,
.dark-style .bg-label-info,
.dark-style .bg-label-danger {
  background: #22263a !important;
  color: #e6e8ee !important;
}
.dark-style .card.hoverable h5,
.dark-style .card.hoverable .text-primary,
.dark-style .card.hoverable .text-success,
.dark-style .card.hoverable .text-warning,
.dark-style .card.hoverable .text-info,
.dark-style .card.hoverable .text-danger {
  color: #e6e8ee !important;
}
.dark-style .card.hoverable .fs-1,
.dark-style .card.hoverable .text-primary.fs-1,
.dark-style .card.hoverable .text-success.fs-1,
.dark-style .card.hoverable .text-warning.fs-1,
.dark-style .card.hoverable .text-info.fs-1,
.dark-style .card.hoverable .text-danger.fs-1 {
  color: #8b9cff !important;
}
.dark-style .btn-outline-primary,
.dark-style .btn-outline-secondary {
  border-color: rgba(139, 156, 255, 0.35);
  color: #c5ccff;
  background: transparent;
}
.dark-style .btn-outline-primary:hover,
.dark-style .btn-outline-secondary:hover {
  background: rgba(139, 156, 255, 0.12);
  color: #e8ebff;
  border-color: #8b9cff;
}
.dark-style .text-muted {
  color: #9aa3b5 !important;
}

.sts-hero {
  background: #eef1ff;
  color: #1c2030;
}
.sts-hero-sub {
  color: #4b5568;
  margin-bottom: 1.5rem;
}
.sts-card-sub {
  color: #5b6475;
}

html.dark-style {
  --bs-primary-bg-subtle: #2a3148 !important;
  --bs-body-color: #f3f5fa;
  --bs-secondary-color: #d7dce8;
  --bs-emphasis-color: #ffffff;
}
html.dark-style,
html.dark-style body {
  color: #f3f5fa !important;
}
html.dark-style .sts-hero {
  background: #2a3148 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html.dark-style .sts-hero h3,
html.dark-style .sts-hero .fw-bold {
  color: #ffffff !important;
}
html.dark-style .sts-hero-sub,
html.dark-style .sts-hero p {
  color: #e2e6f0 !important;
}
html.dark-style .sts-hero .btn-outline-primary,
html.dark-style .sts-hero .btn-outline-secondary {
  color: #ffffff !important;
  border-color: #d7dcff !important;
  background: rgba(0, 0, 0, 0.25) !important;
}
html.dark-style .sts-card-sub,
html.dark-style .card.hoverable .small,
html.dark-style .card .text-muted,
html.dark-style .small,
html.dark-style small {
  color: #d7dce8 !important;
  opacity: 1 !important;
}
html.dark-style h1,
html.dark-style h2,
html.dark-style h3,
html.dark-style h4,
html.dark-style h5,
html.dark-style h6,
html.dark-style .card-header h5 {
  color: #ffffff !important;
}
html.dark-style .menu-link,
html.dark-style .menu-inner .menu-item .menu-link div {
  color: #eef1f7 !important;
}
html.dark-style .menu-header-text {
  color: #c9d0de !important;
  opacity: 1 !important;
}
html.dark-style .btn-outline-primary,
html.dark-style .btn-outline-secondary {
  color: #ffffff !important;
  border-color: #c5ccff !important;
}
html.dark-style .content-footer,
html.dark-style .footer,
html.dark-style .text-body {
  color: #d7dce8 !important;
}
html.dark-style .sts-quick-link {
  display: flex;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  color: #eef1f7;
  text-decoration: none;
  background: #22263a;
  border: 1px solid transparent;
}
html.dark-style .sts-quick-link:hover {
  background: #2a3148;
  color: #ffffff;
  border-color: rgba(197, 204, 255, 0.35);
}
/* Light mode: one surface, one accent — no frost overlay or rainbow tiles */
html.light-style body,
html.light-style .layout-page,
html.light-style .content-wrapper {
  background: #f4f5f9 !important;
}
html.light-style.layout-navbar-fixed .layout-page::before {
  display: none !important;
}
html.light-style .layout-navbar.navbar-detached,
html.light-style .bg-navbar-theme {
  background: #ffffff !important;
  box-shadow: 0 1px 0 #ecebf1 !important;
  border: 1px solid #ecebf1 !important;
}
@media (min-width: 1200px) {
  html.light-style:not(.layout-menu-collapsed) #layout-navbar .navbar-brand {
    display: none !important;
  }
}
html.light-style .sts-hero {
  background: #ffffff;
  color: #1c2030;
  border: 1px solid #ecebf1;
}
html.light-style .card {
  border-color: #ecebf1;
  box-shadow: none;
}
html.light-style .card.hoverable {
  background: #ffffff;
}
html.light-style .card.hoverable:hover {
  border-color: #c9c4f5;
  box-shadow: 0 0.5rem 1.25rem rgba(115, 103, 240, 0.08);
}
html.light-style .sts-quick-link {
  display: flex;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  color: #5d596c;
  text-decoration: none;
  background: #f6f7fb;
  border: 1px solid transparent;
}
html.light-style .sts-quick-link:hover {
  background: #eef1ff;
  color: #5e50ee;
  border-color: #d9d6fb;
}
html.light-style .layout-menu.bg-menu-theme .menu-item.active > .menu-link {
  background: #eef1ff !important;
  color: #5e50ee !important;
}
html.light-style .layout-menu.bg-menu-theme .menu-item.active > .menu-link div {
  color: #5e50ee !important;
}
