.app-layout {
  height: calc(100dvh - 32px);
  width: 100%;
  background-color: var(--bg-secondary);
  display: flex;
  overflow: hidden;
}

.app-sidebar {
  height: 100%;
  background: var(--bg-sidebar);
  transition: width var(--transition-normal);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-width: 0;
}

.main-content-wrapper {
  flex: 1 1 0;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding: 24px;
}

.main-content-wrapper::-webkit-scrollbar {
  width: 6px;
}

.main-content-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.main-content-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 3px;
}

.main-content-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-tertiary);
}

@media (max-width: 640px) {
  .app-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    box-shadow: var(--shadow-xl);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }
}
