body {
  margin: 0;
  padding: 0;
  background-color: #e8f5e9;
  font-family: Arial, sans-serif;
}

#loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background-color: #e8f5e9;
}

.spinner-circle {
  width: 60px;
  height: 60px;
  border: 6px solid #c8e6c9;
  border-top: 6px solid #4caf50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: #2e7d32;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

/* The 8-Second Progress Bar */
.progress-bar-container {
  width: 200px;
  height: 6px;
  background-color: #c8e6c9;
  border-radius: 4px;
  margin-top: 15px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: #4caf50;
  width: 0%;
  /* Takes exactly 8 seconds to reach 95%, then waits for the app */
  animation: fillProgress 8s ease-out forwards; 
}

@keyframes fillProgress {
  0% { width: 0%; }
  100% { width: 95%; } 
}

.loading-subtext {
  color: #66bb6a;
  font-size: 14px;
  margin-top: 10px;
}