/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.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;
}

/* Template Customizer */
.template-customizer-open-btn {
  position: fixed;
  top: 45%;
  right: 0;
  z-index: 1085;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: var(--bs-primary);
  color: #fff;
  box-shadow: 0 0.25rem 1rem rgba(var(--bs-primary-rgb), 0.35);
}

.template-customizer-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1090;
  width: min(360px, 100vw);
  height: 100vh;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-left: 1px solid var(--bs-border-color);
  box-shadow: -0.5rem 0 1.5rem rgba(34, 48, 62, 0.16);
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.template-customizer-panel.open {
  transform: translateX(0);
}

.template-customizer-body {
  height: calc(100vh - 73px);
  overflow: auto;
  padding: 1rem;
}

.template-customizer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.template-customizer-close,
.template-customizer-reset {
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color);
  padding: 0.25rem;
}

.template-customizer-section {
  margin-bottom: 1.25rem;
}

.template-customizer-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.template-customizer-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.template-customizer-option {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--bs-body-color);
  padding: 0;
  text-align: left;
}

.template-customizer-preview {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-paper-bg, var(--bs-body-bg));
}

.template-customizer-option.active .template-customizer-preview {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.16);
}

.template-customizer-name {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
}

.template-customizer-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.template-customizer-color {
  width: 38px;
  height: 38px;
  border: 2px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--tc-color);
}

.template-customizer-color.active {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.16);
}

.template-customizer-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.template-customizer-compact .container-xxl {
  max-width: 1200px;
}

.layout-wide .container-xxl {
  max-width: 100%;
}

.layout-navbar-hidden .layout-navbar {
  display: none !important;
}

.layout-navbar-hidden .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 0 !important;
}

.template-customizer-semi-dark .layout-menu {
  --bs-body-bg: #232333;
  --bs-body-color: #d7d8ed;
  --bs-paper-bg: #2b2c40;
  background: #2b2c40 !important;
  color: #d7d8ed;
}

.template-customizer-semi-dark .layout-menu .menu-link,
.template-customizer-semi-dark .layout-menu .app-brand-text,
.template-customizer-semi-dark .layout-menu .menu-header-text {
  color: #d7d8ed;
}

@media (max-width: 575.98px) {
  .template-customizer-panel {
    width: 100vw;
  }

  .template-customizer-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
