/* Bug Widget — Standalone Stylesheet
   Use this if you prefer an external CSS file instead of the auto-injected styles.
   Include BEFORE bug-widget.js and the inline styles will still take precedence,
   or use this for customization. */

.bw-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3b82f6;
  border: none;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bw-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.bw-fab svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.bw-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.bw-overlay.bw-visible {
  opacity: 1;
}

.bw-modal {
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  width: 90%;
  max-width: 440px;
  padding: 24px;
  transform: translateY(10px);
  transition: transform 0.15s ease;
}

.bw-overlay.bw-visible .bw-modal {
  transform: translateY(0);
}

.bw-title {
  color: #e5e5e5;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bw-subtitle {
  color: #a3a3a3;
  font-size: 13px;
  margin: 0 0 16px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bw-textarea {
  width: 100%;
  min-height: 120px;
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  color: #e5e5e5;
  font-size: 14px;
  padding: 12px;
  resize: vertical;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

.bw-textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.bw-textarea::placeholder {
  color: #666;
}

.bw-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.bw-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: opacity 0.15s;
}

.bw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bw-btn-cancel {
  background: transparent;
  color: #a3a3a3;
}

.bw-btn-cancel:hover {
  color: #e5e5e5;
}

.bw-btn-submit {
  background: #3b82f6;
  color: #ffffff;
}

.bw-btn-submit:hover:not(:disabled) {
  background: #2563eb;
}

.bw-thanks {
  text-align: center;
  padding: 32px 0;
}

.bw-thanks-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.bw-thanks-text {
  color: #22c55e;
  font-size: 16px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bw-charcount {
  color: #666;
  font-size: 11px;
  text-align: right;
  margin-top: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bw-charcount.bw-warn {
  color: #ef4444;
}
