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

/* --- SWNW LIGHT THEME (DEFAULT) --- */
body {
  background-color: #FFFFFF; /* Pure White Background */
  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: #14807C; /* Primary Teal for text */
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* --- PROGRESS BAR --- */
#progress-bar-container {
  width: 180px;
  height: 4px;
  background-color: rgba(20, 128, 124, 0.1); /* Very faint teal track */
  border-radius: 10px;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
}

#progress-bar {
  width: 40%;
  height: 100%;
  background-color: #14807C; /* Primary Teal Bar */
  border-radius: 10px;
  position: absolute;
  top: 0;
  animation: indeterminate-progress 1.8s linear infinite;
}

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

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

/* --- OPTIONAL DARK MODE --- */
@media (prefers-color-scheme: dark) {
  /* You can enable this if you want the loader to respect system dark mode */
  /*
  body { background-color: #0F172A; }
  .loading-text { color: #F8FAFC; }
  #progress-bar { background-color: #14807C; }
  */
}