/* ============================================
   FEEDBACK SYSTEM - Theme-adaptive
   ============================================ */

/* --- Ear Tab --- */
#feedbackEarTab {
  position: fixed;
  top: calc(80px + 10vh);
  right: 0;
  z-index: 9999991;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--button-surface, var(--bg-card, #1e293b));
  color: var(--text-primary, #f1f5f9);
  font-family: var(--font-family, 'Plus Jakarta Sans', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 4px;
  border-radius: 6px 0 0 6px;
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-right: none;
  box-shadow: -2px 3px 12px rgba(0,0,0,0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  display: none;
}

#feedbackEarTab:hover {
  padding-left: 8px;
  box-shadow: -4px 4px 20px rgba(0,0,0,0.45);
  filter: brightness(1.15);
}

#feedbackEarTab i {
  writing-mode: horizontal-tb;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

#feedbackEarTab.visible {
  display: block;
  animation: feedbackEarSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes feedbackEarSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Sliding Panel --- */
#feedbackPanel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  z-index: 999999;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  background: var(--bg-card, linear-gradient(180deg, #0c1222, #111827));
  border-left: 1px solid var(--border-color, rgba(148,163,184,0.12));
  box-shadow: var(--shadow-soft, -20px 0 60px rgba(0,0,0,0.5));
  pointer-events: none;
}

#feedbackPanel.open {
  transform: translateX(0);
  pointer-events: all;
}

#feedbackEarTab.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}

/* --- Panel Header --- */
.feedback-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-card-soft, rgba(30,41,59,0.8));
  border-bottom: 1px solid var(--border-color, rgba(148,163,184,0.1));
  flex-shrink: 0;
}

.feedback-panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary, #eff6ff);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feedback-panel-header h3 i {
  color: var(--color-indigo, #818cf8);
  font-size: 18px;
}

.feedback-panel-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-color, rgba(148,163,184,0.15));
  background: var(--bg-input, rgba(30,41,59,0.6));
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 14px;
}

.feedback-panel-close:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: var(--color-rose, #fb7185);
}

/* --- Panel Body --- */
.feedback-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feedback-panel-body::-webkit-scrollbar { width: 5px; }
.feedback-panel-body::-webkit-scrollbar-track { background: transparent; }
.feedback-panel-body::-webkit-scrollbar-thumb { background: var(--border-color, rgba(148,163,184,0.2)); border-radius: 10px; }

