/*
   ⚠️ ERROR-UI.CSS - Host shell error overlay styling
   Scope: static host pages (e.g., index.html) only
*/
#blazor-error-ui {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

#blazor-error-ui .background {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

#blazor-error-ui .content {
  position: relative;
  margin: 2rem auto;
  max-width: 34rem;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.25);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

#blazor-error-ui .icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #dc2626;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

#blazor-error-ui .icon::before {
  content: "!";
}

#blazor-error-ui .message {
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.4;
}

#blazor-error-ui .actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

#blazor-error-ui .actions button {
  min-height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

#blazor-error-ui .reload {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
}

#blazor-error-ui .reload:hover {
  background: #c2410c;
  border-color: #c2410c;
}

#blazor-error-ui .dismiss {
  background: #ffffff;
  border-color: #d1d5db;
  color: #1f2937;
}

#blazor-error-ui .dismiss:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

@media (max-width: 640px) {
  #blazor-error-ui .content {
    margin: 1rem;
  }

  #blazor-error-ui .actions {
    justify-content: stretch;
  }

  #blazor-error-ui .actions button {
    flex: 1;
  }
}
