body { font-family: system-ui, sans-serif; }
.form-signin { max-width: 380px; padding-top: 4rem; }

th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { background-color: rgba(0, 0, 0, 0.04); }

.scan-steps .scan-step {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
}
.scan-steps .scan-step.active { color: var(--bs-body-color); font-weight: 500; }
.scan-steps .scan-step.done { color: var(--bs-success); }
.scan-steps .scan-step.failed { color: var(--bs-danger); }
.scan-steps .step-icon { margin-right: 0.5rem; }

@keyframes kaynaklar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin { display: inline-block; animation: kaynaklar-spin 0.9s linear infinite; }

.nav-project-option.active {
  background-color: var(--bs-dropdown-link-active-bg);
}
.navbar .dropdown-item .form-check-input {
  pointer-events: none;
}

.detail-test-cover img {
  max-height: 220px;
  object-fit: cover;
}
.detail-test-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.detail-test-gallery img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0.25rem;
  cursor: pointer;
  border: 2px solid transparent;
}

/* Pipeline adim izleme (makale / URL satiri) */
.pipeline-track { min-width: 0; }
.pipeline-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 420px;
}
.pipeline-track-compact .pipeline-steps { max-width: 280px; }
.pipeline-dot {
  font-size: 0.65rem;
  line-height: 1.2;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pipeline-done { background: var(--bs-success-bg-subtle); color: var(--bs-success); border-color: rgba(var(--bs-success-rgb), 0.35); }
.pipeline-active { background: var(--bs-primary-bg-subtle); color: var(--bs-primary); border-color: rgba(var(--bs-primary-rgb), 0.45); font-weight: 600; }
.pipeline-pending { background: var(--bs-light); color: var(--bs-secondary-color); border-color: var(--bs-border-color); }
.pipeline-skip { background: transparent; color: var(--bs-secondary-color); opacity: 0.45; text-decoration: line-through; }
.pipeline-fail { background: var(--bs-danger-bg-subtle); color: var(--bs-danger); border-color: rgba(var(--bs-danger-rgb), 0.4); }
.pipeline-na { background: var(--bs-light); color: var(--bs-secondary-color); opacity: 0.7; }
.pipeline-meta { margin-top: 2px; line-height: 1.2; }

/* Canli pipeline sayfasi */
.pipeline-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bs-success);
}
.pipeline-live-pulse { animation: pipeline-pulse 0.6s ease; }
@keyframes pipeline-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.pipeline-flow-group {
  display: inline-flex;
  flex-direction: column;
  vertical-align: top;
  min-width: 120px;
  margin-bottom: 8px;
}
.pipeline-flow-group-head {
  font-size: 0.8rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pipeline-flow-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pipeline-flow-stage {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-light);
  text-decoration: none;
  color: inherit;
  font-size: 0.72rem;
  min-width: 72px;
}
.pipeline-flow-stage:hover { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); }
.pipeline-flow-stage-active {
  border-color: rgba(var(--bs-primary-rgb), 0.5);
  background: var(--bs-primary-bg-subtle);
  box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.15);
}
.pipeline-flow-stage-count { font-weight: 700; font-size: 0.95rem; }
.pipeline-flow-arrow {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: var(--bs-secondary-color);
  vertical-align: middle;
}
.pipeline-lane-chip {
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 3px;
  margin-right: 2px;
  border: 1px solid var(--bs-border-color);
}
.pipeline-lane-ok { background: var(--bs-success-bg-subtle); color: var(--bs-success); }
.pipeline-lane-warn { background: var(--bs-warning-bg-subtle); color: var(--bs-warning); }
.pipeline-lane-pending { background: var(--bs-light); color: var(--bs-secondary-color); }
.pipeline-feed .list-group-item { border-left: 3px solid transparent; }
.pipeline-feed .list-group-item:hover { border-left-color: var(--bs-primary); }