/* --- Form Fields --- */
.feedback-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feedback-field-label i {
  color: var(--color-indigo, #818cf8);
  font-size: 12px;
}

.feedback-field-label .required-dot {
  width: 6px;
  height: 6px;
  background: var(--color-rose, #ef4444);
  border-radius: 50%;
  display: inline-block;
}

.feedback-input,
.feedback-select,
.feedback-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border-color, rgba(148,163,184,0.15));
  background: var(--bg-input, rgba(15,23,42,0.6));
  color: var(--text-primary, #eff6ff);
  font-family: var(--font-family, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
  box-sizing: border-box;
}

.feedback-input:focus,
.feedback-select:focus,
.feedback-textarea:focus {
  border-color: var(--border-focus, #818cf8);
  box-shadow: 0 0 0 3px rgba(129,140,248,0.1);
}

.feedback-input::placeholder,
.feedback-textarea::placeholder {
  color: var(--placeholder-color, rgba(148,163,184,0.18)) !important;
  opacity: 0.22 !important;
}

.feedback-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.feedback-select option {
  background: var(--bg-input, #1e293b);
  color: var(--text-primary, #eff6ff);
}

.feedback-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

/* --- Screenshot Area --- */
.feedback-screenshot-area {
  border: 2px dashed var(--border-color, rgba(148,163,184,0.2));
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--bg-card-soft, rgba(15,23,42,0.4));
  position: relative;
  overflow: hidden;
}

.feedback-screenshot-area:hover,
.feedback-screenshot-area.dragover {
  border-color: var(--border-focus, rgba(129,140,248,0.6));
  background: var(--bg-input, rgba(99,102,241,0.12));
  box-shadow: 0 0 0 4px rgba(129,140,248,0.2);
}

.feedback-screenshot-area.has-image {
  padding: 0;
  border-style: solid;
  border-color: var(--color-emerald, rgba(52,211,153,0.3));
}

.feedback-screenshot-icon {
  font-size: 32px;
  color: var(--text-muted, rgba(148,163,184,0.3));
  margin-bottom: 12px;
}

.feedback-screenshot-text {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
}

.feedback-screenshot-text strong {
  color: var(--color-indigo, #818cf8);
  font-weight: 700;
}

.feedback-screenshot-buttons-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.feedback-screenshot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  padding: 10px 16px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--border-color, rgba(129,140,248,0.3));
  background: var(--bg-input, rgba(99,102,241,0.1));
  color: var(--color-indigo, #818cf8);
  font-family: var(--font-family, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.feedback-screenshot-btn:hover {
  filter: brightness(1.2);
}

.feedback-screenshot-btn.feedback-file-btn {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.feedback-screenshot-preview {
  width: 100%;
  display: block;
  border-radius: var(--radius-md, 14px);
}

.feedback-screenshot-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-rose, #ef4444);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 2;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

.feedback-screenshot-remove:hover {
  transform: scale(1.1);
}

/* --- Critical Bug Checkbox --- */
.feedback-critical-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg, 14px);
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.12);
  cursor: pointer;
  transition: all 0.2s;
}

.feedback-critical-check:hover {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.2);
}

.feedback-critical-check.checked {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
}

.feedback-critical-checkbox {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm, 6px);
  border: 2px solid var(--border-color, rgba(148,163,184,0.25));
  background: var(--bg-input, rgba(15,23,42,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  cursor: pointer;
  margin-top: 1px;
}

.feedback-critical-check.checked .feedback-critical-checkbox {
  background: #ef4444;
  border-color: #ef4444;
}

.feedback-critical-checkbox i {
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.feedback-critical-check.checked .feedback-critical-checkbox i {
  opacity: 1;
}

.feedback-critical-info { flex: 1; }

.feedback-critical-info .title {
  font-size: 14px;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 4px;
}

.feedback-critical-info .desc {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
}

/* --- Submit Button --- */
.feedback-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md, 14px);
  border: none;
  background: var(--accent-gradient, linear-gradient(135deg, #818cf8, #6366f1));
  color: #fff;
  font-family: var(--font-family, 'Plus Jakarta Sans', sans-serif);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
  margin-top: 8px;
}

.feedback-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.45);
  filter: brightness(1.1);
}

.feedback-submit-btn:active { transform: translateY(0); }

.feedback-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.feedback-submit-btn.sending { pointer-events: none; }

/* --- Success State --- */
.feedback-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  flex: 1;
}

.feedback-success-state.visible {
  display: flex;
  animation: feedbackFadeIn 0.4s ease;
}

.feedback-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(52,211,153,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-emerald, #34d399);
  margin-bottom: 20px;
}

.feedback-success-state h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary, #eff6ff);
}

.feedback-success-state p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
}

