/* FlexNeur — Visual da referência para o modal "Enviar feedback" (design-feedback.jpg)
   Preserva todos os IDs, classes de estado e tema claro. */

html:not([data-theme="light"]) .feedback-modal-backdrop {
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(8px);
}

.feedback-dialog {
  border-radius: 16px;
  padding: 24px;
}

html:not([data-theme="light"]) .feedback-dialog {
  background: #111318;
  border: 1px solid #2A2D35;
  color: #F3F4F6;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.feedback-dialog-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

html:not([data-theme="light"]) .feedback-dialog-head p {
  color: #8B909A;
  font-size: 14px;
}

/* Botão de fechar circular 44x44 com fundo elevado */
.feedback-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
}

html:not([data-theme="light"]) .feedback-close {
  background: #24272F;
  color: #D1D5DB;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

html:not([data-theme="light"]) .feedback-close:hover {
  background: #2F333E;
  color: #FFFFFF;
}

html[data-theme="light"] .feedback-close {
  background: #EEF2EF;
  color: #111615;
  border: 1px solid #CBD5D0;
}

/* Seletor de tipo (#feedback-category) com destaque verde #47D19C */
.feedback-form label,
.feedback-rating legend {
  font-size: 14px;
  font-weight: 600;
}

.feedback-form select {
  min-height: 44px;
  border-radius: 10px;
  padding: 10px 38px 10px 14px;
  font-size: 15px;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

html:not([data-theme="light"]) .feedback-form select {
  background-color: #13221D;
  border: 1px solid #47D19C;
  color: #F3F4F6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2347D19C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

html[data-theme="light"] .feedback-form select {
  background-color: #EDF8F3;
  border: 1px solid #095C44;
  color: #111615;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23095C44' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Estrelas de avaliação: preenchidas em #47D19C quando marcadas */
.feedback-rating-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.feedback-rating-buttons button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

html:not([data-theme="light"]) .feedback-rating-buttons button {
  background: #262930;
  border: 1px solid #353942;
  color: #D1D5DB;
}

html:not([data-theme="light"]) .feedback-rating-buttons button[aria-pressed="true"],
html:not([data-theme="light"]) .feedback-rating-buttons button:hover {
  background: #13221D;
  border-color: #47D19C;
  color: #47D19C;
}

html[data-theme="light"] .feedback-rating-buttons button[aria-pressed="true"],
html[data-theme="light"] .feedback-rating-buttons button:hover {
  background: #DCF5EA;
  border-color: #095C44;
  color: #095C44;
}

.feedback-rating-value {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 14px;
}

html:not([data-theme="light"]) .feedback-rating-value {
  background: #20232B;
  color: #9CA3AF;
  border: 1px solid #2E323B;
}

html[data-theme="light"] .feedback-rating-value {
  background: #EEF2EF;
  color: #45504B;
  border: 1px solid #CBD5D0;
}

/* Textarea e contador no canto inferior direito */
.feedback-message-wrap {
  position: relative;
}

.feedback-form textarea {
  border-radius: 10px;
  padding: 12px 14px 32px;
  font-size: 15px;
  min-height: 136px;
}

html:not([data-theme="light"]) .feedback-form textarea {
  background: #16181E;
  border: 1px solid #2E323B;
  color: #F3F4F6;
}

html:not([data-theme="light"]) .feedback-form textarea::placeholder {
  color: #6B7280;
}

.feedback-counter {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  color: #8B909A;
}

html[data-theme="light"] .feedback-counter {
  color: #45504B;
}

/* Card de privacidade com ícone de cadeado via ::before */
.feedback-privacy-note {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.feedback-privacy-note::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2347D19C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

html:not([data-theme="light"]) .feedback-privacy-note {
  background: #1A1D24;
  border: 1px solid #2A2D35;
  color: #B4BAC4;
}

html[data-theme="light"] .feedback-privacy-note {
  background: #F2F6F4;
  border: 1px solid #CBD5D0;
  color: #2B463C;
}

html[data-theme="light"] .feedback-privacy-note::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23095C44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* Botões de rodapé >= 44px e ícone de envio via ::before */
.feedback-dialog-actions {
  gap: 10px;
}

.feedback-dialog-actions button {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

html:not([data-theme="light"]) #feedback-cancel {
  background: #1A1D24;
  border: 1px solid #2E323B;
  color: #F3F4F6;
}

html:not([data-theme="light"]) #feedback-cancel:hover {
  background: #24272F;
}

.feedback-dialog-actions .feedback-submit {
  background: #47D19C;
  border: 1px solid #47D19C;
  color: #071A13;
  font-weight: 700;
}

.feedback-dialog-actions .feedback-submit:hover:not(:disabled) {
  background: #5BE0AE;
  border-color: #5BE0AE;
}

.feedback-dialog-actions .feedback-submit::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23071A13' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E");
}
