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: 'Almarai', 'sans-serif';
  background-color: #f2f3f8;
  color: #5E6278;
  line-height: 1;
  font-size: 14px;
  font-weight: 400;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-screen span {
  color: #5E6278;
  margin-top: 20px;
  font-size: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}

.splash-screen img {
  width: auto;
  height: 50px !important;
  max-height: 50px;
  animation: fadeInAndScale 0.5s ease-out;
  margin-bottom: 24px;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background-color: rgba(94, 98, 120, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-progress {
  width: 0;
  height: 100%;
  background-color: #3b82f6;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes fadeInAndScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

[data-bs-theme="dark"] .splash-screen {
  background-color: #151521;
  color: #92929F;
}

[data-bs-theme="dark"] .splash-screen span {
  color: #92929F;
}

[data-bs-theme="dark"] .loading-bar {
  background-color: rgba(146, 146, 159, 0.1);
}

[data-bs-theme="dark"] .loading-bar-progress {
  background-color: #3b82f6;
}

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