/* Shared Footer */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
.main-content,
.statistics-page,
.admin-container,
.container {
  flex: 1;
}

.site-footer {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 36%);
  color: #e2e8f0;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #16a34a 50%, #f59e0b 100%);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.36);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 34px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copyright {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.footer-info {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 400;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #60a5fa;
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-link:hover::after {
  width: 100%;
}

.btn-scroll-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(203, 213, 225, 0.34);
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-scroll-top:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
}

.btn-scroll-top:hover svg {
  stroke: #0f172a;
}

/* Tablets */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 28px 20px;
  }

  .footer-left {
    align-items: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 16px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .footer-container {
    padding: 24px 16px;
    gap: 16px;
  }

  .footer-copyright {
    font-size: 13px;
  }

  .footer-info {
    font-size: 12px;
  }

  .site-footer::before {
    height: 2px;
  }
}
