/* Reputation System Admin Styles */

/* Sub-tabs */
.rep-subtabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.rep-subtab {
  padding: 8px 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.rep-subtab:hover {
  color: var(--text-primary);
}

.rep-subtab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Panel */
.rep-panel {
  padding: 0;
}

.rep-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rep-count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.rep-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.rep-search-group {
  display: flex;
  gap: 6px;
}

.rep-search-group input {
  width: 280px;
}

/* Severity colors */
.sev-neg {
  color: #f44336;
  font-weight: 600;
}

.sev-pos {
  color: #4caf50;
  font-weight: 600;
}

/* Tier badge */
.tier-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Category badge */
.badge-cat {
  background: var(--accent);
  color: #fff;
}

/* Description cell */
.desc-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-cell {
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Reputation bar */
.rep-bar {
  position: relative;
  width: 120px;
  height: 14px;
  background: #2a2a35;
  border-radius: 7px;
  overflow: hidden;
}

.rep-bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.3s ease;
}

.rep-bar-center {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
}

/* Clickable rows */
.rep-row-clickable {
  cursor: pointer;
  transition: background 0.15s;
}

.rep-row-clickable:hover {
  background: rgba(108, 92, 231, 0.08);
}

/* Detail tabs */
.rep-detail-tabs {
  display: flex;
  gap: 4px;
  margin: 12px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.rep-dtab {
  padding: 6px 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.rep-dtab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Formula card */
.rep-formula-card {
  margin-top: 20px;
  padding: 16px;
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rep-formula-card h4 {
  margin: 0 0 8px 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.rep-formula-card pre {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  white-space: pre-wrap;
}

/* Viewer actions */
.rep-viewer-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

/* Empty row */
.empty-row {
  text-align: center;
  color: var(--text-muted);
  padding: 24px 0;
}

/* Form helpers */
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-row label {
  flex: 1;
  min-width: 120px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: auto !important;
  flex: 0 !important;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
}

.modal-wide {
  max-width: 700px;
}

/* Button variants */
.btn-toggle {
  background: var(--accent);
  color: #fff;
}

.btn-danger {
  background: #f44336;
  color: #fff;
}

.btn-sm {
  padding: 3px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: var(--bg-secondary, #2a2a35);
  color: var(--text-primary);
}

.btn-sm:hover {
  opacity: 0.85;
}

.action-cell {
  white-space: nowrap;
  display: flex;
  gap: 4px;
}

#repViewerSelect {
  min-width: 300px;
}
