/* css/feedback.css */

.ddd-feedback-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9000;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(21, 251, 0, 0.55);
  background: #15fb00;
  color: #001b00;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(21, 251, 0, 0.25), 0 14px 34px rgba(0,0,0,.55);
}

.ddd-feedback-launcher:hover {
  transform: translateY(-1px);
}

.ddd-feedback-modal.hidden,
.ddd-admin-feedback-view.hidden {
  display: none !important;
}

.ddd-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

.ddd-feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(4px);
}

.ddd-feedback-dialog {
  position: relative;
  z-index: 2;
  width: min(94vw, 560px);
  max-height: 92vh;
  overflow: auto;
  background: #050505;
  border: 1px solid rgba(21, 251, 0, 0.35);
  border-radius: 22px;
  padding: 22px;
  color: #eaffea;
  box-shadow: 0 18px 60px rgba(0,0,0,.7), 0 0 26px rgba(21,251,0,.15);
}

.ddd-feedback-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: #111;
  color: #fff;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.ddd-feedback-kicker {
  color: #15fb00;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ddd-feedback-dialog h2 {
  margin: 6px 42px 8px 0;
  color: #15fb00;
}

.ddd-feedback-copy,
.ddd-feedback-status,
.ddd-mini-status {
  color: rgba(234,255,234,.75);
}

.ddd-feedback-form {
  display: grid;
  gap: 14px;
}

.ddd-feedback-form label,
.ddd-rating-fieldset {
  display: grid;
  gap: 7px;
  border: 0;
  padding: 0;
  margin: 0;
  font-weight: 800;
}

.ddd-feedback-form select,
.ddd-feedback-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(21,251,0,.28);
  border-radius: 12px;
  background: #050505;
  color: #eaffea;
  padding: 11px 12px;
}

.ddd-feedback-form textarea {
  min-height: 120px;
  resize: vertical;
}

.ddd-rating-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ddd-rating-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(21,251,0,.3);
  background: #111;
  color: #eaffea;
  font-weight: 900;
  cursor: pointer;
}

.ddd-rating-btn.active,
.ddd-rating-btn:hover {
  background: #15fb00;
  color: #001b00;
}

.ddd-feedback-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  color: rgba(234,255,234,.75);
}

.ddd-feedback-check input {
  width: auto !important;
  margin-top: 4px;
}

.ddd-feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ddd-feedback-primary,
.ddd-feedback-secondary,
.ddd-reaction-btn,
.ddd-feature-vote-btn,
.ddd-feedback-view-btn {
  border-radius: 999px;
  border: 1px solid rgba(21,251,0,.28);
  padding: 9px 13px;
  font-weight: 900;
  cursor: pointer;
}

.ddd-feedback-primary {
  background: #15fb00;
  color: #001b00;
}

.ddd-feedback-secondary,
.ddd-feedback-view-btn {
  background: #111;
  color: #eaffea;
}

.ddd-feedback-view-btn.active {
  background: #15fb00;
  color: #001b00;
}

.ddd-page-reaction-card,
.ddd-feature-vote-card {
  width: min(1100px, calc(100% - 24px));
  margin: 16px auto;
  padding: 16px;
  border: 1px solid rgba(21,251,0,.28);
  border-radius: 18px;
  background: rgba(0,0,0,.78);
  color: #eaffea;
  box-sizing: border-box;
}

.ddd-page-reaction-card h3,
.ddd-feature-vote-card h3 {
  margin: 0 0 4px;
  color: #15fb00;
}

.ddd-page-reaction-card p,
.ddd-feature-vote-card p {
  margin: 0 0 12px;
  color: rgba(234,255,234,.72);
}

.ddd-reaction-buttons,
.ddd-feature-vote-buttons,
.ddd-admin-feedback-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ddd-reaction-btn,
.ddd-feature-vote-btn {
  background: #101010;
  color: #eaffea;
}

.ddd-reaction-btn:hover,
.ddd-feature-vote-btn:hover {
  background: rgba(21,251,0,.14);
}

.ddd-feedback-status.success,
.ddd-mini-status.success {
  color: #15fb00;
}

.ddd-feedback-status.error,
.ddd-mini-status.error {
  color: #ff9d9d;
}

.ddd-admin-feedback-card {
  border-left: 4px solid rgba(21,251,0,.45);
}

.ddd-admin-feedback-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: #b9c7b9;
}

.ddd-admin-feedback-message {
  white-space: pre-wrap;
  margin-top: 8px;
  line-height: 1.45;
}

.ddd-admin-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .ddd-feedback-launcher {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
    font-size: .88rem;
  }

  .ddd-feedback-actions {
    justify-content: stretch;
  }

  .ddd-feedback-primary,
  .ddd-feedback-secondary {
    width: 100%;
  }
}

.ddd-reaction-btn[data-mode="details"] {
  border-style: dashed;
}

.ddd-reaction-btn[data-mode="details"]:hover {
  background: rgba(21, 251, 0, 0.18);
}