/* Canli pipeline — animasyonlar */
.pipeline-page { --pipe-glow: rgba(var(--bs-primary-rgb), 0.35); }
.pipeline-infra-card { transition: box-shadow 0.3s ease; }
.pipeline-infra-card:hover { box-shadow: 0 0 0 2px var(--pipe-glow); }
.pipeline-bar-track {
  height: 6px;
  border-radius: 4px;
  background: var(--bs-light);
  overflow: hidden;
}
.pipeline-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.pipeline-bar-ok { background: linear-gradient(90deg, var(--bs-success), #5dd879); }
.pipeline-bar-warn { background: linear-gradient(90deg, var(--bs-warning), #ffc107); }
.pipeline-bar-danger { background: linear-gradient(90deg, var(--bs-danger), #ff6b6b); }
.pipeline-ai-pulse { animation: pipeline-ai-glow 2s ease-in-out infinite; }
@keyframes pipeline-ai-glow {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 12px 2px var(--pipe-glow); }
}
.pipeline-flow-stage-hot { position: relative; overflow: hidden; }
.pipeline-flow-live {
  border-color: rgba(var(--bs-primary-rgb), 0.6) !important;
  background: linear-gradient(135deg, var(--bs-primary-bg-subtle), var(--bs-light)) !important;
}
.pipeline-flow-pulse {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--bs-primary-rgb), 0.15), transparent);
  animation: pipeline-shimmer 2s linear infinite;
  pointer-events: none;
}
@keyframes pipeline-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.pipeline-flow-stage-empty { opacity: 0.45; }
.pipeline-ticker-card { background: linear-gradient(90deg, var(--bs-body-bg), var(--bs-primary-bg-subtle), var(--bs-body-bg)); background-size: 200% 100%; animation: pipeline-ticker-bg 8s ease infinite; }
@keyframes pipeline-ticker-bg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.pipeline-ticker-track { white-space: nowrap; }
.pipeline-ticker-animate { animation: pipeline-marquee 25s linear infinite; display: inline-block; padding-left: 100%; }
@keyframes pipeline-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.pipeline-ticker-item { margin-right: 1.5rem; }
.pipeline-ticker-sep { opacity: 0.4; }
.pipeline-transition-new { animation: pipeline-slide-in 0.5s ease; background: var(--bs-primary-bg-subtle); }
@keyframes pipeline-slide-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.pipeline-row-active { background: rgba(var(--bs-primary-rgb), 0.06); }
.pipeline-row-stuck { background: rgba(var(--bs-danger-rgb), 0.05); }
.pipeline-stuck-pulse { animation: pipeline-stuck-blink 3s ease infinite; }
@keyframes pipeline-stuck-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
.pipeline-stuck-item { border-left: 3px solid var(--bs-danger) !important; }
.pipeline-badge-pulse { animation: pipeline-ai-glow 1.5s ease infinite; }
.pipeline-table-scroll { max-height: 420px; overflow-y: auto; }
.spin-slow { animation: spin 3s linear infinite; display: inline-block; }
.spin-once { animation: spin 0.6s ease; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.pipeline-ai-queue-item { border-left: 3px solid var(--bs-warning); }

.polish-compare-box {
  max-height: 360px;
  overflow: auto;
  font-size: 0.88rem;
  line-height: 1.45;
}
.polish-compare-box p,
.polish-compare-box li {
  margin-bottom: 0.55rem;
}

.polish-diff-body {
  max-height: 420px;
  overflow: auto;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.polish-diff-line {
  font-size: 0.95rem;
  line-height: 1.45;
}
del.polish-diff-del {
  background: rgba(var(--bs-danger-rgb), 0.15);
  color: var(--bs-danger);
  text-decoration: line-through;
  padding: 0 0.12em;
  border-radius: 0.15em;
}
ins.polish-diff-ins {
  background: rgba(var(--bs-success-rgb), 0.18);
  color: var(--bs-success);
  text-decoration: none;
  font-weight: 600;
  padding: 0 0.12em;
  border-radius: 0.15em;
}
.polish-side-by-side summary:hover {
  color: var(--bs-primary);
}

/* Onay merkezi */
#bulkToolbar .btn-group .btn { white-space: nowrap; }
#hubTable thead th { font-size: 0.8rem; }
#queueTabs .nav-link { font-size: 0.9rem; }

.detail-test-gallery img.active,
.detail-test-gallery img:hover {
  border-color: var(--bs-primary);
}
.detail-test-content {
  max-height: 240px;
  overflow: auto;
  color: #212529;
}
.detail-test-content p,
.detail-test-content h2,
.detail-test-content h3,
.detail-test-content li {
  margin-bottom: 0.5rem;
}
.detail-test-content img {
  max-width: 100%;
  height: auto;
}
