/* Error Popup Styles */
.error-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  animation: errorOverlayIn 0.25s ease-out;
  backface-visibility: hidden;
}

.error-popup-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: errorContentIn 0.3s ease-out 0.04s both;
  backface-visibility: hidden;
}

.error-popup-body {
  text-align: center;
  margin-top: 1rem;
}

.error-popup-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: errorIconIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
  backface-visibility: hidden;
}

.error-popup-icon {
  width: 36px;
  height: 36px;
  color: #fff;
}

.error-popup-title {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  color: #333;
  font-weight: 600;
}

.error-popup-message {
  margin: 0 0 2rem 0;
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

@keyframes errorOverlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes errorContentIn {
  from {
    transform: translate(-50%, -50%) translateY(10px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
  }
}

@keyframes errorIconIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Dark mode */
body.night-mode .error-popup-content {
  background-color: rgba(38, 38, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.night-mode .error-popup-title {
  color: rgba(255, 255, 255, 0.95);
}
body.night-mode .error-popup-message {
  color: rgba(255, 255, 255, 0.85);
}
