body {
  margin: 0;
  padding: 0;
}

.splash-screen {
  position: absolute;
  z-index: 1000;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  background-color: #f5f8fa;
  color: #5E6278;
  line-height: 1;
  font-size: 14px;
  font-weight: 400;
  gap: 24px;
}

/* Logo container with ring */
.splash-logo {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  animation: splash-breathe 2s ease-in-out infinite;
}

.splash-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid #e1e3ea;
  border-top-color: #3699FF;
  animation: splash-spin 1s linear infinite;
}

/* Title */
.splash-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #3F4254;
  opacity: 0;
  animation: splash-fadeIn 0.6s ease forwards 0.2s;
}

/* Progress bar */
.splash-bar {
  width: 160px;
  height: 3px;
  background-color: #e1e3ea;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
  animation: splash-fadeIn 0.6s ease forwards 0.4s;
}

.splash-bar-inner {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #3699FF, #1B84FF);
  border-radius: 3px;
  animation: splash-progress 1.4s ease-in-out infinite;
}

/* Animations */
@keyframes splash-spin {
  to { transform: rotate(360deg); }
}

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

@keyframes splash-fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes splash-progress {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(150%); }
  100% { transform: translateX(400%); }
}

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

[data-bs-theme="dark"] .splash-text {
  color: #cdcdde;
}

[data-bs-theme="dark"] .splash-bar {
  background-color: #2B2B40;
}

[data-bs-theme="dark"] .splash-ring {
  border-color: #2B2B40;
  border-top-color: #3699FF;
}

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