/* Error Modal Styles */
.ziki-error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ziki-error-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ziki-error-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  padding: 0;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.ziki-error-overlay.active .ziki-error-modal {
  transform: scale(1) translateY(0);
}

.ziki-error-header {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  padding: 24px 24px 20px;
  text-align: center;
}

.ziki-error-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 12px;
}

.ziki-error-icon svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.ziki-error-header h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.ziki-error-body {
  padding: 24px;
  text-align: center;
}

.ziki-error-message {
  color: #374151;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.ziki-error-submessage {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  padding: 12px;
  background: #f3f4f6;
  border-radius: 8px;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.ziki-error-footer {
  padding: 0 24px 24px;
  display: flex;
  justify-content: center;
}

.ziki-error-btn {
  background: linear-gradient(135deg, #210A74 0%, #3b1d9e 100%);
  color: #ffffff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Segoe UI', Arial, sans-serif;
  min-width: 120px;
}

.ziki-error-btn:hover {
  background: linear-gradient(135deg, #3b1d9e 0%, #210A74 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 10, 116, 0.3);
}

.ziki-error-btn:active {
  transform: translateY(0);
}

.ziki-error-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.ziki-error-btn-sending {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ziki-error-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ziki-spin 0.8s linear infinite;
}

@keyframes ziki-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success state */
.ziki-error-modal.success .ziki-error-header {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* Warning state */
.ziki-error-modal.warning .ziki-error-header {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Animation for entrance */
@keyframes ziki-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.ziki-error-modal.shake {
  animation: ziki-shake 0.5s ease;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .ziki-error-modal {
    width: 95%;
    max-width: none;
    margin: 10px;
  }
  
  .ziki-error-header {
    padding: 20px 16px 16px;
  }
  
  .ziki-error-body {
    padding: 20px 16px;
  }
  
  .ziki-error-footer {
    padding: 0 16px 20px;
  }
  
  .ziki-error-message {
    font-size: 14px;
  }
}
