/*
* 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;
  text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}

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

/* in styles.css or component CSS */
.layout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 999;
}

.layout-overlay.show {
  display: block;
}

/* Example: when layout-menu-expanded is present, show the sidebar on small screens */
/* Adjust selectors to match your sidebar markup (.layout-menu / #layout-menu etc.) */
.layout-wrapper.layout-menu-expanded .layout-menu {
  transform: translateX(0);
  /* assuming menu is off-canvas by default */
}

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

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

/* new */

.nav-link {
  padding: 0 !important;
}

/* Default (inactive) menu item */
.menu-item .menu-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #6c757d;
  /* gray text */
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

/* Hover state */
.menu-item .menu-link:hover {
  color: #0d6efd;
  /* blue hover */
  background-color: rgba(13, 110, 253, 0.1);
}

/* Active route */
.menu-item.active .menu-link,
.menu-item.router-link-active .menu-link {
  background-color: #0d6efd;
  /* blue background */
  color: white;
  /* white text */
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

/* Optional: active icon color */
.menu-item.active .menu-icon,
.menu-item.router-link-active .menu-icon {
  color: #7679ff;
}

.app-brand .layout-menu-toggle i {
  width: 1.5rem;
  height: 1.2rem!important;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 1199.98px) {
    .layout-menu-expanded .app-brand .layout-menu-toggle {
        display: block !important;
        height: 50px;
    }
}


/* blog */
.table-thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.table-thumb.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f1f1;
  color: #666;
  font-size: 12px;
  width: 70px;
  height: 50px;
  border-radius: 6px;
}
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* end blog */