/* Loading Indicator for Firebase only */
.loading-indicator {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4361ee, #3a0ca3, #f72585);
  z-index: 1001;
  animation: loading 2s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.loading-indicator.active {
  display: block;
}

/* Mobile Navigation */
.mobile-only {
  display: none;
}

@media (max-width: 875px) {
  .mobile-only {
    display: block;
  }
  .desktop-only {
    display: none;
  }
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

/* LIQUID FOOTER STYLES */
.footer {
  background: linear-gradient(
    135deg,
    rgba(67, 97, 238, 0.1) 0%,
    rgba(58, 12, 163, 0.1) 50%,
    rgba(114, 9, 183, 0.1) 100%
  );
  color: var(--light-text);
  padding: 50px 0 30px;
  margin-top: 80px;
  width: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(67, 97, 238, 0.2);
}

.dark-theme .footer {
  background: linear-gradient(
    135deg,
    rgba(67, 97, 238, 0.15) 0%,
    rgba(58, 12, 163, 0.15) 50%,
    rgba(114, 9, 183, 0.15) 100%
  );
  color: var(--dark-text);
  border-top: 1px solid rgba(67, 97, 238, 0.3);
}

/* Animated liquid effect */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    #4361ee,
    #3a0ca3,
    #7209b7,
    #f72585,
    #4cc9f0
  );
  background-size: 400% 100%;
  animation: liquidFlow 8s linear infinite;
}

@keyframes liquidFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-logo-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
  transition: transform 0.3s ease;
}

.footer-logo-icon:hover {
  transform: rotate(15deg) scale(1.05);
}

.footer-logo-icon i {
  font-size: 2.5rem;
  color: white;
}

.footer-logo-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.5px;
  margin: 5px 0 0 0;
}

.footer-copyright {
  padding-top: 25px;
  border-top: 1px solid rgba(67, 97, 238, 0.2);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.footer-copyright-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--light-text-secondary);
}

.dark-theme .footer-copyright-text {
  color: var(--dark-text-secondary);
}

.copyright-line {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}

.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(67, 97, 238, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(67, 97, 238, 0.3);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
  transition: all 0.3s ease;
}

.developer-credit:hover {
  background: rgba(67, 97, 238, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

.developer-credit i {
  font-size: 0.9rem;
}

.footer-bottom-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
}

.footer-bottom-wave::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(transparent, rgba(67, 97, 238, 0.05));
  border-radius: 50% 50% 0 0;
  transform: scale(2);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: var(--light-bg);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s;
}

.dark-theme .mobile-menu {
  background: var(--dark-bg);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--light-border);
}

.dark-theme .mobile-menu-header {
  border-bottom-color: var(--dark-border);
}

.mobile-menu-header .logo {
  flex: 1;
}

.close-mobile-menu {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-surface);
  border: none;
  color: var(--light-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.dark-theme .close-mobile-menu {
  background: var(--dark-surface);
  color: var(--dark-text);
}

.mobile-menu-links {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  color: var(--light-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.2s;
}

.dark-theme .mobile-nav-link {
  color: var(--dark-text);
}

.mobile-nav-link:hover {
  background: var(--light-surface);
}

.dark-theme .mobile-nav-link:hover {
  background: var(--dark-surface);
}

.mobile-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.dark-theme .mobile-nav-link.active {
  background: rgba(67, 97, 238, 0.2);
}

.mobile-nav-link.admin-link {
  background: var(--gradient-primary);
  color: white !important;
}

.mobile-menu-footer {
  padding: 20px;
  border-top: 1px solid var(--light-border);
}

.dark-theme .mobile-menu-footer {
  border-top-color: var(--dark-border);
}

.theme-toggle-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--light-surface);
  border-radius: var(--radius-md);
  color: var(--light-text);
  cursor: pointer;
  font-weight: 500;
  border: none;
  width: 100%;
  font-family: inherit;
}

.dark-theme .theme-toggle-mobile {
  background: var(--dark-surface);
  color: var(--dark-text);
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Responsive footer */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .footer {
    padding: 40px 20px 25px;
  }

  .footer-logo-icon {
    width: 60px;
    height: 60px;
  }

  .footer-logo-icon i {
    font-size: 2rem;
  }

  .footer-logo-text h2 {
    font-size: 1.8rem;
  }

  .footer-tagline {
    font-size: 1rem;
  }

  .footer-copyright-text {
    font-size: 0.9rem;
  }

  .copyright-line {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 15px 20px;
  }

  .footer-logo-icon {
    width: 50px;
    height: 50px;
  }

  .footer-logo-icon i {
    font-size: 1.8rem;
  }

  .footer-logo-text h2 {
    font-size: 1.5rem;
  }

  .footer-tagline {
    font-size: 0.9rem;
  }

  .developer-credit {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}
