
/* Dialog */
#error-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#error-dialog .dialog-box {
  background: transparent;
  padding: 1.5rem;  
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.dialog-box h3 {
  margin-top: 0;
}

#error-dialog .error-message {
  color: var(--light-gray);
}

/* Countdown Container */
#error-dialog .countdown-container {
  display: none;
  margin-top: 20px;
  padding: 15px;
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  text-align: center;
}

#error-dialog .countdown-text {
  font-size: 14px;
  color: #856404;
  margin: 0 0 12px 0;
  font-weight: 500;
}

#error-dialog .countdown-timer {
  display: inline-block;
  min-width: 24px;
  font-weight: 700;
  font-size: 18px;
  color: #d32f2f;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Progress Bar */
#error-dialog .countdown-progress-bar {
  width: 100%;
  height: 8px;
  background-color: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#error-dialog .countdown-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b 0%, #ee5a6f 50%, #d32f2f 100%);
  transition: width 1s linear;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

#error-dialog .countdown-progress-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Dialog overlay enhancement */
.dialog-overlay {
  backdrop-filter: blur(2px);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}