:root {
  --primary-color: #0175C2; /* Flutter blue */
  --secondary-color: #02569B; /* Flutter dark blue */
  --background-color: #FFFFFF;
  --dot-size: 8px;
  --logo-size: 240px;
  --spinner-size: 340px;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--background-color);
  font-family: 'Roboto', 'Helvetica Neue', sans-serif;
}

.loading-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--spinner-size);
  height: var(--spinner-size);
}

.logo {
  position: relative;
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.spinner {
  position: absolute;
  width: var(--spinner-size);
  height: var(--spinner-size);
  border-radius: 50%;
}

.dot {
  position: absolute;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background-color: var(--primary-color);
  top: 0;
  left: calc(50% - var(--dot-size) / 2);
  transform-origin: center calc(var(--spinner-size) / 2);
}

/* Create 12 dots positioned around the circle */
.dot:nth-child(1) { animation: dotMove 1.8s infinite ease-in-out 0.0s; }
.dot:nth-child(2) { animation: dotMove 1.8s infinite ease-in-out 0.15s; }
.dot:nth-child(3) { animation: dotMove 1.8s infinite ease-in-out 0.3s; }
.dot:nth-child(4) { animation: dotMove 1.8s infinite ease-in-out 0.45s; }
.dot:nth-child(5) { animation: dotMove 1.8s infinite ease-in-out 0.6s; }
.dot:nth-child(6) { animation: dotMove 1.8s infinite ease-in-out 0.75s; }
.dot:nth-child(7) { animation: dotMove 1.8s infinite ease-in-out 0.9s; }
.dot:nth-child(8) { animation: dotMove 1.8s infinite ease-in-out 1.05s; }
.dot:nth-child(9) { animation: dotMove 1.8s infinite ease-in-out 1.2s; }
.dot:nth-child(10) { animation: dotMove 1.8s infinite ease-in-out 1.35s; }
.dot:nth-child(11) { animation: dotMove 1.8s infinite ease-in-out 1.5s; }
.dot:nth-child(12) { animation: dotMove 1.8s infinite ease-in-out 1.65s; }

/* Position dots evenly around the circle */
.dot:nth-child(1) { transform: rotate(0deg); }
.dot:nth-child(2) { transform: rotate(30deg); }
.dot:nth-child(3) { transform: rotate(60deg); }
.dot:nth-child(4) { transform: rotate(90deg); }
.dot:nth-child(5) { transform: rotate(120deg); }
.dot:nth-child(6) { transform: rotate(150deg); }
.dot:nth-child(7) { transform: rotate(180deg); }
.dot:nth-child(8) { transform: rotate(210deg); }
.dot:nth-child(9) { transform: rotate(240deg); }
.dot:nth-child(10) { transform: rotate(270deg); }
.dot:nth-child(11) { transform: rotate(300deg); }
.dot:nth-child(12) { transform: rotate(330deg); }

/* Animation for dots moving in and out */
@keyframes dotMove {
  0% {
      transform: rotate(var(--rotation)) translateY(0);
      opacity: 0.3;
  }
  20% {
      transform: rotate(var(--rotation)) translateY(-10px);
      opacity: 1;
  }
  40%, 100% {
      transform: rotate(var(--rotation)) translateY(0);
      opacity: 0.3;
  }
}

/* Loading text styles */
.loading-text {
  position: absolute;
  bottom: -40px;
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  :root {
      --logo-size: 100px;
      --spinner-size: 140px;
      --dot-size: 6px;
  }
  .loading-text {
      font-size: 14px;
      bottom: -35px;
  }
}

@media (max-width: 480px) {
  :root {
      --logo-size: 80px;
      --spinner-size: 120px;
      --dot-size: 5px;
  }
  .loading-text {
      font-size: 12px;
      bottom: -30px;
  }
}