/* Feedback widget — floating thumbs up/down FABs + modal */

.feedback-fab-container {
  position: fixed;
  right: 0;
  top: 67%;
  transform: translateY(-50%);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.feedback-fab {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px 0 0 8px;
  background: var(--bs-body-bg, #fff);
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  opacity: 0.75;
}

.feedback-fab[data-rating="1"] {
  background: rgba(25, 135, 84, 0.08);
}

.feedback-fab[data-rating="-1"] {
  background: rgba(220, 53, 69, 0.08);
}

.feedback-fab:hover {
  opacity: 1;
  transform: scale(1.1);
}

.feedback-fab[data-rating="1"]:hover {
  background: rgba(25, 135, 84, 0.18);
}

.feedback-fab[data-rating="-1"]:hover {
  background: rgba(220, 53, 69, 0.18);
}

.feedback-fab.dimmed {
  opacity: 0.35;
}

/* Modal overlay */

.feedback-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1050;
  align-items: center;
  justify-content: center;
}

.feedback-modal-overlay.show {
  display: flex;
}

/* Modal card */

.feedback-modal {
  background: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #212529);
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: feedbackSlideIn 0.2s ease-out;
}

@keyframes feedbackSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.feedback-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--bs-secondary, #6c757d);
  line-height: 1;
}

.feedback-modal-close:hover {
  color: var(--bs-body-color, #212529);
}

.feedback-modal-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.feedback-modal-message {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.feedback-modal textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 6px;
  padding: 10px;
  font-size: 0.95rem;
  resize: vertical;
  background: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #212529);
}

.feedback-modal textarea:focus {
  outline: none;
  border-color: var(--bs-primary, #0d6efd);
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

.feedback-modal-submit {
  margin-top: 12px;
  width: 100%;
}

/* Confirmation flash */

.feedback-confirmation {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 20px 0;
}

/* Responsive: shrink FABs on small screens */

@media (max-width: 576px) {
  .feedback-fab {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .feedback-modal {
    width: 95%;
    padding: 18px;
  }
}
