/* Bug Report Button — small icon button positioned just above the Feedback trigger */
.bug-report-trigger {
  position: fixed;
  bottom: 20px;
  left: 148px; /* sits right of the Feedback button */
  z-index: 9998;
  background: #dc2626;
  color: #fff;
  border: 2px solid #dc2626;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  padding: 0;
}

.bug-report-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #dc2626;
}

.bug-report-icon {
  font-size: 16px;
  line-height: 1;
}

/* Popup */
.bug-report-popup {
  position: fixed;
  bottom: 72px;
  left: 130px;
  z-index: 9998;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 18px;
  max-width: 300px;
  width: 300px;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(220, 38, 38, 0.15);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.bug-report-popup.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.bug-report-popup.hide {
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
}

.bug-report-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  color: #666;
  font-size: 14px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}

.bug-report-close:hover {
  background: rgba(0, 0, 0, 0.15);
}

.bug-report-header {
  margin-bottom: 12px;
}

.bug-report-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #dc2626;
  margin: 0 0 3px 0;
}

.bug-report-header p {
  font-size: 12px;
  color: #6C757D;
  margin: 0;
}

.bug-report-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
  transition: border-color 0.2s;
  margin-bottom: 10px;
}

.bug-report-textarea:focus {
  outline: none;
  border-color: #dc2626;
}

.bug-report-textarea::placeholder {
  color: #9CA3AF;
}

.bug-report-submit {
  width: 100%;
  padding: 8px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.bug-report-submit:hover {
  background: #b91c1c;
}

.bug-report-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bug-report-success {
  text-align: center;
  padding: 12px 0;
}

.bug-report-success-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.bug-report-success h3 {
  color: #0F5132;
  font-size: 15px;
  margin: 0 0 4px 0;
}

.bug-report-success p {
  color: #6C757D;
  font-size: 12px;
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .bug-report-trigger {
    bottom: max(15px, env(safe-area-inset-bottom));
    left: 128px;
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .bug-report-popup {
    bottom: 60px;
    left: 10px;
    max-width: calc(100vw - 20px);
    width: 280px;
  }
}

@media (max-width: 480px) {
  .bug-report-trigger {
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 112px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .bug-report-popup {
    bottom: 55px;
    left: 10px;
    max-width: calc(100vw - 20px);
    width: 270px;
    padding: 14px;
  }
}