.feedback-success-close-btn {
  margin-top: 24px;
  padding: 10px 24px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--border-color, rgba(148,163,184,0.15));
  background: var(--bg-input, rgba(30,41,59,0.6));
  color: var(--text-muted, #94a3b8);
  font-family: var(--font-family, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.feedback-success-close-btn:hover {
  background: var(--bg-card-soft, rgba(30,41,59,0.9));
  color: var(--text-primary, #eff6ff);
}

/* --- Error Toast --- */
.feedback-error-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999999;
  padding: 14px 20px;
  border-radius: var(--radius-md, 12px);
  background: var(--color-rose, rgba(239,68,68,0.95));
  color: #fff;
  font-family: var(--font-family, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(239,68,68,0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.feedback-error-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

/* --- Overlay Backdrop --- */
#feedbackOverlay {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop, rgba(0,0,0,0.45));
  z-index: 999990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#feedbackOverlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@keyframes feedbackFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Settings Page Styles --- */
.feedback-settings-emails-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-settings-email-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm, 10px);
  background: var(--bg-input, rgba(15,23,42,0.5));
  border: 1px solid var(--border-color, rgba(148,163,184,0.1));
}

.feedback-settings-email-item .email {
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary, #dbe4f0);
  font-weight: 500;
}

.feedback-settings-email-item .remove-email-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(239,68,68,0.15);
  background: rgba(239,68,68,0.05);
  color: var(--color-rose, #f87171);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}

.feedback-settings-email-item .remove-email-btn:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
}

.feedback-settings-add-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.feedback-settings-add-row input { flex: 1; }

/* Responsive - Mobile & Tablets */
@media (max-width: 768px) {
  #feedbackPanel {
    width: calc(100vw - 44px) !important;
    max-width: calc(100vw - 44px) !important;
    height: 100% !important;
    height: 100dvh !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    border-radius: 18px 0 0 18px !important;
    border-left: 1px solid var(--border-color, rgba(148, 163, 184, 0.25)) !important;
    border-top: none !important;
    border-bottom: none !important;
    border-right: none !important;
    box-shadow: -12px 0 35px rgba(0, 0, 0, 0.65) !important;
    overflow-x: hidden !important;
  }
  #feedbackEarTab {
    top: 18% !important;
    font-size: 10px !important;
    padding: 12px 6px !important;
    border-radius: 8px 0 0 8px !important;
  }

  /* Apenas no modo mobile: remove o arredondamento das bordas nos temas block */
  html[data-theme='block-steel'] #feedbackEarTab,
  html[data-theme='block-blue'] #feedbackEarTab,
  html[data-theme='block-light'] #feedbackEarTab,
  html[data-theme='dark-block'] #feedbackEarTab,
  html[data-theme*='block'] #feedbackEarTab,
  body[class*='theme-block'] #feedbackEarTab,
  body.theme-dark-block #feedbackEarTab {
    border-radius: 0 !important;
  }

  html[data-theme='block-steel'] #feedbackPanel,
  html[data-theme='block-blue'] #feedbackPanel,
  html[data-theme='block-light'] #feedbackPanel,
  html[data-theme='dark-block'] #feedbackPanel,
  html[data-theme*='block'] #feedbackPanel,
  body[class*='theme-block'] #feedbackPanel,
  body.theme-dark-block #feedbackPanel {
    border-radius: 0 !important;
  }

  .feedback-panel-header {
    padding: 14px 16px;
  }
  .feedback-panel-close {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .feedback-panel-body {
    padding: 16px;
    gap: 14px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .feedback-input,
  .feedback-select,
  .feedback-textarea {
    font-size: 16px !important; /* Evita auto-zoom indesejado no iOS Safari */
  }
  .feedback-screenshot-buttons-wrap {
    flex-direction: column;
    width: 100%;
  }
  .feedback-screenshot-buttons-wrap .feedback-screenshot-btn {
    width: 100%;
  }
  .feedback-submit-btn {
    padding: 14px;
    font-size: 15px;
  }
}

/* ==========================================================================
   PADRONIZAÇÃO COMPLETA DA ABA E PAINEL DE FEEDBACK PARA TODOS OS TEMAS
   ========================================================================== */

/* ── 1. TEMA BLOCK STEEL (html[data-theme='block-steel']) ── */
html[data-theme='block-steel'] #feedbackEarTab,
body.theme-block-steel #feedbackEarTab {
  background: linear-gradient(180deg, #283341 0%, #1a222a 100%) !important;
  color: #f1f5f9 !important;
  border-color: #3b4b61 !important;
  box-shadow: -3px 4px 16px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme='block-steel'] #feedbackPanel,
body.theme-block-steel #feedbackPanel {
  background: #141b24 !important;
  border-left-color: #3b4b61 !important;
}
html[data-theme='block-steel'] .feedback-panel-header,
body.theme-block-steel .feedback-panel-header {
  background: #1c2532 !important;
  border-bottom-color: #2e3a4b !important;
}
html[data-theme='block-steel'] .feedback-input,
html[data-theme='block-steel'] .feedback-select,
html[data-theme='block-steel'] .feedback-textarea,
body.theme-block-steel .feedback-input,
body.theme-block-steel .feedback-textarea {
  background: #0f151e !important;
  border-color: #2e3a4b !important;
  color: #f1f5f9 !important;
}
html[data-theme='block-steel'] .feedback-screenshot-area,
body.theme-block-steel .feedback-screenshot-area {
  background: #101620 !important;
  border-color: #2e3a4b !important;
}

