/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo svg {
  width: 30px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.25rem;
}

.authentication-wrapper .app-brand-text.demo {
  font-size: 1.5rem;
  text-transform: capitalize;
}

/* ! 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;
}

/* 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: 1.25rem !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: 300px;
    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: 1.25rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1.25rem;
}
/*
 * Sidebar Sub-Menu Styling — Professional Admin Dashboard
 * Covers: Job Management, HR Management, User Management, Settings
 ******************************************************************************/

/* ─── Parent Toggle: open state accent ─── */
.menu-vertical .menu-item.open > .menu-link.menu-toggle {
  color: var(--bs-primary, #7c4dff) !important;
  font-weight: 600;
}

.menu-vertical .menu-item.open > .menu-link.menu-toggle .menu-icon {
  color: var(--bs-primary, #7c4dff);
}

/* ─── Sub-menu Container ─── */
.menu-vertical .menu-sub {
  position: relative;
  margin-inline-start: 2rem;
  padding-inline-start: 0.75rem;
  padding-block: 0.35rem 0.25rem;
  background-color: transparent;
}

/* Vertical connector line */
.menu-vertical .menu-sub::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 1.5px;
  background: linear-gradient(
    180deg,
    var(--bs-primary, #7c4dff) 0%,
    rgba(var(--bs-base-color-rgb, 124, 77, 255), 0.15) 100%
  );
  border-radius: 1px;
}

/* ─── Sub-menu Items ─── */
.menu-vertical .menu-sub > .menu-item {
  margin-block: 2px !important;
}

/* ─── Sub-menu Links ─── */
.menu-vertical .menu-sub > .menu-item > .menu-link {
  position: relative;
  font-size: 0.835rem !important;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: rgba(var(--bs-menu-color-rgb, 67, 60, 80), 0.78);
  padding-block: 0.45rem !important;
  padding-inline-start: 1.6rem !important;
  padding-inline-end: 1rem !important;
  margin-inline-end: 1rem;
  border-radius: 0.375rem !important;
  transition: all 0.2s ease;
  min-block-size: auto !important;
}

/* ─── Bullet Dot (replaces default circle) ─── */
.menu .menu-sub > .menu-item > .menu-link::before {
  content: '' !important;
  position: absolute !important;
  inset-inline-start: 0.35rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  block-size: 6px !important;
  inline-size: 6px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(var(--bs-menu-color-rgb, 67, 60, 80), 0.35) !important;
  background-color: transparent !important;
  transition: all 0.2s ease !important;
}

/* Horizontal branch connector from vertical line to dot */
.menu-vertical .menu-sub > .menu-item > .menu-link::after {
  content: '';
  position: absolute;
  inset-inline-start: -0.75rem;
  top: 50%;
  width: 0.7rem;
  height: 1.5px;
  background-color: rgba(var(--bs-base-color-rgb, 124, 77, 255), 0.18);
  transform: translateY(-50%);
}

/* ─── Hover State ─── */
.menu-vertical .menu-sub > .menu-item > .menu-link:hover {
  background-color: rgba(var(--bs-base-color-rgb, 124, 77, 255), 0.06) !important;
  color: var(--bs-menu-hover-color, #2e263d) !important;
  padding-inline-start: 1.75rem !important;
}

.menu-vertical .menu-sub > .menu-item > .menu-link:hover::before {
  border-color: var(--bs-primary, #7c4dff) !important;
  transform: translateY(-50%) scale(1.2) !important;
}

.menu-vertical .menu-sub > .menu-item > .menu-link:hover::after {
  background-color: rgba(var(--bs-base-color-rgb, 124, 77, 255), 0.35);
}

/* ─── Active State ─── */
.menu-vertical .menu-sub > .menu-item.active > .menu-link:not(.menu-toggle) {
  background: rgba(var(--bs-base-color-rgb, 124, 77, 255), 0.1) !important;
  color: var(--bs-primary, #7c4dff) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

/* Active dot: filled primary */
.menu-vertical .menu-sub > .menu-item.active > .menu-link::before {
  background-color: var(--bs-primary, #7c4dff) !important;
  border-color: var(--bs-primary, #7c4dff) !important;
  box-shadow: 0 0 0 3px rgba(var(--bs-base-color-rgb, 124, 77, 255), 0.15) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* Active branch connector: primary color */
.menu-vertical .menu-sub > .menu-item.active > .menu-link::after {
  background-color: var(--bs-primary, #7c4dff);
}

/* ─── Fix: Remove default gradient on active sub-item ─── */
.menu-vertical .menu-sub > .menu-item.active > .menu-link:not(.menu-toggle) {
  background-image: none !important;
}

