@use '@/assets/styles/variables' as *;

.app-layout {
  min-height: 100vh;
  background: $color-surface;

  &__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: calc(#{$z-sidebar} - 1);
  }

  &__main {
    transition: margin-left 0.2s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  &__content {
    flex: 1;
    padding: $page-padding-y $page-padding-x;
    padding-top: calc(#{$topbar-height} + #{$page-padding-y});

    @media (max-width: $bp-mobile) {
      padding: $space-sm;
      padding-top: calc(#{$topbar-height} + #{$space-sm});
    }
  }
}
