/* Base styles */
body {
  background-color: #111111;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #ffffff;
  overflow: hidden;
}

/* Fleek logo loading overlay styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: opacity 0.4s ease;
}

/* Support fade-out class from flutter_bootstrap.js */
#loading-overlay.fade-out { opacity: 0; }

/* Fleek logo loading animation */
.fleek-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.fleek-logo {
  position: relative;
  z-index: 0; /* establish local stacking context so pseudo-elements can sit behind */
  width: 96px;
  height: 96px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Disable previous ring effect in favor of path-travel wave */
.fleek-logo::before,
.fleek-logo::after { content: none; }

.fleek-logo-img {
  width: 68px;
  height: auto;
  display: block;
}

/* Enhanced inline SVG with multiple animations */
.fleek-inline-logo { 
  width: 96px; 
  height: auto; 
  display: block; 
  color: #ffffff;
  animation: logo-float 3s ease-in-out infinite;
}

.fleek-inline-logo .base-fill { 
  opacity: 0.9;
  animation: base-pulse 2s ease-in-out infinite;
}

.fleek-inline-logo .wave-group .wave {
  fill: none;
  stroke: rgba(255, 132, 74, 1);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  /* Enhanced dash pattern for more dynamic effect */
  stroke-dasharray: 0.15 0.85;
  stroke-dashoffset: 1;
  animation: enhanced-travel 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 132, 74, 0.6));
}

/* Multiple wave passes with different timings */
.fleek-inline-logo .wave-group .wave:nth-of-type(1) { 
  animation-delay: 0s;
  stroke: rgba(255, 107, 53, 1);
}
.fleek-inline-logo .wave-group .wave:nth-of-type(2) { 
  animation-delay: 0.3s;
  stroke: rgba(255, 140, 66, 1);
}
.fleek-inline-logo .wave-group .wave:nth-of-type(3) { 
  animation-delay: 0.6s;
  stroke: rgba(255, 160, 90, 1);
}

/* Fallback styles for old placeholder text logo (kept for safety) */
.fleek-text { display: none; }


/* Enhanced keyframe animations */
@keyframes enhanced-travel {
  0% { 
    stroke-dashoffset: 1.2;
    stroke-width: 2.8;
    opacity: 0;
  }
  15% {
    opacity: 1;
    stroke-width: 3.2;
  }
  85% {
    opacity: 1;
    stroke-width: 3.2;
  }
  100% { 
    stroke-dashoffset: -0.2;
    stroke-width: 2.8;
    opacity: 0;
  }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-2px) scale(1.02); }
}

@keyframes base-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}


.card {
  aspect-ratio: 1;
  border-radius: 8px;
}

/* Header elements */
.header {
  height: 48px;
  margin-bottom: 24px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .fleek-logo::before,
  .fleek-logo::after,
  .fleek-inline-logo,
  .fleek-inline-logo .base-fill,
  .fleek-inline-logo .wave-group .wave {
    animation: none !important;
  }
}

/* Sidebar elements */
.sidebar-item {
  height: 40px;
  margin-bottom: 16px;
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 24px;
}
