/* Custom styles goes here */

#layout-menu.layout-menu {
  display: flex;
  flex-direction: column;
}

#layout-menu .menu-inner {
  flex: 1 1 auto;
  overflow-y: auto;
}

/* Sol menü altındaki sabit profil alanı */
#layout-menu .menu-profile-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid rgba(67, 89, 113, 0.1);
  padding: 0.75rem 0.85rem;
  position: relative;
}

.dark-style #layout-menu .menu-profile-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.dark-style #layout-menu .menu-profile-trigger:hover,
.dark-style #layout-menu .menu-profile-trigger[aria-expanded="true"] {
  background-color: rgba(255, 255, 255, 0.06);
}

#layout-menu .menu-profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

#layout-menu .menu-profile-trigger:hover,
#layout-menu .menu-profile-trigger[aria-expanded="true"] {
  background-color: rgba(67, 89, 113, 0.06);
}

#layout-menu .menu-profile-avatar {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(105, 108, 255, 0.12);
  color: #696cff;
  font-size: 1.1rem;
}

#layout-menu .menu-profile-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.25;
}

#layout-menu .menu-profile-name {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#layout-menu .menu-profile-role {
  font-size: 0.75rem;
  color: #a1acb8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#layout-menu .menu-profile-caret {
  flex-shrink: 0;
  font-size: 1rem;
  opacity: 0.55;
}

#layout-menu .menu-profile-footer .dropdown-menu {
  width: calc(100% - 0.5rem);
  min-width: 12rem;
  margin-bottom: 0.35rem !important;
}

/* Menü daraltıldığında yalnızca avatar */
html.layout-menu-collapsed:not(.layout-menu-hover) #layout-menu .menu-profile-trigger {
  justify-content: center;
  padding-inline: 0.35rem;
}

html.layout-menu-collapsed:not(.layout-menu-hover) #layout-menu .menu-profile-meta,
html.layout-menu-collapsed:not(.layout-menu-hover) #layout-menu .menu-profile-caret {
  display: none;
}

/* Navbar kalktıktan sonra mobil menü açma düğmesi */
.app-mobile-menu-toggle {
  position: fixed;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1080;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 0.125rem 0.5rem rgba(67, 89, 113, 0.18);
  color: inherit;
}

@media (min-width: 1200px) {
  .app-mobile-menu-toggle {
    display: none !important;
  }
}

.layout-menu-expanded .app-mobile-menu-toggle {
  display: none !important;
}
