/* APP SHELL */
.app-shell {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--cor-fundo);
}

.app-shell__conteudo {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--altura-bottomnav) + var(--safe-bottom) + var(--esp-md));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.app-shell__carregando {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cor-fundo);
  z-index: 1000;
  gap: var(--esp-md);
}

.app-shell__carregando .spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--cor-borda);
  border-top-color: var(--cor-accent);
  border-radius: 50%;
  animation: girar 600ms linear infinite;
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

.app-shell--pronto .app-shell__carregando {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-normal);
}