/* Floating team feedback — Dixie Door dashboard */

.dixie-fb-root {
  position: fixed;
  z-index: 9999;
  right: 16px;
  bottom: 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.dixie-fb-fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 64px;
  min-height: 64px;
  padding: 10px 12px;
  border: none;
  border-radius: 50%;
  background: #e5132e;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1.1;
}
.dixie-fb-fab:hover {
  filter: brightness(1.08);
}
.dixie-fb-fab-ico {
  font-size: 1.35rem;
  line-height: 1;
}
.dixie-fb-fab-lab {
  letter-spacing: 0.02em;
}
.dixie-fb-fab-who {
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.9;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dixie-fb-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(340px, calc(100vw - 32px));
  background: var(--card-bg, #1a2332);
  color: var(--text, #e8eef7);
  border: 1px solid var(--border, #334155);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  padding: 14px 14px 12px;
}
html[data-theme="light"] .dixie-fb-panel {
  background: #fff;
  color: #0f172a;
  border-color: #e2e8f0;
}
@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .dixie-fb-panel {
    background: #fff;
    color: #0f172a;
    border-color: #e2e8f0;
  }
}

.dixie-fb-panel.hidden {
  display: none !important;
}

.dixie-fb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.dixie-fb-x {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 4px;
}
.dixie-fb-hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.35;
}
.dixie-fb-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin: 8px 0 4px;
}
.dixie-fb-select,
.dixie-fb-input,
.dixie-fb-ta {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--border, #334155);
  background: var(--input-bg, #0f172a);
  color: inherit;
  padding: 10px 12px;
  font-size: 1rem;
}
html[data-theme="light"] .dixie-fb-select,
html[data-theme="light"] .dixie-fb-input,
html[data-theme="light"] .dixie-fb-ta {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.dixie-fb-ta {
  resize: vertical;
  min-height: 88px;
  font-family: inherit;
}
.dixie-fb-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.dixie-fb-btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 12px 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.dixie-fb-btn.mic {
  background: var(--input-bg, #334155);
  color: inherit;
  border: 1px solid var(--border, #475569);
}
.dixie-fb-btn.mic.recording {
  background: #e5132e;
  color: #fff;
  border-color: #e5132e;
  animation: dixie-fb-pulse 1.2s ease infinite;
}
@keyframes dixie-fb-pulse {
  50% {
    opacity: 0.85;
  }
}
.dixie-fb-btn.primary {
  background: #e5132e;
  color: #fff;
}
.dixie-fb-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.dixie-fb-foot {
  margin: 10px 0 0;
  font-size: 0.75rem;
  opacity: 0.8;
}
.dixie-fb-foot a {
  color: #e5132e;
  font-weight: 700;
  text-decoration: none;
}

.dixie-fb-toast {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%) translateY(20px);
  max-width: min(90vw, 360px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  text-align: center;
}
.dixie-fb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.dixie-fb-toast.ok {
  background: #065f46;
}
.dixie-fb-toast.err {
  background: #991b1b;
}

/* Feedback list page cards */
.fb-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0;
  background: var(--card-bg, transparent);
}
.fb-card .who {
  font-weight: 800;
  color: var(--brand-red, #e5132e);
  font-size: 1rem;
}
.fb-card .when {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 8px;
}
.fb-card .body {
  margin: 8px 0 0;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 1.05rem;
}
.fb-card .meta-row {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .dixie-fb-root {
    right: 12px;
    bottom: 12px;
  }
  .dixie-fb-fab {
    min-width: 58px;
    min-height: 58px;
  }
}
