
/* Critical CSS that must load before any content is shown */
/* This file should be kept as small as possible */

/* Basic structure to prevent layout shifts */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

/* Hide content initially to prevent FOUC */
body:not(.styles-loaded) .app-container:not(.app-loading-container) {
  visibility: hidden;
}

/* Sidebar base structure */
.sidebar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
}

/* Main content structure */
.main-content {
  margin-left: 4rem; /* Default sidebar width */
  min-height: 100vh;
}

/* No sidebar layout adjustment */
.main-content.no-sidebar {
  margin-left: 0;
}

/* Add a basic spin animation for the loading indicator */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
