/* Loading screen styles - Convex Background Design */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #55AA97; /* Default teal color from convex.dart (RGB: 85, 170, 151) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
  overflow: hidden;
}

/* SVG convex shape matching the Flutter ConvexPainter */
/* Path: moveTo(0, 35%), quadraticBezierTo(50%, 15%, 100%, 35%), then lines to bottom corners */
.convex-background {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Creates the curved convex shape that matches Flutter's ConvexPainter */
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: #ffffff;
  font-size: 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.loading-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 30px;
  opacity: 0.9;
}

