:root {
  color-scheme: light;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f8fafc;
}

#app-boot-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f8fafc;
  color: #0f172a;
}

#app-boot-splash[data-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.boot-shell {
  min-height: 100vh;
}

.boot-shimmer {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: rgba(226, 232, 240, 0.9);
}

.boot-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: boot-shimmer 1.3s infinite;
}

.boot-dashboard,
.boot-login {
  display: none;
}

html[data-app-boot-variant="dashboard"] #app-boot-splash .boot-dashboard {
  display: block;
}

html[data-app-boot-variant="login"] #app-boot-splash .boot-login {
  display: block;
}

.boot-dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.boot-sidebar {
  width: 18rem;
  flex-shrink: 0;
  border-right: 1px solid #e2e8f0;
  background: #fff;
}

.boot-sidebar-section {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.boot-sidebar-nav {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
}

.boot-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.boot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  padding: 1rem 1.5rem;
}

.boot-content {
  padding: 1.5rem;
}

.boot-grid {
  display: grid;
  gap: 1rem;
}

.boot-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.boot-panels {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  margin-top: 1.5rem;
}

.boot-login-shell {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.boot-login-card {
  width: min(100%, 24rem);
}

.boot-login-panel {
  margin-top: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 24px 48px rgba(148, 163, 184, 0.22);
}

.boot-stack {
  display: grid;
  gap: 1rem;
}

.boot-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.boot-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 1024px) {
  .boot-sidebar {
    display: none;
  }

  .boot-cards,
  .boot-panels {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-shimmer::after {
    animation: none;
  }

  #app-boot-splash[data-hidden="true"] {
    transition: none;
  }
}

@keyframes boot-shimmer {
  100% {
    transform: translateX(100%);
  }
}
