/* report-issue.css — styling for the universal sovereign bug/issue widget (REQ-SUITE-BUG-001).
   Self-contained: uses platform CSS vars when present, with safe dark fallbacks so the drop-in
   looks right on any app. Namespaced .syndex-ri-* to never collide with a host app's styles. */

/* Compact bug-icon control (operator 2026-06-25): sized like Syndex's "?" affordance,
   styled like the Logout button (cyan→purple gradient). Self-contained gradient with
   hardcoded rgba fallbacks so it still reads as a primary action on apps without --cyan. */
.syndex-ri-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 30px;
  height: 26px;
  padding: 0;
  color: var(--cyan, var(--accent, #6ea8fe));
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.18) 0%, rgba(120, 80, 255, 0.18) 100%);
  border: 1px solid rgba(0, 200, 255, 0.22);
  border-radius: 6px;
  line-height: 0;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.syndex-ri-btn:hover {
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.3) 0%, rgba(120, 80, 255, 0.3) 100%);
  border-color: rgba(0, 200, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.08);
}
.syndex-ri-btn svg { width: 16px; height: 16px; display: block; }
.syndex-ri-floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.syndex-ri-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(6, 9, 16, 0.62);
  backdrop-filter: blur(2px);
  padding: 8vh 16px 16px;
}
.syndex-ri-overlay.open { display: flex; }

.syndex-ri-modal {
  width: 100%;
  max-width: 540px;
  max-height: 84vh;
  overflow: auto;
  background: var(--surface, #141925);
  color: var(--text, #e6e9ef);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  padding: 18px 18px 14px;
  font-family: inherit;
}

.syndex-ri-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.syndex-ri-title { font-size: 17px; font-weight: 650; }
.syndex-ri-x { background: none; border: none; color: var(--text-muted, #9aa3b2); font-size: 18px; cursor: pointer; line-height: 1; padding: 2px 6px; }
.syndex-ri-x:hover { color: var(--text, #e6e9ef); }

.syndex-ri-desc {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 96px;
  background: var(--surface-2, rgba(255, 255, 255, 0.04));
  color: var(--text, #e6e9ef);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}
.syndex-ri-desc:focus { outline: none; border-color: var(--accent, #6ea8fe); }

.syndex-ri-dropzone {
  margin-top: 10px;
  border: 1.5px dashed var(--border, rgba(255, 255, 255, 0.2));
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: var(--text-muted, #9aa3b2);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.syndex-ri-dropzone:hover, .syndex-ri-dropzone.drag { border-color: var(--accent, #6ea8fe); background: rgba(110, 168, 254, 0.06); }
.syndex-ri-dz-link { color: var(--accent, #6ea8fe); text-decoration: underline; }

.syndex-ri-shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.syndex-ri-thumb { position: relative; width: 84px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border, rgba(255, 255, 255, 0.14)); }
.syndex-ri-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.syndex-ri-thumb-x {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0, 0, 0, 0.6); color: #fff; border: none; border-radius: 50%;
  width: 18px; height: 18px; font-size: 11px; line-height: 1; cursor: pointer;
}

.syndex-ri-status { margin-top: 10px; font-size: 13px; color: var(--accent, #6ea8fe); min-height: 18px; }
.syndex-ri-status.err { color: var(--danger, #ff6b6b); }

.syndex-ri-footer { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.syndex-ri-sovnote { font-size: 11.5px; color: var(--text-muted, #9aa3b2); }
.syndex-ri-actions { display: flex; gap: 8px; margin-left: auto; }
.syndex-ri-cancel, .syndex-ri-submit { cursor: pointer; font: inherit; font-size: 13px; border-radius: 8px; padding: 8px 14px; border: 1px solid var(--border, rgba(255, 255, 255, 0.14)); }
.syndex-ri-cancel { background: transparent; color: var(--text-muted, #9aa3b2); }
.syndex-ri-cancel:hover { color: var(--text, #e6e9ef); }
.syndex-ri-submit { background: var(--accent, #6ea8fe); color: #08101f; border-color: transparent; font-weight: 600; }
.syndex-ri-submit:hover { filter: brightness(1.06); }
.syndex-ri-submit:disabled { opacity: 0.6; cursor: default; }
