body {
  margin: 0;
  padding: 0;
}

.splash-screen {
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #5E6278;
  line-height: 1.4;
  font-size: 16px;
  font-weight: 500;
  overflow: hidden;
}

/* Floating particles effect */
.splash-screen::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 30%);
  animation: floatParticles 6s ease-in-out infinite;
}

@keyframes floatParticles {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.5; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 0.8; }
}

.splash-screen span {
  display: none;
}

/* Logo container with glow effect */
.splash-screen .logo-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-screen img {
  height: 150px !important;
  width: auto;
  animation: logoFloat 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

/* Logo floating animation */
@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* Ring spinner around logo */
.splash-screen .spinner-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 3px solid rgba(0,0,0,0.05);
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.splash-screen .spinner-ring:nth-child(2) {
  width: 220px;
  height: 220px;
  border: 2px solid rgba(0,0,0,0.03);
  border-bottom: 2px solid #3b82f6;
  animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Progress bar */
.splash-screen .progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  margin-top: 80px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.splash-screen .progress-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 2px;
  animation: progressLoad 2s ease-in-out infinite;
}

@keyframes progressLoad {
  0% { width: 0%; left: 0; }
  50% { width: 70%; left: 15%; }
  100% { width: 100%; left: 100%; }
}

/* Dark mode support */
[data-bs-theme="dark"] .splash-screen {
  background: #151521;
}

[data-bs-theme="dark"] .splash-screen .spinner-ring {
  border: 3px solid rgba(255,255,255,0.1);
  border-top: 3px solid #2563eb;
}

[data-bs-theme="dark"] .splash-screen .spinner-ring:nth-child(2) {
  border: 2px solid rgba(255,255,255,0.05);
  border-bottom: 2px solid #3b82f6;
}

[data-bs-theme="dark"] .splash-screen .progress-bar {
  background: rgba(255,255,255,0.1);
}

#root {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .splash-screen img {
    height: 80px !important;
  }
  .splash-screen .spinner-ring {
    width: 140px;
    height: 140px;
  }
  .splash-screen .spinner-ring:nth-child(2) {
    width: 160px;
    height: 160px;
  }
  .splash-screen .progress-bar {
    width: 150px;
  }
}
