/* ─── Conflict Viewer Page Styles ─── */

/* KPI row 4 columns */
.row4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

/* Conflict count badge in page title */
.conflict-count-badge {
  background: rgba(220, 38, 38, 0.12);
  color: #991B1B;
  border: 1px solid rgba(220, 38, 38, 0.3);
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0); }
}

/* Conflict type badge in table */
.conflict-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

.ct-headway   { background: rgba(239,68,68,0.1);   color: #991B1B;  }
.ct-crossing  { background: rgba(239,68,68,0.1);   color: #991B1B;  }
.ct-kapasitas { background: rgba(249,115,22,0.1);  color: #9A3412;  }
.ct-overtaking { background: rgba(245,158,11,0.1); color: #92400E;  }

/* Severity badge */
.sev-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.sev-kritis  { background: rgba(239,68,68,0.12);  color: #991B1B; }
.sev-warning { background: rgba(245,158,11,0.12); color: #92400E; }

/* Table row selected */
.data-table tbody tr.selected td {
  background: rgba(37, 99, 235, 0.06);
}

/* Detail panel */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  gap: 1.5rem;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.detail-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.375rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--border);
}

.detail-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.detail-lbl {
  font-size: 0.6875rem;
  color: var(--muted);
  min-width: 90px;
  flex-shrink: 0;
}

.detail-val {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.detail-desc {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

/* Recommendation list */
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.rec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text);
  line-height: 1.4;
}

.rec-item i {
  color: var(--accent);
  margin-top: 1px;
  flex-shrink: 0;
}

/* Status badge in table */
.status-open    { background: rgba(239,68,68,0.1);   color: #991B1B;  padding: 0.15rem 0.5rem; border-radius: 100px; font-size: 0.6875rem; font-weight: 600; }
.status-pending { background: rgba(245,158,11,0.1);  color: #92400E;  padding: 0.15rem 0.5rem; border-radius: 100px; font-size: 0.6875rem; font-weight: 600; }
.status-resolved{ background: rgba(16,185,129,0.1);  color: #047857;  padding: 0.15rem 0.5rem; border-radius: 100px; font-size: 0.6875rem; font-weight: 600; }

@media (max-width: 1100px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}
