/* =========================================================
   GLOBAL RESET
   ========================================================= */
html,
body {
  min-height: 100%;
  margin: 0;
}

li {
  list-style-type: none;
}

ul {
  padding-inline-start: 0;
  margin: 0;
}

body {
  overflow-x: hidden;
}

/* =========================================================
   SITE GRID LAYOUT
   ========================================================= */
.app-layout {
  --sidebar-column-width: 0px;
  --sidebar-open-width: 184px;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar-column-width) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header header"
    "sidebar main"
    "sidebar footer";
  align-items: start;
}

.app-layout.sidebar-open {
  --sidebar-column-width: var(--sidebar-open-width);
}

/* =========================================================
   GRID AREAS
   ========================================================= */
.app-header {
  grid-area: header;
}

.app-sidebar {
  grid-area: sidebar;
}

.app-main {
  grid-area: main;
  min-width: 0;
}

.app-footer {
  grid-area: footer;
  min-width: 0;
}

/* =========================================================
   ADAPTIVE LAYOUT
   ========================================================= */
@media (max-width: 767px) {
  .app-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "header"
      "main"
      "footer";
  }
}
