@import './theme.css';

/* ------ Main App Layout ------ */
.main-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  overflow: hidden; /* Previene lo scrolling del body */
}

/* ------ Main Content Area ------ */
.main-content {
  position: fixed;
  top: 64px; /* Altezza esatta della TopBar */
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: 100%;
  margin: 0 auto;
  z-index: 1; /* Assicura che sia sotto la TopBar che ha z-index più alto */
}

/* ------ Content Container ------ */
.content-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  background-color: var(--color-background, #ffffff);
}

.content-wrapper {
  flex: 1 0 auto;
  max-width: 1600px;
  width: 100%;
  animation: fadeIn 0.25s ease-out;
}

@media (max-width: 600px) {
  .content-wrapper {
    padding: 16px;
  }
}

@media (min-width: 601px) {
  .content-wrapper {
    padding: 24px;
  }
}

/* ------ Animations ------ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.side-drawer .MuiDrawer-paper {
  box-sizing: border-box;
  border-right: none;
  overflow: auto;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: none;
  scrollbar-gutter: stable;
}