/* ── 2. TEMA BLOCK BLUE (html[data-theme='block-blue']) ── */
html[data-theme='block-blue'] #feedbackEarTab,
body.theme-block-blue #feedbackEarTab {
  background: linear-gradient(180deg, #122b50 0%, #0a182d 100%) !important;
  color: #93c5fd !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
  box-shadow: -3px 4px 16px rgba(5, 18, 38, 0.6) !important;
}
html[data-theme='block-blue'] #feedbackPanel,
body.theme-block-blue #feedbackPanel {
  background: #071223 !important;
  border-left-color: rgba(59, 130, 246, 0.35) !important;
}
html[data-theme='block-blue'] .feedback-panel-header,
body.theme-block-blue .feedback-panel-header {
  background: #0d203c !important;
  border-bottom-color: rgba(59, 130, 246, 0.25) !important;
}
html[data-theme='block-blue'] .feedback-panel-header h3,
body.theme-block-blue .feedback-panel-header h3 {
  color: #bfdbfe !important;
}
html[data-theme='block-blue'] .feedback-input,
html[data-theme='block-blue'] .feedback-select,
html[data-theme='block-blue'] .feedback-textarea,
body.theme-block-blue .feedback-input,
body.theme-block-blue .feedback-textarea {
  background: #050e1c !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  color: #e0f2fe !important;
}
html[data-theme='block-blue'] .feedback-screenshot-area,
body.theme-block-blue .feedback-screenshot-area {
  background: #061122 !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
}

