.single-spa-layout-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
}

/* Header at the top */
.single-spa-layout-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3.125rem;
  background-color: transparent;
  width: 100%;
  z-index: 40;
}

/* Body container with nav and content */
.single-spa-layout-body {
  display: flex;
  flex-direction: row;
  flex: 1;
  margin-top: 3.125rem;
  height: calc(100vh - 3.125rem);
  overflow: hidden;
}

.single-spa-layout-nav {
  background-color: transparent;
  height: calc(100vh - 3.125rem);
  display: block;
  position: fixed;
  left: 0;
  top: 3.125rem;
  width: 0;
  z-index: 30;
}

/* Main content container */
.single-spa-layout-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}

/* Only apply transition during drawer transitions */
.single-spa-layout-content.drawer-transitioning {
  transition-property: margin-left;
  transition-duration: 500ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  will-change: margin-left;
}

/* Prevent transitions on header content */
.single-spa-layout-header,
.single-spa-layout-header *,
[id^="single-spa-application:@fs/portal-ui-headers"],
[id^="single-spa-application:@fs/portal-ui-headers"] * {
  /* transition: none !important;
  transform: none !important;
  animation: none !important;
  will-change: auto !important; */
}

.single-spa-layout-content-body {
  flex: 1;
  width: 100%;
  display: flex;
  overflow-y: auto;
  background-color: var(--bgColor);
}

#single-spa-layout {
  height: 100%;
  width: 100%;
  visibility: hidden;
}

.single-spa-layout-content-body [id^="single-spa-application"] {
  height: 100%;
  width: 100%;
  max-width: 100%;
}

[id^="single-spa-application:@fs/portal-ui-headers"] {
  height: 3.125rem;
  width: 100%;
}

/* ========================================
   SKELETON LOADER STYLES
   - Responsive design for all screen sizes
   - Accessibility compliant (WCAG 2.1)
   ======================================== */

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skeleton-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--fs-background, #FFFFFF);
  z-index: 9999;
  overflow: hidden;
  display: block;
  visibility: visible;
}

/* Header skeleton */
.skeleton-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.125rem;
  background-color: var(--fs-background, #FFFFFF);
  border-bottom: 0.0625rem solid var(--fs-dividerLine, #1E253E1F);
}

.skeleton-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
}

.skeleton-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skeleton-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skeleton-header-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  background-color: var(--fs-neutralBg, #E5EAF1);
}

.skeleton-header-logo {
  width: 7.5rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  background-color: var(--fs-neutralBg, #E5EAF1);
}

.skeleton-header-button {
  width: 5rem;
  height: 1.75rem;
  border-radius: 0.25rem;
  background-color: var(--fs-neutralBg, #E5EAF1);
}

/* Body container */
.skeleton-body {
  position: absolute;
  top: 3.125rem;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
}

/* Left nav sidebar skeleton */
.skeleton-nav {
  width: 3.75rem;
  height: 100%;
  background-color: var(--fs-background, #FFFFFF);
  border-right: 0.0625rem solid var(--fs-dividerLine, #1E253E1F);
  display: flex;
  flex-direction: column;
  padding-top: 0;
  flex-shrink: 0;
}

.skeleton-nav-item {
  width: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skeleton-nav-item::after {
  content: '';
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  background-color: var(--fs-neutralBg, #E5EAF1);
}

.skeleton-nav-spacer {
  flex: 1;
}

/* Content area skeleton */
.skeleton-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--fs-background, #FFFFFF);
  overflow: hidden;
}

/* Shimmer animation overlay */
.skeleton-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(245, 247, 250, 0.4) 20%,
      rgba(229, 234, 241, 0.6) 50%,
      rgba(245, 247, 250, 0.4) 80%,
      rgba(255, 255, 255, 0) 100%);
  animation: shimmer 2s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Hide loader when app is ready */
.skeleton-loader.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Mobile landscape / Small tablet (max-width: 48rem / 768px) */
@media screen and (max-width: 48rem) {
  .skeleton-nav {
    width: 3.125rem;
  }

  .skeleton-nav-item {
    width: 3.125rem;
    height: 3.125rem;
  }

  .skeleton-nav-item::after {
    width: 1.25rem;
    height: 1.25rem;
  }

  .skeleton-header-content {
    padding: 0 0.75rem;
  }

  .skeleton-header-logo {
    width: 6.25rem;
  }

  .skeleton-header-button {
    width: 3.75rem;
    height: 1.5rem;
  }
}

/* Mobile portrait (max-width: 36rem / 576px) */
@media screen and (max-width: 36rem) {

  /* Hide nav on very small screens (hamburger menu pattern) */
  .skeleton-nav {
    display: none;
  }

  .skeleton-header-content {
    padding: 0 0.5rem;
  }

  .skeleton-header-left {
    gap: 0.5rem;
  }

  .skeleton-header-right {
    gap: 0.5rem;
  }

  .skeleton-header-logo {
    width: 5rem;
    height: 1rem;
  }

  .skeleton-header-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .skeleton-header-button {
    display: none;
  }
}

/* ========================================
   ACCESSIBILITY STYLES
   ======================================== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .skeleton-shimmer {
    animation: none;
    /* Fallback: subtle opacity pulse instead of movement */
    left: 0;
    opacity: 0;
    animation: pulse-opacity 2s ease-in-out infinite;
  }

  .skeleton-loader.hidden {
    transition: none;
  }
}

@keyframes pulse-opacity {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.3;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

  .skeleton-nav-item::after,
  .skeleton-header-icon,
  .skeleton-header-logo,
  .skeleton-header-button {
    background-color: #C0C0C0;
    border: 0.0625rem solid #666666;
  }

  .skeleton-header,
  .skeleton-nav {
    border-color: #666666;
  }
}

/* Forced colors mode (Windows High Contrast) */
@media (forced-colors: active) {

  .skeleton-nav-item::after,
  .skeleton-header-icon,
  .skeleton-header-logo,
  .skeleton-header-button {
    background-color: GrayText;
    forced-color-adjust: none;
  }

  .skeleton-shimmer {
    display: none;
  }
}

/* Focus visibility for keyboard navigation (if ever needed) */
.skeleton-loader:focus-visible {
  outline: 0.125rem solid var(--fs-highlight1, #235BA7);
  outline-offset: 0.125rem;
}

/* Ensure the navigation container takes full height */
#single-spa-application\@fs\/portal-ui-nav {
  height: 100%;
  display: flex;
}

/* These utility classes help with hardware acceleration */
.backface-hidden {
  backface-visibility: hidden;
}

.will-change-transform {
  will-change: transform;
}