#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.bh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-bg-header);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  z-index: 100;
}

.bh-header__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.bh-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-subheading);
  color: var(--color-primary);
}

.bh-header__logo svg {
  width: 28px;
  height: 28px;
}

.bh-header__logo-img {
  height: 45px;
  width: auto;
}

.bh-header__title {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  padding-left: var(--space-3);
  border-left: 1px solid var(--color-border);
  margin-left: var(--space-3);
}

.bh-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.bh-header__clock {
  font-size: var(--text-small);
  color: var(--color-text-tertiary);
  font-variant-numeric: tabular-nums;
}

.bh-header__notification {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: background 150ms;
}

.bh-header__notification:hover {
  background: var(--color-bg-primary);
}

.bh-header__notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--color-error);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bh-header__user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bh-header__user-info {
  text-align: right;
}

.bh-header__user-name {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-primary);
}

.bh-header__user-role {
  font-size: var(--text-tiny);
  color: var(--color-text-tertiary);
}

.bh-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: var(--color-bg-sidebar);
  display: flex;
  flex-direction: column;
  transition: width 200ms ease;
  z-index: 90;
  overflow: hidden;
}

.bh-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.bh-sidebar__nav {
  flex: 1;
  padding: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.bh-sidebar__nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 44px;
  padding: 0 var(--space-4);
  color: var(--color-text-tertiary);
  font-size: var(--text-small);
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms, color 150ms;
  white-space: nowrap;
  border-left: 3px solid transparent;
}

.bh-sidebar__nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-inverse);
}

.bh-sidebar__nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-left-color: var(--color-primary-light);
}

.bh-sidebar__nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bh-sidebar__nav-label {
  opacity: 1;
  transition: opacity 150ms;
}

.bh-sidebar.collapsed .bh-sidebar__nav-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.bh-sidebar__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 44px;
  padding: 0 var(--space-4);
  color: var(--color-text-tertiary);
  font-size: var(--text-small);
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 150ms;
  white-space: nowrap;
}

.bh-sidebar__toggle:hover {
  color: var(--color-text-inverse);
}

.bh-sidebar__toggle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 200ms;
}

.bh-sidebar.collapsed .bh-sidebar__toggle svg {
  transform: rotate(180deg);
}

.bh-main {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  height: calc(100vh - var(--header-height));
  background: var(--color-bg-primary);
  transition: margin-left 200ms ease;
  overflow: hidden;
}

.bh-main.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed-width);
}

.bh-main > .view {
  padding: var(--space-6);
  height: 100%;
  overflow-y: auto;
}

@media (max-width: 1280px) {
  .bh-main > .view {
    padding: var(--space-5);
  }
}

@media (max-width: 1024px) {
  .bh-sidebar {
    width: var(--sidebar-collapsed-width);
  }
  .bh-sidebar .bh-sidebar__nav-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
  }
  .bh-main {
    margin-left: var(--sidebar-collapsed-width);
  }
}
