.app-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: hsl(var(--background));
    transition: opacity 0.2s ease-out;
  }
  
  .app-loading.loaded {
    opacity: 0;
    pointer-events: none;
  }
  
  .app-loading-spinner {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    border: 4px solid hsl(var(--muted));
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
  }
  
  .app-loading-progress {
    width: 120px;
    height: 4px;
    background: hsl(var(--muted));
    border-radius: 2px;
    overflow: hidden;
  }
  
  .app-loading-progress::after {
    content: "";
    display: block;
    width: 40%;
    height: 100%;
    background: hsl(var(--primary));
    border-radius: 2px;
    animation: progress 1.2s ease-in-out infinite;
  }
  
  .app-loading-text {
    margin-top: 16px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: hsl(var(--muted-foreground));
  }
  
  @keyframes spinner {
    to {
      transform: rotate(360deg);
    }
  }
  
  @keyframes progress {
    0% {
      transform: translateX(-100%);
    }
    50% {
      transform: translateX(150%);
    }
    100% {
      transform: translateX(-100%);
    }
  }