/* Feedback System Styles */
.feedback-container {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.3);
  color: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.feedback-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

.feedback-btn.voted {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.6);
}

.vote-icon {
  font-size: 1rem;
}

.vote-count {
  font-size: 0.85rem;
  font-weight: 600;
}

.vote-label {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Dialog Styles */
.feedback-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.feedback-dialog h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  color: #f8fafc;
}

.feedback-dialog textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  margin-bottom: 1.5rem;
}

.feedback-dialog textarea::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.dialog-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.dialog-buttons button {
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.dialog-buttons button[type="button"] {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: #94a3b8;
}

.dialog-buttons button[type="button"]:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.5);
}

.dialog-buttons button[type="submit"] {
  background: #3b82f6;
  border: none;
  color: white;
}

.dialog-buttons button[type="submit"]:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* Light Theme */
html[data-theme="light"] .feedback-btn {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(148, 163, 184, 0.3);
  color: #0f172a;
}

html[data-theme="light"] .feedback-btn:hover {
  background: rgba(59, 130, 246, 0.15);
}

html[data-theme="light"] .feedback-dialog {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.3);
}

html[data-theme="light"] .feedback-dialog h3 {
  color: #0f172a;
}

html[data-theme="light"] .feedback-dialog textarea {
  background: rgba(248, 250, 252, 0.8);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.3);
}

html[data-theme="light"] .dialog-buttons button[type="button"] {
  color: #475569;
}