/* ── 3. TEMA BLOCK LIGHT (html[data-theme='block-light']) ── */
html[data-theme='block-light'] #feedbackEarTab,
body.theme-block-light #feedbackEarTab {
  background: linear-gradient(180deg, #ffffff 0%, #e8eef5 100%) !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  box-shadow: -3px 4px 12px rgba(0, 0, 0, 0.12) !important;
}
html[data-theme='block-light'] #feedbackPanel,
body.theme-block-light #feedbackPanel {
  background: #f1f5f9 !important;
  border-left-color: #cbd5e1 !important;
}
html[data-theme='block-light'] .feedback-panel-header,
body.theme-block-light .feedback-panel-header {
  background: #ffffff !important;
  border-bottom-color: #e2e8f0 !important;
}
html[data-theme='block-light'] .feedback-panel-header h3,
body.theme-block-light .feedback-panel-header h3 {
  color: #0f172a !important;
}
html[data-theme='block-light'] .feedback-field-label,
body.theme-block-light .feedback-field-label {
  color: #475569 !important;
}
html[data-theme='block-light'] .feedback-input,
html[data-theme='block-light'] .feedback-select,
html[data-theme='block-light'] .feedback-textarea,
body.theme-block-light .feedback-input,
body.theme-block-light .feedback-textarea {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme='block-light'] .feedback-input::placeholder,
html[data-theme='block-light'] .feedback-textarea::placeholder,
body.theme-block-light .feedback-input::placeholder,
body.theme-block-light .feedback-textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 0.7 !important;
}
html[data-theme='block-light'] .feedback-screenshot-area,
body.theme-block-light .feedback-screenshot-area {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
html[data-theme='block-light'] .feedback-critical-check,
body.theme-block-light .feedback-critical-check {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
html[data-theme='block-light'] .feedback-critical-info .title,
body.theme-block-light .feedback-critical-info .title {
  color: #0f172a !important;
}
html[data-theme='block-light'] .feedback-critical-info .desc,
body.theme-block-light .feedback-critical-info .desc {
  color: #64748b !important;
}
html[data-theme='block-light'] .feedback-panel-close,
body.theme-block-light .feedback-panel-close {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

/* ── 4. TEMA DARK BLOCK (html[data-theme='dark-block']) ── */
html[data-theme='dark-block'] #feedbackEarTab,
body.theme-dark-block #feedbackEarTab {
  background: linear-gradient(180deg, #18181b 0%, #09090b 100%) !important;
  color: #ffffff !important;
  border-color: #27272a !important;
  box-shadow: -3px 4px 18px rgba(0, 0, 0, 0.8) !important;
}
html[data-theme='dark-block'] #feedbackPanel,
body.theme-dark-block #feedbackPanel {
  background: #050507 !important;
  border-left-color: #27272a !important;
}
html[data-theme='dark-block'] .feedback-panel-header,
body.theme-dark-block .feedback-panel-header {
  background: #0c0c0e !important;
  border-bottom-color: #1f1f23 !important;
}
html[data-theme='dark-block'] .feedback-input,
html[data-theme='dark-block'] .feedback-select,
html[data-theme='dark-block'] .feedback-textarea,
body.theme-dark-block .feedback-input,
body.theme-dark-block .feedback-textarea {
  background: #09090b !important;
  border-color: #27272a !important;
  color: #fafafa !important;
}
html[data-theme='dark-block'] .feedback-screenshot-area,
body.theme-dark-block .feedback-screenshot-area {
  background: #09090b !important;
  border-color: #27272a !important;
}

/* ── 5. TEMA LIGHT CLÁSSICO (html[data-theme='light']) ── */
html[data-theme='light'] #feedbackEarTab,
body.theme-light #feedbackEarTab {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: #1e293b !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: -3px 4px 14px rgba(0, 0, 0, 0.08) !important;
}
html[data-theme='light'] #feedbackPanel,
body.theme-light #feedbackPanel {
  background: #ffffff !important;
  border-left-color: rgba(0, 0, 0, 0.1) !important;
}
html[data-theme='light'] .feedback-panel-header,
body.theme-light .feedback-panel-header {
  background: #f8fafc !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}
html[data-theme='light'] .feedback-panel-header h3,
body.theme-light .feedback-panel-header h3 {
  color: #1e293b !important;
}
html[data-theme='light'] .feedback-field-label,
body.theme-light .feedback-field-label {
  color: #64748b !important;
}
html[data-theme='light'] .feedback-input,
html[data-theme='light'] .feedback-select,
html[data-theme='light'] .feedback-textarea,
body.theme-light .feedback-input,
body.theme-light .feedback-textarea {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1e293b !important;
}
html[data-theme='light'] .feedback-input::placeholder,
html[data-theme='light'] .feedback-textarea::placeholder,
body.theme-light .feedback-input::placeholder,
body.theme-light .feedback-textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 0.7 !important;
}
html[data-theme='light'] .feedback-screenshot-area,
body.theme-light .feedback-screenshot-area {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
html[data-theme='light'] .feedback-critical-check,
body.theme-light .feedback-critical-check {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
html[data-theme='light'] .feedback-critical-info .title,
body.theme-light .feedback-critical-info .title {
  color: #1e293b !important;
}
html[data-theme='light'] .feedback-critical-info .desc,
body.theme-light .feedback-critical-info .desc {
  color: #64748b !important;
}
html[data-theme='light'] .feedback-panel-close,
body.theme-light .feedback-panel-close {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #64748b !important;
}

/* ── 6. TEMA DARK CLÁSSICO (html[data-theme='dark']) ── */
html[data-theme='dark'] #feedbackEarTab,
body.theme-dark #feedbackEarTab {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: -3px 4px 16px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme='dark'] #feedbackPanel,
body.theme-dark #feedbackPanel {
  background: linear-gradient(180deg, #0c1222, #111827) !important;
  border-left-color: rgba(148, 163, 184, 0.12) !important;
}
