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

.menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo svg {
  width: 34px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.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: 72px !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: 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;
}

/* Primary Color Override */
:root,
[data-bs-theme=light],
[data-bs-theme=dark] {
  --bs-primary: #007bff;
  --bs-primary-rgb: 0, 123, 255;
  --bs-link-color: #007bff;
  --bs-link-color-rgb: 0, 123, 255;
  --bs-link-hover-color: #0056b3;
  --bs-link-hover-color-rgb: 0, 86, 179;
  --bs-menu-active-color: #fff;
  --bs-menu-active-bg: #007bff;
  --bs-menu-sub-active-bg: rgba(0, 123, 255, 0.16);
  --bs-menu-sub-active-color: #007bff;
}

.text-primary {
  color: #007bff !important;
}

.bg-primary {
  background-color: #007bff !important;
}

.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  color: #fff;
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-check:focus+.btn-primary,
.btn-primary:focus {
  color: #fff;
  background-color: #0056b3;
  border-color: #0056b3;
  box-shadow: 0 0 0 .25rem rgba(0, 123, 255, .5);
}

.btn-check:checked+.btn-primary,
.btn-check:active+.btn-primary,
.btn-primary:active,
.btn-primary.active,
.show>.btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-check:checked+.btn-primary:focus,
.btn-check:active+.btn-primary:focus,
.btn-primary:active:focus,
.btn-primary.active:focus,
.show>.btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 .25rem rgba(0, 123, 255, .5);
}

.btn-primary:disabled,
.btn-primary.disabled {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:focus,
.btn-outline-primary.focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.5);
}

.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show>.btn-outline-primary.dropdown-toggle {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.show>.btn-outline-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.5);
}

/* Pagination */
.page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
}

.page-link {
  color: #007bff;
}

.page-link:hover {
  color: #0056b3;
}

/* Sidebar Active State Overrides */
.menu-vertical .menu-item.active>.menu-link:not(.menu-toggle) {
  background-color: #007bff !important;
  color: #fff !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 123, 255, 0.4) !important;
}

.menu-vertical .menu-item.active>.menu-link:not(.menu-toggle) .menu-icon {
  color: #fff !important;
}

/* Submenu active state - match main menu styling */
.menu-vertical .menu-sub .menu-item.active>.menu-link:not(.menu-toggle) {
  color: #fff !important;
  background-color: #007bff !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 123, 255, 0.4) !important;
}

.menu-vertical .menu-sub .menu-item.active>.menu-link:not(.menu-toggle) .menu-icon {
  color: #fff !important;
}

/* Reset non-active submenu items */
.menu-vertical .menu-sub .menu-item:not(.active)>.menu-link:not(.menu-toggle) {
  background-color: transparent !important;
  box-shadow: none !important;
}

.menu-vertical .menu-sub .menu-item:not(.active)>.menu-link:not(.menu-toggle):hover {
  background-color: rgba(0, 123, 255, 0.08) !important;
}

/* Override the purple before/after if present */
.menu-vertical .menu-item.active:not(.open)>.menu-link:not(.menu-toggle)::before {
  background-color: #007bff !important;
  box-shadow: 0 0 0 2px #f8f7fa !important;
  /* Match body bg usually */
}

/* Force hide template customizer */
#template-customizer,
.template-customizer-open-btn,
.template-customizer-open-btn::before {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}