 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #1a1a1a;
  --primary-main: #2563eb;
  --primary-light: #3b82f6;
  --danger: #ef4444;
  --warning: #f59e0b;
  --surface: #ffffff;
  --surface-variant: #f9fafb;
  --outline: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: linear-gradient(135deg, var(--surface-variant) 0%, #f3f4f6 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.error-container {
  max-width: 600px;
  width: 100%;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  padding: 60px 40px;
  text-align: center;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 40px;
  color: var(--danger);
}

.error-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.error-code {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--danger);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.error-message {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.error-details {
  background: var(--surface-variant);
  border-left: 4px solid var(--danger);
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 32px;
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
}

.error-details p {
  margin: 8px 0;
  word-break: break-all;
}

.error-details strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-main);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface-variant);
  color: var(--text-primary);
  border: 1px solid var(--outline);
}

.btn-secondary:hover {
  background: var(--outline);
  border-color: var(--text-tertiary);
}

.divider {
  height: 1px;
  background: var(--outline);
  margin: 24px 0;
}

.support-info {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
}

.support-info p {
  margin: 4px 0;
}

.support-info i {
  color: var(--primary-main);
  margin-right: 6px;
}

/* SUCCESS VARIANT */
.error-container.success .error-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  color: #10b981;
}

.error-container.success .error-title {
  color: #10b981;
}

.error-container.success .error-code {
  color: #10b981;
}

.error-container.success .error-details {
  border-left-color: #10b981;
}

/* WARNING VARIANT */
.error-container.warning .error-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  color: var(--warning);
}

.error-container.warning .error-title {
  color: var(--warning);
}

.error-container.warning .error-code {
  color: var(--warning);
}

.error-container.warning .error-details {
  border-left-color: var(--warning);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .error-container {
    padding: 40px 24px;
  }

  .error-icon {
    width: 60px;
    height: 60px;
    font-size: 32px;
  }

  .error-title {
    font-size: 22px;
  }

  .error-message {
    font-size: 14px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
  }
}
.hidden{
  display:none;
}