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

.light-style .menu .app-brand.demo {
  height: 92px;
}

.dark-style .menu .app-brand.demo {
  height: 92px;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: 34px;
  height: 24px;
}

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

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

/* ! 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;
}

/*
* Assessment Management subnav + theme-aware sidebar logo
******************************************************************************/

.menu .app-brand .app-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 16px 20px;
}

.menu .app-brand.demo {
  overflow: visible;
}

/* Tight-crop sidebar wordmark — asset trimmed to content bounds */
.app-brand-logo-img {
  display: block;
  margin: 0 auto;
  width: 92%;
  height: auto;
  max-height: 68px;
  object-fit: contain;
}

.dark-style .app-brand-logo-img--light {
  display: none;
}

.light-style .app-brand-logo-img--dark {
  display: none;
}

/* Prevent backdrop flash during full-page tab navigation */
.layout-wrapper .content-backdrop:not(.show) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.am-subnav {
  gap: 0.25rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.am-subnav::-webkit-scrollbar {
  display: none;
}

.am-subnav .nav-item {
  flex: 1 1 auto;
  min-width: max-content;
}

.am-subnav .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.55rem;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.55rem 0.9rem;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}

.am-subnav .nav-link:focus-visible {
  outline: 2px solid rgba(105, 108, 255, 0.45);
  outline-offset: 2px;
}

.am-tab-panel {
  opacity: 1;
  animation: amTabEnter 0.26s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes amTabEnter {
  from {
    transform: translateY(8px);
    opacity: 0.94;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Light mode — keep content area light during tab navigation */
.light-style .layout-wrapper .content-wrapper,
.light-style .layout-wrapper .layout-page {
  background-color: #f5f5f9;
}

.light-style .am-subnav-shell {
  background: #f4f6f8;
  border: 1px solid #e4e7eb;
  border-radius: 0.75rem;
  padding: 0.35rem;
  margin-bottom: 1.5rem;
}

.light-style .am-subnav .nav-link {
  color: #5f6b7a;
}

.light-style .am-subnav .nav-link:hover:not(.active) {
  color: #384551;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(228, 231, 235, 0.9);
}

.light-style .am-subnav .nav-link.active {
  color: #1a2230;
  background: #fff;
  border-color: #dfe3e8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}

.light-style .am-tab-panel {
  background-color: #f5f5f9;
}

/* Dark mode — match Sneat theme tokens */
.dark-style .layout-wrapper .content-wrapper,
.dark-style .layout-wrapper .layout-page {
  background-color: var(--bs-body-bg);
}

.dark-style .am-subnav-shell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  padding: 0.35rem;
  margin-bottom: 1.5rem;
}

.dark-style .am-subnav .nav-link {
  color: rgba(255, 255, 255, 0.6);
}

.dark-style .am-subnav .nav-link:hover:not(.active) {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--bs-border-color);
}

.dark-style .am-subnav .nav-link.active {
  color: var(--bs-body-color);
  background: var(--bs-card-bg);
  border-color: var(--bs-border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.dark-style .am-tab-panel {
  background-color: var(--bs-body-bg);
}

@media (prefers-reduced-motion: reduce) {
  .am-subnav .nav-link,
  .am-tab-panel {
    animation: none;
    transition: none;
  }

  .am-subnav .nav-link.active {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .am-subnav .nav-item {
    flex: 0 0 auto;
  }
}
