/* Splash Screen Styles */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(252, 249, 246, 0.9);
  background-image: url('assets/images/school_material_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

#splash-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(252, 249, 246, 0.8);
  z-index: 1;
}

#splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.logo {
  width: 75px;
  height: 75px;
  border-radius: 15px;
  animation: logoFloat 2s ease-in-out infinite;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 3;
}

.splash-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring {
  position: absolute;
  border: 2px solid rgba(139, 119, 101, 0.3);
  border-radius: 50%;
  animation: ripple 2s ease-out infinite;
}

.ring:nth-child(1) {
  width: 130px;
  height: 130px;
  margin: -65px 0 0 -65px;
  animation-delay: 0s;
}

.ring:nth-child(2) {
  width: 170px;
  height: 170px;
  margin: -85px 0 0 -85px;
  animation-delay: 0.3s;
}

.ring:nth-child(3) {
  width: 210px;
  height: 210px;
  margin: -105px 0 0 -105px;
  animation-delay: 0.6s;
}

.splash-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.particle {
  position: absolute;
  background: rgba(139, 119, 101, 0.4);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  top: 60%;
  left: 20%;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  top: 30%;
  left: 80%;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  top: 80%;
  left: 70%;
  animation-delay: 3s;
}

.particle:nth-child(5) {
  width: 4px;
  height: 4px;
  top: 70%;
  left: 15%;
  animation-delay: 4s;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.5;
  }
  33% {
    transform: translateY(-15px) translateX(8px);
    opacity: 0.8;
  }
  66% {
    transform: translateY(15px) translateX(-8px);
    opacity: 0.3;
  }
}

/* Hide splash when app loads */
body.app-loaded #splash-screen {
  display: none;
}
