/* css/nodemo.css
   Prevent demo content from flashing on hard refresh (Ctrl+F5).
   Show a consistent Loading… state for key panels until real data is injected.
*/

/* Keep headers visible above the loader */
.preview-panel .panel-header{ position: relative; z-index: 2; }

/* Generic loader pattern */
body:not(.dashboard-ready) .panel-dashboard,
body:not(.cycles-ready) .panel-cycles,
body:not(.teams-ready) .panel-teams{
  position: relative;
}

/* Hide panel body content while loading (but keep header visible) */
body:not(.dashboard-ready) .panel-dashboard > :not(.panel-header),
body:not(.cycles-ready) .panel-cycles > :not(.panel-header),
body:not(.teams-ready) .panel-teams > :not(.panel-header){
  opacity: 0;
  pointer-events: none;
}

/* Loader overlay */
body:not(.dashboard-ready) .panel-dashboard::after,
body:not(.cycles-ready) .panel-cycles::after,
body:not(.teams-ready) .panel-teams::after{
  content: "Loading…";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Reveal when ready */
body.dashboard-ready .panel-dashboard > :not(.panel-header),
body.cycles-ready .panel-cycles > :not(.panel-header),
body.teams-ready .panel-teams > :not(.panel-header){
  opacity: 1;
  pointer-events: auto;
}
body.dashboard-ready .panel-dashboard::after,
body.cycles-ready .panel-cycles::after,
body.teams-ready .panel-teams::after{
  content: none;
}
