/* Styles for the SmoothSoft.Support.Blazor components. Include once in App.razor:
   <link href="_content/SmoothSoft.Support.Blazor/css/support.css" rel="stylesheet" /> */

.support-drop {
  border: 2px dashed var(--mud-palette-lines-inputs, #bbb);
  border-radius: 8px;
  padding: 12px;
  transition: border-color 120ms, background-color 120ms;
}

.support-drop--over {
  border-color: var(--mud-palette-primary, #594ae2);
  background-color: var(--mud-palette-primary-hover, rgba(89, 74, 226, 0.08));
}

.support-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.support-thumb {
  position: relative;
  width: 112px;
  border: 1px solid var(--mud-palette-lines-default, #ddd);
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
  background: var(--mud-palette-background-gray, #f5f5f5);
}

.support-thumb img,
.support-thumb .support-thumb__icon {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.support-thumb .support-thumb__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-thumb__name {
  padding: 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-thumb__remove {
  position: absolute;
  top: 2px;
  right: 2px;
}

.support-prewrap {
  white-space: pre-wrap;
  word-break: break-word;
}

.support-release-notes h1,
.support-release-notes h2,
.support-release-notes h3 {
  font-size: 1.05rem;
  margin: 12px 0 4px;
}

.support-release-notes ul {
  margin: 4px 0 8px 20px;
}

.support-release-notes img {
  max-width: 100%;
}

/* Shown in place of the Report dialog while a screenshot or recording is being taken, so the
   person can use the app to show the problem. Fixed colours: it sits on top of whatever page is
   open, light or dark. */
.support-recording-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: #1f2430;
  color: #fff;
  font: 14px/1.3 var(--mud-typography-default-family, system-ui, sans-serif);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.support-recording-bar__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  animation: support-recording-pulse 1.2s ease-in-out infinite;
}

.support-recording-bar__time {
  font-variant-numeric: tabular-nums;
}

.support-recording-bar__stop {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 16px;
  background: #ef4444;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.support-recording-bar__stop:hover,
.support-recording-bar__stop:focus-visible {
  background: #dc2626;
}

@keyframes support-recording-pulse {
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .support-recording-bar__dot { animation: none; }
}

/* The quieter buttons on the screenshot bar: Capture in 3 s, Cancel. */
.support-recording-bar__btn {
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.support-recording-bar__btn:hover,
.support-recording-bar__btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.support-recording-bar [hidden] {
  display: none;
}
