/* ====================================================================== */
/* STANDINGS PAGE - ORIGINAL STYLES                                      */
/* ====================================================================== */

.hidden { display: none !important; }

.view-toggle-button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin: 0 5px;
}

.view-toggle-button:hover { background-color: #0056b3; }

.page-buttons-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.standings-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.conference-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: background-color 0.3s, box-shadow 0.3s;
}

#fullLeagueViewContainer .conference-section,
#powerRankingsViewContainer .conference-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.conference-header {
  background-color: #333;
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.conference-header h3 {
  color: white;
  font-size: 1.5rem;
  margin: 0;
}

/* Power Rankings Version Selector */
.pr-version-selector-container {
  margin-top: 1rem;
  text-align: center;
  color: #e0e0e0;
}

.pr-version-select {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.dark-mode .pr-version-select {
  background-color: #333;
  color: #fff;
  border-color: #555;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2rem;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23e0e0e0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.65em auto;
}

.dark-mode .pr-version-select option {
  background-color: #333;
  color: #fff;
}

.power-rankings-summary {
  padding: 0.8rem 1rem;
  text-align: center;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
  font-size: 0.9em;
  transition: background-color 0.3s, border-color 0.3s;
}

.summary-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.summary-item:last-child {
  margin-bottom: 0;
}

.summary-team-logo {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  margin-right: 8px;
  flex-shrink: 0;
}

.summary-item strong {
  font-weight: 600;
}

.summary-team-link {
  color: inherit;
  text-decoration: none;
}

.summary-team-link:hover {
  text-decoration: underline;
}

/* Standings Table */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.standings-table th {
  background-color: #f8f9fa;
  padding: 1rem 0.5rem;
  text-align: center;
  font-weight: bold;
  border-bottom: 2px solid #ddd;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s, border-color 0.3s;
}

.standings-table th .sort-indicator {
  font-size: 0.8em;
  margin-left: 5px;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.standings-table th.no-sort { cursor: default; }

/* Column widths for Conference and Full League views */
#conferenceViewContainer .standings-table th:nth-child(1),
#conferenceViewContainer .standings-table td:nth-child(1),
#fullLeagueViewContainer .standings-table th:nth-child(1),
#fullLeagueViewContainer .standings-table td:nth-child(1) { width: 15%; text-align: center; }
#conferenceViewContainer .standings-table th:nth-child(2),
#conferenceViewContainer .standings-table td:nth-child(2),
#fullLeagueViewContainer .standings-table th:nth-child(2),
#fullLeagueViewContainer .standings-table td:nth-child(2) { width: 35%; text-align: left; }
#conferenceViewContainer .standings-table th:nth-child(3),
#conferenceViewContainer .standings-table td:nth-child(3),
#fullLeagueViewContainer .standings-table th:nth-child(3),
#fullLeagueViewContainer .standings-table td:nth-child(3) { width: 20%; text-align: center; }
#conferenceViewContainer .standings-table th:nth-child(4),
#conferenceViewContainer .standings-table td:nth-child(4),
#fullLeagueViewContainer .standings-table th:nth-child(4),
#fullLeagueViewContainer .standings-table td:nth-child(4) { width: 15%; text-align: center; }
#conferenceViewContainer .standings-table th:nth-child(5),
#conferenceViewContainer .standings-table td:nth-child(5),
#fullLeagueViewContainer .standings-table th:nth-child(5),
#fullLeagueViewContainer .standings-table td:nth-child(5) { width: 15%; text-align: center; }

/* Column widths for Power Rankings view */
#powerRankingsViewContainer .standings-table th:nth-child(1),
#powerRankingsViewContainer .standings-table td:nth-child(1) { width: 12%; text-align: center; }
#powerRankingsViewContainer .standings-table th:nth-child(2),
#powerRankingsViewContainer .standings-table td:nth-child(2) { width: 33%; text-align: left; }
#powerRankingsViewContainer .standings-table th:nth-child(3),
#powerRankingsViewContainer .standings-table td:nth-child(3) { width: 18%; text-align: center; }
#powerRankingsViewContainer .standings-table th:nth-child(4),
#powerRankingsViewContainer .standings-table td:nth-child(4) { width: 15%; text-align: center; }
#powerRankingsViewContainer .standings-table th:nth-child(5),
#powerRankingsViewContainer .standings-table td:nth-child(5) { width: 22%; text-align: center; }

.standings-table td {
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  vertical-align: middle;
  transition: border-color 0.3s;
}

.standings-table tr:hover { background-color: #f8f9fa; }
.rank-cell { font-weight: bold; }

.team-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.team-cell:hover { color: #007bff; }

.team-logo {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  flex-shrink: 0;
}

.team-name { font-weight: 500; flex-grow: 1; word-break: break-word; font-size: 0.85rem !important; }
.record-cell { font-weight: 500; }
.pam-cell { font-weight: 500; }
.pam-positive { color: #28a745; font-weight: 600;}
.pam-negative { color: #dc3545; font-weight: 600;}

/* Playoff/Play-in/Eliminated Seeds */
.playoff-seed, .playin-seed, .eliminated-seed {
  width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold; margin: 0 auto;
  border-radius: 50%;
}

.playoff-seed { background-color: #28a745; color: white; }
.playin-seed { background-color: #ffc107; color: #333; }
.eliminated-seed { background-color: #dc3545; color: white; }

/* Rank Badges (for Power Rankings) */
.rank-badge {
  width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold; margin: 0 auto;
  border-radius: 4px;
}

.gold-badge { background-color: gold; color: #333; }
.silver-badge { background-color: silver; color: #333; }
.bronze-badge { background-color: #cd7f32; color: white; }

.eliminated { opacity: 0.6; }

/* Playoff Legend */
.playoff-legend {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.legend-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 1rem; text-align: center; }
.legend-items { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; }
.legend-color { width: 20px; height: 20px; border-radius: 50%; }
.playoff-color { background-color: #28a745; }
.playin-color { background-color: #ffc107; }
.eliminated-color { background-color: #dc3545; }

/* Clinch Badges and Legend */
.clinch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 6px;
  flex-shrink: 0;
}

.clinch-playoff { background-color: #28a745; color: white; }
.clinch-playin { background-color: #ffc107; color: #333; }
.clinch-eliminated { background-color: #dc3545; color: white; }

.clinch-legend {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-top: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.clinch-legend-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 1rem; text-align: center; }
.clinch-legend-items { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.clinch-legend-item { display: flex; align-items: center; gap: 0.75rem; }

/* ====================================================================== */
/* DARK MODE - ORIGINAL STYLES                                           */
/* ====================================================================== */

.dark-mode .view-toggle-button {
  background-color: #373737;
  color: #e0e0e0;
  border: 1px solid #555;
}

.dark-mode .view-toggle-button:hover {
  background-color: #4a4a4a;
}

.dark-mode .conference-section,
.dark-mode .playoff-legend,
.dark-mode .clinch-legend {
  background-color: #1e1e1e;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.dark-mode .standings-table th {
  background-color: #2c2c2c;
  border-bottom-color: #444;
}

.dark-mode .standings-table td {
  border-bottom-color: #333;
}

.dark-mode .standings-table tr:hover {
  background-color: #2c2c2c;
}

.dark-mode .team-cell:hover {
  color: #bb86fc;
}

.dark-mode .pam-positive { color: #66bb6a; }
.dark-mode .pam-negative { color: #f06292; }
.dark-mode .eliminated { opacity: 0.5; }

.dark-mode .power-rankings-summary {
  background-color: #2c2c2c;
  border-bottom-color: #444;
}

.dark-mode .summary-team-link {
  color: #e0e0e0;
}

.dark-mode .summary-team-link:hover {
  color: #bb86fc;
}

/* ====================================================================== */
/* MOBILE RESPONSIVE                                                     */
/* ====================================================================== */

/* Show/hide labels based on screen size */
.mobile-label { display: none; }
.full-label { display: inline; }

@media (max-width: 768px) {
  .mobile-label { display: inline; }
  .full-label { display: none; }
  .standings-container { grid-template-columns: 1fr; gap: 1.5rem; }
  #fullLeagueViewContainer .conference-section,
  #powerRankingsViewContainer .conference-section { max-width: 100%; }
  .standings-table th .sort-indicator { display: none; }
  .page-buttons-container { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
  .view-toggle-button { width: 80%; margin: 0 auto; }
  .prev-rank-col { display: none; }

  #conferenceViewContainer .standings-table thead th:nth-child(5),
  #fullLeagueViewContainer .standings-table thead th:nth-child(5) {
    display: none;
  }

  #eastern-standings td:nth-child(5),
  #western-standings td:nth-child(5),
  #full-league-standings td:nth-child(5) {
    display: none;
  }

  #conferenceViewContainer .standings-table thead th:nth-child(1),
  #fullLeagueViewContainer .standings-table thead th:nth-child(1) { width: 20%; }
  #conferenceViewContainer .standings-table thead th:nth-child(2),
  #fullLeagueViewContainer .standings-table thead th:nth-child(2) { width: 42%; }
  #conferenceViewContainer .standings-table thead th:nth-child(3),
  #fullLeagueViewContainer .standings-table thead th:nth-child(3) { width: 17%; }
  #conferenceViewContainer .standings-table thead th:nth-child(4),
  #fullLeagueViewContainer .standings-table thead th:nth-child(4) { width: 21%; }
  #eastern-standings td:nth-child(1),
  #western-standings td:nth-child(1),
  #full-league-standings td:nth-child(1) { width: 20%; }
  #eastern-standings td:nth-child(2),
  #western-standings td:nth-child(2),
  #full-league-standings td:nth-child(2) { width: 42%; }
  #eastern-standings td:nth-child(3),
  #western-standings td:nth-child(3),
  #full-league-standings td:nth-child(3) { width: 17%; }
  #eastern-standings td:nth-child(4),
  #western-standings td:nth-child(4),
  #full-league-standings td:nth-child(4) { width: 21%; }

  #powerRankingsViewContainer .standings-table th:nth-child(1),
  #powerRankingsViewContainer .standings-table td:nth-child(1) { width: 15%; }
  #powerRankingsViewContainer .standings-table th:nth-child(2),
  #powerRankingsViewContainer .standings-table td:nth-child(2) { width: 40%; }
  #powerRankingsViewContainer .standings-table th:nth-child(3),
  #powerRankingsViewContainer .standings-table td:nth-child(3) { width: 20%; }
  #powerRankingsViewContainer .standings-table th:nth-child(5),
  #powerRankingsViewContainer .standings-table td:nth-child(5) { width: 25%; }

  .team-name {
    font-size: 0.73rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  #powerRankingsViewContainer .conference-header h3 {
    font-size: 1.1rem;
  }
}

/* ====================================================================== */
/* MODERN STYLE OVERRIDES (only apply when data-style-rollout="modern") */
/* ====================================================================== */

/* View Toggle Buttons - Light theme */
[data-style-rollout="modern"] .view-toggle-button {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 10px;
  margin: 0 0.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

[data-style-rollout="modern"] .view-toggle-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

[data-style-rollout="modern"] .view-toggle-button:active {
  transform: translateY(0);
}

/* Conference Section - Light theme */
[data-style-rollout="modern"] .conference-section {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

[data-style-rollout="modern"] .conference-header {
  background: linear-gradient(135deg, #0f172a, #111d35);
  border-bottom: 1px solid #1f2937;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

[data-style-rollout="modern"] .conference-header h3 {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Power Rankings Selector - Light theme */
[data-style-rollout="modern"] .pr-version-select {
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #0f172a;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-style-rollout="modern"] .pr-version-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
  outline: none;
}

/* Power Rankings Summary - Light theme */
[data-style-rollout="modern"] .power-rankings-summary {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-bottom: 1px solid #e5e7eb;
}

/* Standings Table - Light theme */
[data-style-rollout="modern"] .standings-table th {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-bottom: 2px solid #e5e7eb;
}

[data-style-rollout="modern"] .standings-table td {
  border-bottom: 1px solid #e5e7eb;
}

[data-style-rollout="modern"] .standings-table tr:hover {
  background: linear-gradient(145deg, #f8f9fa, #ffffff);
}

[data-style-rollout="modern"] .team-cell:hover {
  color: #2563eb;
}

[data-style-rollout="modern"] .pam-positive { color: #16a34a; }
[data-style-rollout="modern"] .pam-negative { color: #dc2626; }

/* Playoff/Play-in Seeds - Modern gradients */
[data-style-rollout="modern"] .playoff-seed {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-style-rollout="modern"] .playin-seed {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-style-rollout="modern"] .eliminated-seed {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Legends - Light theme */
[data-style-rollout="modern"] .playoff-legend,
[data-style-rollout="modern"] .clinch-legend {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

[data-style-rollout="modern"] .legend-title,
[data-style-rollout="modern"] .clinch-legend-title {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}

[data-style-rollout="modern"] .legend-item,
[data-style-rollout="modern"] .clinch-legend-item {
  color: #0f172a;
}

[data-style-rollout="modern"] .legend-color {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-style-rollout="modern"] .playoff-color {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

[data-style-rollout="modern"] .playin-color {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

[data-style-rollout="modern"] .eliminated-color {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Clinch Badges - Modern gradients */
[data-style-rollout="modern"] .clinch-badge {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

[data-style-rollout="modern"] .clinch-playoff {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

[data-style-rollout="modern"] .clinch-playin {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

[data-style-rollout="modern"] .clinch-eliminated {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Header - Light theme */
[data-style-rollout="modern"] header {
  background: linear-gradient(135deg, #0f172a, #111d35);
  border-bottom: 1px solid #1f2937;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

/* Footer - Light theme */
[data-style-rollout="modern"] footer {
  background: linear-gradient(135deg, #0f172a, #111d35);
  border-top: 1px solid #1f2937;
}

[data-style-rollout="modern"] footer a {
  color: #60a5fa;
}

[data-style-rollout="modern"] footer a:hover {
  color: #93c5fd;
}

/* ====================================================================== */
/* DARK MODE MODERN OVERRIDES                                            */
/* ====================================================================== */

/* Conference Section - Dark theme */
[data-style-rollout="modern"].dark-mode .conference-section {
  background: linear-gradient(135deg, #1a1f2e, #1e2433);
  border-color: #2d3748;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

[data-style-rollout="modern"].dark-mode .conference-header {
  background: linear-gradient(135deg, #111827, #1b2435);
  border-bottom: 1px solid #243047;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Power Rankings Selector - Dark theme */
[data-style-rollout="modern"].dark-mode .pr-version-select {
  background: linear-gradient(135deg, #1f2937, #243244);
  border-color: #3d4d6a;
  color: #f1f5f9;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2rem;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23e5e7eb%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.65em auto;
}

[data-style-rollout="modern"].dark-mode .pr-version-select option {
  background-color: #1f2937;
  color: #f1f5f9;
}

/* Power Rankings Summary - Dark theme */
[data-style-rollout="modern"].dark-mode .power-rankings-summary {
  background: linear-gradient(135deg, #1f2937, #243244);
  border-bottom-color: #2d3748;
}

[data-style-rollout="modern"].dark-mode .summary-team-link {
  color: #f1f5f9;
}

[data-style-rollout="modern"].dark-mode .summary-team-link:hover {
  color: #60a5fa;
}

/* Standings Table - Dark theme */
[data-style-rollout="modern"].dark-mode .standings-table th {
  background: linear-gradient(135deg, #1f2937, #243244);
  border-bottom-color: #2d3748;
}

[data-style-rollout="modern"].dark-mode .standings-table td {
  border-bottom-color: #2d3748;
}

[data-style-rollout="modern"].dark-mode .standings-table tr:hover {
  background: linear-gradient(145deg, #0f1419, #111827);
}

[data-style-rollout="modern"].dark-mode .team-cell:hover {
  color: #60a5fa;
}

[data-style-rollout="modern"].dark-mode .pam-positive { color: #4ade80; }
[data-style-rollout="modern"].dark-mode .pam-negative { color: #f87171; }

/* Legends - Dark theme */
[data-style-rollout="modern"].dark-mode .playoff-legend,
[data-style-rollout="modern"].dark-mode .clinch-legend {
  background: linear-gradient(135deg, #1a1f2e, #1e2433);
  border-color: #2d3748;
}

[data-style-rollout="modern"].dark-mode .legend-title,
[data-style-rollout="modern"].dark-mode .clinch-legend-title {
  color: #f1f5f9;
}

[data-style-rollout="modern"].dark-mode .legend-item,
[data-style-rollout="modern"].dark-mode .clinch-legend-item {
  color: #f1f5f9;
}

/* Footer - Dark theme */
[data-style-rollout="modern"].dark-mode footer {
  background: linear-gradient(135deg, #1a1f2e, #1e2433);
  border-top: 1px solid #2d3748;
}

[data-style-rollout="modern"].dark-mode footer a {
  color: #60a5fa;
}

[data-style-rollout="modern"].dark-mode footer a:hover {
  color: #93c5fd;
}
