/* =========================================================
   BASE - reset, body, layout principale
   ========================================================= */

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-body {
  display: flex;
  flex: 1;
}

.main-content {
  flex: 1;
  padding: 16px 24px 32px;
  min-width: 0;
}

/* Animazione condivisa per spinner di loading */
@keyframes cai-spin {
  to { transform: rotate(360deg); }
}

/* Responsive layout */
@media (max-width: 900px) {
  .app-body { flex-direction: column; }
}
