/* ============================================================
   cards.css — individual service cards within panels
   ============================================================ */
.service-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}
.service-card:last-child { border-bottom: none; }

.service-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* left accent line on hover */
.service-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--panel-accent, var(--cyan));
  opacity: 0;
  transition: opacity 0.15s;
}
.service-card:hover::after { opacity: 1; }

/* ── Icon ── */
.card-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0.9);
}

/* ── Name + subtitle ── */
.card-info {
  flex: 1;
  min-width: 0;
}

.card-name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.card-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Status badge ── */
.card-status {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

.card-status.active {
  color: var(--status-active);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.card-status.warn {
  color: var(--status-warn);
  background: rgba(255, 212, 74, 0.1);
  border: 1px solid rgba(255, 212, 74, 0.25);
}

.card-status.offline {
  color: var(--status-offline);
  background: rgba(255, 69, 96, 0.1);
  border: 1px solid rgba(255, 69, 96, 0.25);
}

/* ── External link arrow ── */
.card-link-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 12px;
  width: 18px;
  text-align: center;
  visibility: hidden;
  transition: color 0.15s;
}
.service-card:hover .card-link-icon {
  visibility: visible;
  color: var(--panel-accent, var(--cyan));
}
.card-link-hidden {
  visibility: hidden !important;
  pointer-events: none;
}
