/* ===== BUG REPORT UI ===== */
#bug-report-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #5c6bc0;
  color: white;
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  line-height: 1;
}
#bug-report-btn:hover {
  background: #3f51b5;
  transform: scale(1.08);
}
#bug-report-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: #f44336;
  border-radius: 50%;
  font-size: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

#bug-report-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#bug-report-overlay.active {
  display: flex;
}

#bug-report-modal {
  background: #fafaf7;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  padding: 24px;
  position: relative;
}

#bug-report-modal h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: #3f3f3f;
}

#bug-report-modal .form-group {
  margin-bottom: 14px;
}

#bug-report-modal label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 4px;
}

#bug-report-modal textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  background: #fff;
  box-sizing: border-box;
}
#bug-report-modal textarea:focus {
  outline: none;
  border-color: #5c6bc0;
}

#bug-report-modal select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}

.bug-context-info {
  background: #f0f0ec;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.5;
}
.bug-context-info strong {
  color: #444;
}

.bug-error-banner {
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  color: #c62828;
  margin-bottom: 14px;
  max-height: 80px;
  overflow-y: auto;
  word-break: break-word;
}

.bug-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.bug-actions button {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-cancel {
  background: #e0e0e0;
  color: #666;
}
.btn-cancel:hover { background: #d0d0d0; }

.btn-submit {
  background: #5c6bc0;
  color: white;
}
.btn-submit:hover { background: #3f51b5; }
.btn-submit:disabled {
  background: #b0b0b0;
  cursor: not-allowed;
}

.bug-success {
  text-align: center;
  padding: 20px;
}
.bug-success .icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.bug-success p {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}