body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* --- LIGHT THEME (Default) --- */
body {
  /* Soft professional gradient */
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#app-loader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
}

#app-loader img {
  width: 110px;
  height: 110px;
  animation: pulse 2.5s infinite ease-in-out;
}

.loading-text {
  margin-top: 25px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05em;
  color: #334155; /* Slate-700 */
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* --- PROGRESS BAR --- */
#progress-bar-container {
  width: 180px;
  height: 4px;
  background-color: rgba(51, 65, 85, 0.1);
  border-radius: 10px;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
}

#progress-bar {
  width: 45%;
  height: 100%;
  background-color: #334155; /* Slate Primary accent */
  border-radius: 10px;
  position: absolute;
  top: 0;
  animation: indeterminate-progress 2s linear infinite;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 0.85; }
}

@keyframes indeterminate-progress {
  0% { left: -45%; }
  100% { left: 100%; }
}