/* Traefik Routing panel — surfaced only on the Traefik app's detail page. */

.routing-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem 1.25rem 2rem;
}

.routing-title-block h3 { margin: 0 0 0.25rem; }
.routing-title-block p {
  margin: 0;
  color: var(--text-secondary, #a0a0a0);
  font-size: 13px;
}
.routing-title-block code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

.routing-section { border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08)); padding-top: 0.75rem; }
.routing-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.routing-section-head h4 { margin: 0; font-size: 14px; }
.routing-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.5em; padding: 0 0.45em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #ccc);
  font-size: 11px; font-weight: 600;
  margin-left: 0.4rem;
}
.routing-section-hint { color: var(--text-secondary, #a0a0a0); font-size: 12px; }

.routing-show-advanced {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 12px; color: var(--text-secondary, #a0a0a0);
  cursor: pointer; user-select: none;
}
.routing-show-advanced input { margin: 0; }

.routing-table { display: flex; flex-direction: column; gap: 0.5rem; }
.routing-advanced-table { display: none; }
.routing-advanced-table.routing-advanced-open { display: flex; }

.routing-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface-color, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
  border-radius: 6px;
}
.routing-icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.routing-meta { flex: 1; min-width: 0; }
.routing-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 13px; color: var(--text-primary, #fff);
  flex-wrap: wrap;
}
.routing-app { font-weight: 600; }
.routing-port-name { color: var(--text-secondary, #ccc); }
.routing-port-num { color: var(--text-secondary, #a0a0a0); font-family: monospace; font-size: 12px; }
.routing-url {
  font-family: monospace; font-size: 11px;
  color: var(--text-secondary, #888);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.routing-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.routing-badge-webui { background: rgba(108, 99, 255, 0.18); color: #b5b0ff; }
.routing-badge-public { background: rgba(255, 159, 64, 0.18); color: #ffce8a; }

.routing-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}
.routing-toggle input { opacity: 0; width: 0; height: 0; }
.routing-toggle-track {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: background 120ms ease;
}
.routing-toggle-track::before {
  content: '';
  position: absolute; left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 120ms ease;
}
.routing-toggle input:checked + .routing-toggle-track {
  background: var(--accent-color, #6c63ff);
}
.routing-toggle input:checked + .routing-toggle-track::before {
  transform: translateX(16px);
}

.routing-apply-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface-color, rgba(20, 20, 28, 0.95));
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  margin-top: 0.5rem;
}
.routing-apply-hint { color: var(--text-secondary, #a0a0a0); font-size: 13px; }

.routing-empty {
  text-align: center; color: var(--text-secondary, #888);
  padding: 1rem; font-size: 13px; font-style: italic;
}
