/* Main Container */
.maintenance-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 99999;
}

/* Background Overlay */
.maintenance-page__background-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(99, 102, 241, 0.03),
    transparent 70%
  );
}

/* Content Container */
.maintenance-page__content-container {
  position: relative;
  text-align: center;
  z-index: 1;
}

/* Icon Container */
.maintenance-page__icon-container {
  margin-bottom: 48px;
}

/* SVG */
.maintenance-page__svg {
  width: 200px;
  height: 200px;
}

/* Outer Gear Animation */
.maintenance-page__outer-gear {
  animation: maintenanceRotate 8s linear infinite;
  transform-origin: 100px 100px;
}

/* Inner Gear Animation */
.maintenance-page__inner-gear {
  animation: maintenanceRotate 6s linear infinite reverse;
  transform-origin: 100px 100px;
}

/* Progress Indicator Animation */
.maintenance-page__progress-indicator {
  animation: maintenanceRotate 3s linear infinite;
  transform-origin: 100px 100px;
}

/* Main Title */
.maintenance-page__main-title {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

/* Sub Title */
.maintenance-page__sub-title {
  font-size: 24px;
  font-weight: 500;
  color: #4a90e2;
  margin: 0 0 24px 0;
  letter-spacing: 0px;
}

/* Description Text */
.maintenance-page__description-text {
  font-size: 16px;
  color: #6b7280;
  margin: 0 0 48px 0;
  font-weight: 400;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Refresh Button */
.maintenance-page__refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #4a90e2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  margin-bottom: 32px;
}

.maintenance-page__refresh-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(74, 144, 226, 0.3);
  background: #357abd;
}

.maintenance-page__refresh-button:active {
  transform: translateY(0);
}

/* Refresh Icon */
.maintenance-page__refresh-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.maintenance-page__refresh-button:hover .maintenance-page__refresh-icon {
  transform: rotate(360deg);
}

/* Footer Text */
.maintenance-page__footer-text {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
  font-weight: 400;
}

/* Keyframe Animation */
@keyframes maintenanceRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .maintenance-page__svg {
    width: 160px;
    height: 160px;
  }

  .maintenance-page__main-title {
    font-size: 36px;
  }

  .maintenance-page__sub-title {
    font-size: 20px;
  }

  .maintenance-page__description-text {
    font-size: 14px;
    padding: 0 24px;
  }

  .maintenance-page__refresh-button {
    padding: 12px 28px;
    font-size: 14px;
  }

  .maintenance-page__footer-text {
    font-size: 13px;
    padding: 0 24px;
  }
}

/* page not found screen */

.page-not-found {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  border-radius: 8px;
  color: #000;
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.page-not-found .error-container {
  text-align: center;
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.page-not-found .error-icon {
  width: 200px;
  height: 200px;
  margin: 0 auto 0;
  opacity: 0;
  animation: slideInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-not-found .error-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.page-not-found .error-number {
  font-size: 11rem;
  font-weight: 900;
  background: linear-gradient(135deg, #0300ad 0%, #7e7dad 50%, #848497 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  line-height: 0.9;
  letter-spacing: -0.05em;
  position: relative;
  animation: slideInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  background-size: 200% 200%;
  animation: slideInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    gradientShift 4s ease-in-out infinite 1.5s;
}

.page-not-found .error-number::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(62, 103, 112, 0.1) 0%,
    rgba(144, 181, 165, 0.1) 50%,
    rgba(59, 130, 246, 0.1) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translate(8px, 8px);
  z-index: -1;
  animation: floatShadow 3s ease-in-out infinite;
}

.page-not-found .error-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #363131;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.page-not-found .error-message {
  font-size: 1.2rem;
  color: #363131;
  line-height: 1.7;
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.page-not-found .decorative-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.page-not-found .floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

/* Animations */
@keyframes slideInScale {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(60px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes floatShadow {
  0%,
  100% {
    transform: translate(8px, 8px);
    opacity: 0.3;
  }
  50% {
    transform: translate(12px, 12px);
    opacity: 0.1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-not-found .error-number {
    margin-bottom: 1.5rem;
  }

  .page-not-found .error-title {
    margin-bottom: 1rem;
  }

  .page-not-found .floating-shape {
    opacity: 0.3;
  }

  .page-not-found .error-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .page-not-found {
    padding: 15px;
  }

  .page-not-found .error-number {
    margin-bottom: 1rem;
  }

  .page-not-found .error-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 360px) {
  .page-not-found .error-container {
    max-width: 100%;
  }
}
