.monitor-room-card {
  border: 1px dashed #d07fae;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 1em;

  background: #ffffff;
}
.monitor-room-card h3 {
  margin: 0 0 0.5em;
}
.monitor-room-card .participants ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.monitor-aggregate {
  margin-bottom: 2em;
}
.monitor-aggregate ol {
  padding-left: 1.2em;
}

.monitor-batch {
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px dashed #ccc;
  border-radius: 12px;
  background: #fff7fb;
}

.batch-title {
  margin-top: 0;
  font-size: 1.5em;
  padding-bottom: 0.5em;
}

.batch-rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.monitor-room-card {
  flex: 1 1 200px;
  /* your existing card styling… */
}

/* 1. Style all the <p> text (labels + values) */
.monitor-room-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 6px 0;
  color: #333; /* a neutral dark-grey for labels/text */
}

/* 2. Style the labels (the <strong> elements) */
.monitor-room-card p strong {
  font-weight: 600;
  color: #333; /* darker, more prominent */
}

/* 3. Style the dynamic values (the spans) */
.monitor-room-card span.time-left,
.monitor-room-card span.question-num,
.monitor-room-card span.question-total,
.monitor-room-card span.joined-list,
.monitor-room-card span.scores-list {
  font-weight: 500;
  color: #555; /* your accent/magenta color */
  font-size: 1rem; /* slightly larger */
}

/* Container */
#aggregate-section {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}

.aggregate-header {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Header */
#aggregate-section h2 {
  margin-top: 0;
  color: #a44a76;
  border-bottom: 2px solid #a44a76;
  padding-bottom: 6px;
}

/* Table Base */
#aggregate-list table {
  width: 100%;
  border-collapse: collapse; /* avoid double borders */
  margin-top: 12px;
}

#zero-link {
  padding-left: 0px !important;
  margin-top: 0px;
}

#zero-players ul {
  padding-left: 12px;
}

/* center the second column (Count) in any table using .aggregate-table */
.aggregate-table th:nth-child(2),
.aggregate-table td:nth-child(2) {
  text-align: center !important;
}

.aggregate-table {
  font-size: 0.95rem;
  line-height: 1.2;
}
/* Header Row */
#aggregate-list th {
  background-color: #d07fae;
  color: white;
  text-align: left;
  padding: 8px 12px;
}

.aggregate-header div {
  margin-top: 10px;
  margin-bottom: 10px;
  color: #444;
}

/* Body Cells */
#aggregate-list td {
  padding: 6px 12px;
}

#no-phrases {
  margin-bottom: 10px;
  margin-top: 10px;
}

#unused {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Zebra Striping */
#aggregate-list tbody tr:nth-child(even) {
  background: #f7f7f7;
}

/* Right-align counts */
#aggregate-list td:nth-child(2) {
  text-align: center;
  width: 20%;
}
/* use your brand color here */
:root {
  --brand-color: #a44a76;
}

/* container */
#player-tooltip {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 1000;
  max-width: 280px;
  min-width: 180px;
}
#player-tooltip.hidden {
  display: none;
}

/* title */
#player-tooltip .tooltip-title {
  font-weight: bold;
  margin-bottom: 6px;
  text-align: center; /* center the name */
  color: var(--brand-color); /* your brand color */
}

/* table */
#player-tooltip .tooltip-table {
  width: 100%;
  border-collapse: collapse;
}

/* headers */
#player-tooltip .tooltip-header {
  text-align: left;
  border-bottom: 1px solid #ddd;
  padding: 4px 6px;
  font-weight: 600;
}

/* card column */
#player-tooltip .tooltip-card {
  text-align: left;
}

/* used column */
#player-tooltip .tooltip-used {
  text-align: center;
}

/* all cells */
#player-tooltip .tooltip-cell {
  padding: 4px 6px;
  border-bottom: 1px solid #f0f0f0;
}

/* remove bottom border on last row */
#player-tooltip .tooltip-table tbody tr:last-child .tooltip-cell {
  border-bottom: none;
}

/* if you need more fine-grained control: */
#player-tooltip .tooltip-header {
  color: #555;
}
#player-tooltip .tooltip-cell {
  color: #666;
}

#player-tooltip .tooltip-title {
  font-size: 1.2rem; /* or whatever size you prefer */
  line-height: 1.3; /* optional – for better readability */
  color: #a44a76; /* ensure it’s still in your brand palette */
}

#question-tooltip .tooltip-title {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 1.2rem; /* or whatever size you prefer */
  line-height: 1.3; /* optional – for better readability */
  color: #a44a76; /* ensure it’s still in your brand palette */
}

/* make all player names (in room and scores) look clickable */
.player-name {
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

/* on hover use your brand color */
.player-name:hover,
.question-num:hover {
  color: #a44a76; /* ← replace with your actual brand color */
}

/* make sure question numbers can be hovered */
.monitor-room-card .question-num {
  display: inline-block; /* allow padding/hover */
  padding: 2px; /* small hit area */
  cursor: pointer; /* show it’s interactive */
  transition: color 0.2s ease-in-out; /* smooth color change */
}

/* now your hover */
.monitor-room-card .question-num:hover {
  color: var(--brand-color); /* or your #a44a76 */
}

/* tooltip itself should use the default arrow cursor */
#player-tooltip,
.question-num {
  cursor: pointer;
}

#question-tooltip {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 1001;
  max-width: 300px;
  font-size: 0.9rem;
  color: #333;
}
#question-tooltip.hidden {
  display: none;
}

/* container */
.collapse-link {
  display: inline-block;
  white-space: nowrap; /* never wrap text+arrow */
  font-size: 14px;
  color: #b45c99;
  text-decoration: none; /* start with no underline */
  text-decoration-skip-ink: none; /* continuous underline, no gaps */
  cursor: pointer;
  transition: color 0.2s ease,
    /* fade the color */ text-underline-offset 0.2s ease; /* slide the underline */
}

/* only underline on hover */
.collapse-link:hover {
  text-decoration: underline;
  color: #a44a76;
  text-underline-offset: 3px;
}

/* make the arrow 75% the size of the link text, and vertically center it */
.collapse-link::after {
  font-size: 0.75em;
  vertical-align: middle;
}

/* your existing expanded/collapsed content rules stay the same */
.collapse-link[aria-expanded="false"]::after {
  content: "\00a0▼";
}
.collapse-link[aria-expanded="true"]::after {
  content: "\00a0▲";
}
