/* Naughty List Admin Styles - Terminal Theme */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: #111;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-family: 'Courier New', monospace;
  transition: border-color 0.2s;
}

.stat-card:hover {
  border-color: #555;
}

.stat-label {
  font-size: 0.8rem;
  color: #ccc;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #ff6b6b;
  font-family: 'Courier New', monospace;
}

.violation-types-panel {
  margin-top: 20px;
}

.subsection-header {
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.violation-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.violation-type-card {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #0f0;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Courier New', monospace;
}

.violation-type-name {
  color: #0f0;
  font-size: 0.9rem;
  font-weight: bold;
}

.violation-count {
  color: white;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Count badges for violation occurrences */
.count-badge {
  background: #ff4444;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  min-width: 20px;
  text-align: center;
}

.count-badge-large {
  background: #ff4444;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  min-width: 24px;
  text-align: center;
}

.filter-form {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #ccc;
  font-family: 'Courier New', monospace;
}

.empty-state-message {
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  background: rgba(0, 255, 0, 0.05);
  border: 1px dashed #0f0;
  padding: 20px;
  border-radius: 4px;
  display: inline-block;
  max-width: 500px;
  line-height: 1.5;
}

.violations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.violation-card .product-title {
  color: #ff6b6b;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.violation-time {
  color: #ccc;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

.violation-details {
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

.violation-details > div {
  margin-bottom: 8px;
}

.violation-details strong {
  color: #0f0;
}

.worker-link {
  color: #00aaff;
  text-decoration: none;
}

.worker-link:hover {
  text-decoration: underline;
}

.violation-card .product-action {
  padding: 16px;
  border-top: 1px solid #333;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.violation-view-btn {
  flex: 1;
  min-width: 120px;
}

/* Violation detail page styles */
.violation-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.detail-card {
  background: #111;
  border: 2px solid #333;
  border-radius: 8px;
  overflow: hidden;
}

.detail-card.full-width {
  grid-column: 1 / -1;
}

.detail-header {
  background: rgba(0, 255, 0, 0.1);
  border-bottom: 1px solid #333;
  padding: 12px 16px;
}

.detail-header h3 {
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-content {
  padding: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.detail-label {
  color: #0f0;
  font-weight: bold;
  min-width: 120px;
  flex-shrink: 0;
}

.detail-value {
  color: #ccc;
  text-align: right;
  word-break: break-word;
}

.detail-value code {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #0f0;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 0.8rem;
}

.detail-value.user-agent {
  max-width: 250px;
  word-break: break-all;
}

/* Status styling */
.status-good {
  color: #0f0 !important;
}

.status-bad {
  color: #ff6b6b !important;
}

.score-low {
  color: #0f0;
}

.score-medium {
  color: #ffc107;
}

.score-high {
  color: #ff6b6b;
  font-weight: bold;
}

/* Recent violations list */
.recent-violations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-violation-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
  border-radius: 4px;
  padding: 12px;
  position: relative;
}

.recent-violation-item.current-violation {
  border-color: #0f0;
  background: rgba(0, 255, 0, 0.05);
}

.violation-mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: bold;
}

.violation-time {
  color: #ccc;
  font-size: 0.8rem;
}

.violation-mini-details {
  color: #ccc;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.violation-mini-actions {
  text-align: right;
}

.current-marker {
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

.violation-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Grouped violation card styles */
.worker-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}


/* Ban status styling */
.ban-status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.ban-status.tagged {
  background-color: #dc3545;
  color: white;
  border: 1px solid #c82333;
}

.ban-status.banned {
  background-color: #990000;
  color: white;
  border: 1px solid #770000;
}

.ban-status.untagged {
  background-color: #28a745;
  color: white;
  border: 1px solid #1e7e34;
}

.ban-toggle-btn {
  margin: 0 4px;
}

.violation-types-summary {
  margin-bottom: 15px;
}

.violation-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.violation-type-tag {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid #ff6b6b;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #ff6b6b;
  font-family: 'Courier New', monospace;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.recent-violations {
  margin-bottom: 15px;
}

.violation-entry {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  padding: 8px;
  margin: 4px 0;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 120px 1fr 80px;
  gap: 10px;
  align-items: center;
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
}

.violation-type {
  color: #ff6b6b;
  font-weight: bold;
  text-transform: uppercase;
}

.violation-details-text {
  color: #ccc;
}

.violation-time-small {
  color: #999;
  text-align: right;
  font-size: 0.7rem;
}

.more-violations {
  color: #666;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
  font-size: 0.8rem;
}

/* Tagged worker specific styles */
.tagged-only {
  color: #ff6b6b;
  font-weight: bold;
  font-style: italic;
}

.no-violations {
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 4px;
  color: #ffa500;
  text-align: center;
  font-family: 'Courier New', monospace;
}

.no-violations small {
  color: #ccc;
  font-size: 0.8rem;
}

/* Ban section in moderation panel */
.ban-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid #333;
}

.ban-section h4 {
  color: #ff6b6b;
  font-family: 'Courier New', monospace;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Admin ban section styling */
.admin-ban-section {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #1a1a1a;
}

.ban-status-display {
  padding: 8px;
  background: #2d1b1b;
  border: 1px solid #ff6b6b;
  border-radius: 4px;
  text-align: center;
}

.current-ban-status {
  color: #ff6b6b;
  font-weight: bold;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-ban-btn {
  background: #dc3545 !important;
  color: white !important;
  border: 1px solid #c82333 !important;
  border-radius: 4px !important;
  margin: 2px !important;
  font-size: 11px !important;
  padding: 3px 6px !important;
  min-width: 50px;
}

.admin-ban-btn:hover {
  background: #c82333 !important;
  border-color: #bd2130 !important;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .violations-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .violation-card .product-action {
    flex-direction: column;
  }
  
  .violation-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .detail-value {
    text-align: left;
    margin-top: 4px;
  }
  
  .violation-actions {
    flex-direction: column;
  }
  
  .worker-summary {
    flex-direction: column;
    gap: 10px;
  }
  
  .violation-type-list {
    flex-direction: column;
  }
  
  .violation-entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  .violation-time-small {
    text-align: left;
  }
}
