/* App Loader Styles */
#app-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  z-index: 9999;
}

#app-loader .loader-container {
  text-align: center;
}

#app-loader .loader-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #a5cf4c 0%, #7aa030 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(165, 207, 76, 0.3);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

#app-loader h1 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

#app-loader .tagline {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #64748b;
  margin: 0 0 32px;
}

#app-loader .loading-bar {
  width: 200px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

#app-loader .loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a5cf4c 0%, #7aa030 100%);
  border-radius: 2px;
  animation: loading 1.5s ease-in-out infinite;
}

#app-loader .loading-text {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 16px;
  animation: fade 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes loading {
  0% { width: 0%; transform: translateX(0); }
  50% { width: 100%; transform: translateX(0); }
  100% { width: 100%; transform: translateX(100%); }
}

@keyframes fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  #app-loader {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  }
  #app-loader h1 {
    color: #f1f5f9 !important;
  }
  #app-loader .tagline,
  #app-loader .loading-text {
    color: #64748b !important;
  }
  #app-loader .loading-bar {
    background: #334155 !important;
  }
}