
body {
  font-family: Arial, sans-serif;
  background: #f0f6ff;
  margin: 0;
  padding: 20px;
  color: #003366;
}
header {
  text-align: center;
  margin-bottom: 20px;
}
h1 {
  margin-bottom: 10px;
}
.nav-buttons {
  margin-top: 10px;
}
button {
  background: #0055cc;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin: 4px;
}
button.active {
  background: #002b66;
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
.card {
  background: white;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,50,0.1);
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  gap: 10px;
  margin-top: 10px;
}
select, input[type="text"] {
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #aac;
  width: 100%;
  box-sizing: border-box;
}
.toggle {
  margin-top: 10px;
  text-align: center;
}
.toggle label {
  cursor: pointer;
}
#content {
  max-width: 1100px;
  margin: 0 auto;
}
.table-header {
  font-weight: bold;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #e8f0ff;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 8px;
  border-bottom: 1px solid #ddd;
}
.row:nth-child(even) {
  background: #f6f9ff;
}
.clickable {
  text-decoration: underline;
  cursor: pointer;
}
.top3-entry {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  margin-bottom: 8px;
  background: #f6f9ff;
  border-radius: 6px;
}
.top3-entry:nth-child(odd) {
  background: #e8f0ff;
}
.time {
  font-size: 1.4em;
  font-weight: bold;
}
.small {
  font-size: 0.85em;
  color: #335;
}
.section-header {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #ccd;
  font-weight: bold;
}
.section-header-title {
  font-size: 1.05em;
}
.section-subtitle {
  font-size: 0.85em;
  color: #335;
}


.details-panel {
  margin: 4px 6px 10px 10px;
  padding: 8px 10px;
  background: #e8f0ff;
  border-left: 4px solid #1e3a8a;
  border-radius: 6px;
  font-size: 0.85em;
  color: #123;
}

.details-panel strong {
  font-weight: bold;
}


.split-analytics {
  margin-top: 6px;
  padding: 6px 8px;
  background: #dde9ff;
  border-radius: 4px;
  font-size: 0.8em;
}

.split-analytics-inner div {
  margin-bottom: 2px;
}

button.split-toggle {
  margin-top: 4px;
  padding: 4px 8px;
  font-size: 0.75em;
  border-radius: 4px;
  border: none;
  background: #1e40af;
  color: white;
  cursor: pointer;
}

button.split-toggle:hover {
  background: #1d3a96;
}


.progression-panel {
  margin-top: 6px;
  padding: 6px 8px;
  background: #eef2ff;
  border-radius: 4px;
  font-size: 0.8em;
}

.progression-list {
  margin: 6px 0 0 0;
  padding-left: 16px;
}

.progression-list li {
  margin-bottom: 2px;
}

button.progression-toggle {
  margin-top: 4px;
  padding: 4px 8px;
  font-size: 0.75em;
  border-radius: 4px;
  border: none;
  background: #0f766e;
  color: white;
  cursor: pointer;
}

button.progression-toggle:hover {
  background: #0e625b;
}

.progression-analytics {
  margin-top: 4px;
}


.swimmer-link {
  color: #1e40af;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}

.swimmer-link:hover {
  color: #172554;
  text-decoration: underline;
}


.stroke-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.stroke-col h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}

.back-btn {
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #1e40af;
  background: #eff6ff;
  color: #1e40af;
  font-size: 13px;
  cursor: pointer;
}

.back-btn:hover {
  background: #dbeafe;
}


/* --- Swimmer Page Full-Width Layout (v9.21) --- */
#content .card.swimmer-wide {
  max-width: 1600px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.stroke-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* widened columns */
  gap: 24px;
  padding: 10px 5px;
}

.stroke-col .section {
  margin-bottom: 14px;
}


/* --- Swimmer Page Only Wide Layout (v9.22) --- */
.swimmer-wide-container #content {
  max-width: 1600px !important;
  width: 100% !important;
}
