/* Loading animation */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* background: #071F03FF; */
  /* Ngăn thanh cuộn xuất hiện */
}

#flutter_container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  /* Màu nền mặc định cho Flutter */
}

#loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  /* Đảm bảo full màn hình */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-family: 'Roboto', sans-serif;
  /* z-index: 10000; */
  /* Đảm bảo hiển thị trên cùng */
}

.loading h1 {
  margin-bottom: 20px;
  font-weight: 300;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-message {
  color: #ff6b6b;
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
  max-width: 400px;
}

#splash-logo {
  max-width: 120px;
  height: auto;
  animation: pulse 2s infinite ease-in-out;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.793));
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}