/* Header styling */
.app-header {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  box-shadow: var(--bs-box-shadow-sm);
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width, 236px); /* Match sidebar width */
  z-index: 100;
  height: var(--header-height, 60px);
  display: flex;
  align-items: center;
}

.main-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 100%;
  width: 100%;
}

.header-content-left {
  display: flex;
  align-items: center;
}

.header-element {
  margin-right: 15px;
}

.header-link, .sidebar-toggle {
  color: var(--bs-gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--bs-border-radius);
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.header-link:hover, .sidebar-toggle:hover {
  background-color: var(--bs-gray-200);
  color: var(--bs-gray-900);
}

.header-link-icon {
  font-size: 18px;
}

.header-content-right {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
}

.avatar-sm {
  width: 36px;
  height: 36px;
}

/* Content adjustment for header */
div.content {
  margin-left: var(--sidebar-width, 236px);
  margin-top: var(--header-height, 60px); /* Match header height */
  padding: 1px 16px;
  height: calc(100vh - var(--header-height, 60px));
  overflow-y: auto;
}

/* Dark mode toggle icon styling */
.layout-setting{
  color: var(--bs-body-color) !important;
  background-color: var(--bs-body-bg) !important;
}
/*.layout-setting {
  padding: 8px;
  border-radius: var(--bs-border-radius);
}

.layout-setting:hover {
  background-color: var(--bs-gray-200);
}*/

/* Responsive adjustments */
@media screen and (max-width: 991.98px) {
  .app-header {
    left: 0;
  }
  
  div.content {
    margin-left: 0;
  }
}