/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

/*
 * Dark-mode overrides
 * core.css defines --bs-paper-bg, --bs-base-color, shadows, etc. in :root only (light).
 * These custom vars are NOT overridden inside [data-bs-theme=dark], so cards,
 * accordions, modals, menus, etc. keep their white (#fff) background even in dark mode.
 * The block below provides the missing dark overrides.
 */
[data-bs-theme=dark] {
  /* === Base surfaces === */
  --bs-body-bg: #25293c;
  --bs-body-bg-rgb: 37, 41, 60;
  --bs-paper-bg: #2f3349;
  --bs-paper-bg-rgb: 47, 51, 73;
  --bs-base-color: #cfd3ec;
  --bs-base-color-rgb: 207, 211, 236;

  /* === Typography === */
  --bs-body-color: #b6bee3;
  --bs-body-color-rgb: 182, 190, 227;
  --bs-heading-color: #cfd3ec;
  --bs-emphasis-color: #e7e9f6;
  --bs-emphasis-color-rgb: 231, 233, 246;
  --bs-secondary-color: rgba(182, 190, 227, 0.75);
  --bs-secondary-color-rgb: 182, 190, 227;
  --bs-tertiary-color: rgba(182, 190, 227, 0.5);
  --bs-tertiary-color-rgb: 182, 190, 227;

  /* === Secondary / Tertiary backgrounds === */
  --bs-secondary-bg: #3b3f5f;
  --bs-secondary-bg-rgb: 59, 63, 95;
  --bs-tertiary-bg: #353a52;
  --bs-tertiary-bg-rgb: 53, 58, 82;

  /* === Borders === */
  --bs-border-color: #434968;
  --bs-border-color-translucent: rgba(255, 255, 255, 0.12);

  /* === Subtle backgrounds (labels / badges) === */
  --bs-primary-bg-subtle: #1a1740;
  --bs-secondary-bg-subtle: #1e1f33;
  --bs-success-bg-subtle: #112b12;
  --bs-info-bg-subtle: #0b2838;
  --bs-warning-bg-subtle: #332400;
  --bs-danger-bg-subtle: #3a0e0e;
  --bs-light-bg-subtle: #3b3f5f;
  --bs-dark-bg-subtle: #2f3349;
  --bs-bg-label-tint-amount: 80%;
  --bs-border-subtle-amount: 40%;

  /* === Subtle borders === */
  --bs-primary-border-subtle: #3f3d99;
  --bs-secondary-border-subtle: #4a4e6a;
  --bs-success-border-subtle: #2e6b23;
  --bs-info-border-subtle: #1a6b85;
  --bs-warning-border-subtle: #8c6100;
  --bs-danger-border-subtle: #8c2515;
  --bs-light-border-subtle: #545880;
  --bs-dark-border-subtle: #3b3f5f;

  /* === Links === */
  --bs-link-color: #a5a7ff;
  --bs-link-hover-color: #b5b7ff;
  --bs-link-color-rgb: 165, 167, 255;
  --bs-link-hover-color-rgb: 181, 183, 255;

  /* === Shadows === */
  --bs-box-shadow: 0 0.1875rem 0.5rem 0 rgba(0, 0, 0, 0.24);
  --bs-box-shadow-xs: 0 0.0625rem 0.3175rem 0 rgba(0, 0, 0, 0.16);
  --bs-box-shadow-sm: 0 0.125rem 0.375rem 0 rgba(0, 0, 0, 0.2);
  --bs-box-shadow-lg: 0 0.25rem 0.75rem 0 rgba(0, 0, 0, 0.3);
  --bs-box-shadow-xl: 0 0.3125rem 1.375rem 0 rgba(0, 0, 0, 0.36);
  --bs-floating-component-shadow: 0 0.1875rem 0.5rem 0 rgba(0, 0, 0, 0.24);

  /* === Navbar === */
  --bs-navbar-bg: var(--bs-paper-bg);
  --bs-navbar-box-shadow: none;
  --bs-navbar-border-color: var(--bs-border-color);
  --bs-nav-box-shadow: var(--bs-box-shadow);
  --bs-nav-border-color: var(--bs-border-color);

  /* === Menu / Sidebar === */
  --bs-menu-bg: #2b2c40;
  --bs-menu-bg-rgb: 43, 44, 64;
  --bs-menu-color: #b6bee3;
  --bs-menu-color-rgb: 182, 190, 227;
  --bs-menu-hover-bg: #33354d;
  --bs-menu-hover-color: #cfd3ec;
  --bs-menu-active-color: #fff;
  --bs-menu-active-bg: #696cff;
  --bs-menu-sub-active-bg: var(--bs-primary-bg-subtle);
  --bs-menu-sub-active-color: var(--bs-primary);
  --bs-menu-active-toggle-bg: #33354d;
  --bs-menu-box-shadow: 0 0.125rem 0.375rem 0 rgba(0, 0, 0, 0.16);
  --bs-menu-divider-color: #3b3f5f;
  --bs-menu-header-color: #7a7ea0;
}

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !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;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    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;
}
