/* Validator Queue Component Styles */

.validator-queue {
  padding: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.validator-queue h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.loading-indicator,
.empty-queue,
.limit-reached {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-card, rgba(255, 255, 255, 0.05));
  border-radius: 12px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.validation-stats-summary {
  margin-top: 2rem;
  padding: 2rem;
  background-color: var(--bg-card, rgba(255, 255, 255, 0.05));
  border-radius: 12px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.validation-stats-summary h5 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-size: 1.2rem;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--bg-secondary, rgba(0, 0, 0, 0.1));
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.stat-icon {
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.approve-icon {
  background-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.reject-icon {
  background-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.coins-icon {
  background-color: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.coins-icon .cell-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.pending-icon {
  background-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.stat-content {
  flex: 1;
}

.stat-content .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-content .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.validation-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--bg-secondary, rgba(0, 0, 0, 0.1));
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.progress-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.progress-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.validation-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: var(--bg-card, rgba(255, 255, 255, 0.05));
  border-radius: 8px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  min-width: 100px;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

.stat-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.validation-item {
  background-color: var(--bg-card, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.item-header h4 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.item-content {
  margin-bottom: 2rem;
}

.mcq-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.option {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  position: relative;
}

.option-letter {
  font-weight: 600;
  margin-right: 0.5rem;
  min-width: 1.5rem;
}

.option-text {
  flex: 1;
}

.correct-option {
  background-color: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(22, 163, 74, 0.4);
}

.correct-marker {
  position: absolute;
  right: 1rem;
  color: var(--success-color, #16a34a);
  font-weight: bold;
}

.open-answer,
.explanation {
  margin-bottom: 1.5rem;
}

.open-answer h5,
.explanation h5,
.tags h5,
.flags h5 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.correct-text,
.explanation-text {
  padding: 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  white-space: pre-wrap;
}

.tags {
  margin-bottom: 1.5rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: rgba(0, 0, 0, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.85rem;
}

.flags {
  margin-bottom: 1.5rem;
}

.flag {
  padding: 0.75rem 1rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.flag-type {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--error-color, #dc2626);
}

.flag-type.offensive {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--error-color, #dc2626);
}

.flag-type.factual_error {
  background-color: rgba(245, 158, 11, 0.2);
  color: var(--warning-color, #d97706);
}

.flag-type.duplicate {
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--info-color, #2563eb);
}

.flag-severity {
  font-size: 0.85rem;
  opacity: 0.8;
}

.flag-comment {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.validation-form {
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  padding-top: 1.5rem;
}

.vote-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vote-buttons button {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.approve-btn {
  background-color: rgba(22, 163, 74, 0.1);
  color: var(--success-color, #16a34a);
}

.approve-btn.active {
  background-color: rgba(22, 163, 74, 0.2);
  border-color: var(--success-color, #16a34a);
}

.reject-btn {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-color, #dc2626);
}

.reject-btn.active {
  background-color: rgba(239, 68, 68, 0.2);
  border-color: var(--error-color, #dc2626);
}

.rejection-reason-field {
  margin-bottom: 1.5rem;
}

.rejection-reason-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.rejection-reason-field select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
  border-radius: 8px;
  background-color: var(--bg-input, rgba(0, 0, 0, 0.1));
  color: var(--text-primary, #e5e7eb);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.rejection-reason-field select:focus {
  outline: none;
  border-color: var(--primary-color, #3b82f6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.reason-description {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background-color: var(--bg-card, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
  border-radius: 6px;
  color: var(--text-secondary, #9ca3af);
  font-size: 0.9rem;
  line-height: 1.4;
}

.validation-actions {
  display: flex;
  gap: 1rem;
}

.validation-actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn {
  flex: 1;
  background-color: var(--primary-color, #3b82f6);
  color: white;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.skip-btn {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-primary, #e5e7eb);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
  border-radius: 8px;
  background-color: var(--bg-card, rgba(255, 255, 255, 0.05));
  color: var(--text-primary, #e5e7eb);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Theme-specific styles */
[data-theme="light"] .validation-item,
[data-theme="light"] .loading-indicator,
[data-theme="light"] .empty-queue,
[data-theme="light"] .limit-reached,
[data-theme="light"] .validation-stats {
  background-color: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .option,
[data-theme="light"] .correct-text,
[data-theme="light"] .explanation-text {
  background-color: #f1f5f9;
}

[data-theme="light"] .tag {
  background-color: #e2e8f0;
}

[data-theme="light"] .rationale-field textarea {
  background-color: #f8fafc;
  color: #1e293b;
  border-color: #e2e8f0;
}

[data-theme="light"] .pagination button {
  background-color: #f8fafc;
  color: #1e293b;
}

/* Correct Answer Styling */
.correct-answer-info {
  background: #d1fae5;
  border: 2px solid #10b981;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
  font-weight: bold;
  color: #065f46;
}

.correct-option {
  background: #d1fae5 !important;
  border-color: #10b981 !important;
}

.correct-marker {
  background: #10b981;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 0.5rem;
}

.mcq-options h5 {
  color: #374151;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.option {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.option:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.option-letter {
  background: #6b7280;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

.option-text {
  flex: 1;
  font-weight: 500;
}

/* Question Content Styling */
.item-content {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.item-content h5 {
  color: #374151;
  margin: 1rem 0 0.5rem 0;
  font-size: 1rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.25rem;
}

/* Tags Styling */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  background: #3b82f6;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Admin Actions Styling */
.admin-actions {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.vote-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.approve-btn, .reject-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.approve-btn {
  background: #22c55e;
  color: white;
}

.approve-btn:hover {
  background: #16a34a;
}

.reject-btn {
  background: #ef4444;
  color: white;
}

.reject-btn:hover {
  background: #dc2626;
}

.approve-btn.active, .reject-btn.active {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Rejection Reason Field */
.rejection-reason-field {
  margin: 1rem 0;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.rejection-reason-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #374151;
}

.rejection-reason-field select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
}

.reason-description {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Validation Actions */
.validation-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.submit-btn, .skip-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn {
  background: #3b82f6;
  color: white;
  flex: 2;
}

.submit-btn:hover:not(:disabled) {
  background: #2563eb;
}

.submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.skip-btn {
  background: #6b7280;
  color: white;
  flex: 1;
}

.skip-btn:hover {
  background: #4b5563;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .validation-item {
    padding: 1rem;
  }
  
  .vote-buttons,
  .validation-actions {
    flex-direction: column;
  }
}
