﻿body.season-coach-app {
  background: #0b1220;
  color: #dbe7f3;
  font-family: Inter, system-ui, Arial, sans-serif;
}

.season-hero {
  background: linear-gradient(135deg, #07111f 0%, #102a43 100%);
  color: #fff;
  border: 1px solid #243b53;
  border-radius: 18px;
  padding: 32px 28px;
  margin-bottom: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.season-hero h1 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 950;
  line-height: 1.03;
  letter-spacing: 0;
  margin-bottom: .8rem;
}

.season-hero p {
  max-width: 980px;
  color: #cfe7ff;
}

.season-link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1rem;
}

.season-link-strip a {
  display: inline-flex;
  border: 1px solid #2f4f6f;
  border-radius: 999px;
  padding: .45rem .8rem;
  background: #111c2e;
  color: #8ee3ef;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}

.season-panel {
  border: 1px solid #243b53;
  border-radius: 16px;
  background: #111c2e;
  color: #dbe7f3;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  overflow: hidden;
}

.sticky-panel {
  position: sticky;
  top: 1rem;
}

.season-panel-header {
  border-bottom: 1px solid #243b53;
  background: #07111f;
  padding: 1rem 1.15rem;
  color: #f8fbff;
}

.season-panel-body {
  padding: 1.15rem;
}

.season-panel .form-label {
  color: #9fb3c8;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.season-panel .form-control,
.season-panel .form-select {
  border: 1px solid #2f4f6f;
  background: #0b1220;
  color: #f8fbff;
}

.season-panel .form-control:focus,
.season-panel .form-select:focus {
  border-color: #38bdf8;
  background: #0b1220;
  color: #fff;
  box-shadow: 0 0 0 .18rem rgba(56, 189, 248, .16);
}

.season-panel .form-text,
.season-panel .form-check-label {
  color: #8aa2b8;
}

.coach-metric {
  border: 1px solid #243b53;
  border-radius: 14px;
  background: #111c2e;
  min-height: 104px;
  padding: 1rem;
  text-align: center;
}

.coach-metric span {
  display: block;
  color: #8aa2b8;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.coach-metric strong {
  display: block;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1.12;
  font-weight: 950;
}

.coach-metric small {
  display: block;
  color: #9fb3c8;
}

.season-chart-wrap {
  overflow-x: auto;
  border: 1px solid #243b53;
  border-radius: 14px;
  background: #07111f;
  padding: 10px;
}

#loadChart {
  min-width: 860px;
  width: 100%;
  height: auto;
  display: block;
}

.season-table {
  color: #dbe7f3;
  margin-bottom: 0;
}

.season-table th {
  background: #07111f !important;
  color: #b8c7d8;
  border-color: #243b53;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.season-table td {
  border-color: #243b53;
  vertical-align: middle;
}

.season-table tbody tr:hover {
  background: rgba(56, 189, 248, .07);
}

.phase-badge,
.workout-pill,
.readiness-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .28rem .55rem;
  font-size: .72rem;
  font-weight: 850;
  white-space: nowrap;
}

.phase-base { background: rgba(59, 130, 246, .18); color: #93c5fd; }
.phase-build { background: rgba(34, 197, 94, .18); color: #86efac; }
.phase-specific { background: rgba(249, 115, 22, .18); color: #fdba74; }
.phase-taper { background: rgba(168, 85, 247, .18); color: #d8b4fe; }
.phase-recovery { background: rgba(148, 163, 184, .18); color: #cbd5e1; }

.workout-pill {
  background: rgba(14, 165, 233, .16);
  color: #7dd3fc;
}

.readiness-critical { background: rgba(244, 63, 94, .22); color: #fda4af; }
.readiness-load { background: rgba(251, 146, 60, .2); color: #fed7aa; }
.readiness-ok { background: rgba(34, 197, 94, .18); color: #86efac; }
.readiness-fresh { background: rgba(45, 212, 191, .18); color: #99f6e4; }

.workout-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.workout-detail-card {
  border: 1px solid #243b53;
  border-radius: 14px;
  background: #0b1220;
  overflow: hidden;
}

.workout-detail-card header {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  border-bottom: 1px solid #243b53;
  padding: .9rem;
  background: #07111f;
}

.workout-detail-card h3 {
  margin: .25rem 0 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.workout-detail-card p {
  color: #9fb3c8;
}

.workout-detail-card .card-body {
  padding: .9rem;
}

.workout-detail-card ol {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.workout-detail-card li {
  margin-bottom: .45rem;
}

.alert {
  border-radius: 14px;
  border-color: #243b53;
}

.alert-warning { background: rgba(251, 146, 60, .15); color: #ffedd5; }
.alert-success { background: rgba(34, 197, 94, .15); color: #dcfce7; }
.alert-info { background: rgba(14, 165, 233, .15); color: #e0f2fe; }
.alert-danger { background: rgba(244, 63, 94, .15); color: #ffe4e6; }

@media (max-width: 991.98px) {
  .sticky-panel { position: static; }
  .workout-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .season-hero { padding: 24px 18px; }
  .season-table { font-size: .84rem; }
}


.event-box {
  border: 1px solid #243b53;
  border-radius: 14px;
  padding: .85rem;
  background: #0b1220;
}

.event-box h3 {
  color: #f8fbff;
  font-weight: 900;
}

.event-box p,
.event-empty {
  color: #8aa2b8;
}

.event-list {
  display: grid;
  gap: .55rem;
}

.event-item {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  border: 1px solid #243b53;
  border-radius: 12px;
  padding: .6rem .7rem;
  background: #111c2e;
}

.event-item strong,
.event-item small {
  display: block;
}

.event-item small {
  color: #9fb3c8;
}

.event-actions {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .2rem .48rem;
  margin-bottom: .2rem;
  background: rgba(250, 204, 21, .18);
  color: #fde68a;
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

.day-click-row {
  cursor: pointer;
}

.day-click-row:hover td {
  background: rgba(56, 189, 248, .10) !important;
}

.event-day-row td {
  background: rgba(250, 204, 21, .06);
}

.season-modal .modal-content {
  background: #111c2e;
  color: #dbe7f3;
  border: 1px solid #243b53;
}

.season-modal .modal-header,
.season-modal .modal-footer {
  border-color: #243b53;
  background: #07111f;
}

.season-modal .form-label {
  color: #9fb3c8;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.season-modal .form-control,
.season-modal .form-select {
  background: #0b1220;
  border: 1px solid #2f4f6f;
  color: #fff;
}

.session-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.session-detail-grid h3,
.session-steps h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.session-dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: .45rem .75rem;
  margin: 0;
}

.session-dl dt {
  color: #8aa2b8;
  font-weight: 900;
}

.session-dl dd {
  margin: 0;
  color: #f8fbff;
}

.session-steps {
  margin-top: 1rem;
  border: 1px solid #243b53;
  border-radius: 14px;
  padding: 1rem;
  background: #0b1220;
}

.session-steps ol {
  margin-bottom: 0;
}

.session-steps li {
  margin-bottom: .45rem;
}

@media (max-width: 767.98px) {
  .event-item,
  .session-detail-grid {
    grid-template-columns: 1fr;
  }

  .event-item {
    align-items: flex-start;
    flex-direction: column;
  }
}


.manual-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .2rem .48rem;
  margin-top: .2rem;
  background: rgba(56, 189, 248, .18);
  color: #bae6fd;
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

.manual-day-row td {
  background: rgba(56, 189, 248, .05);
}

.manual-edit-box {
  border: 1px solid #243b53;
  border-radius: 14px;
  padding: 1rem;
  background: #07111f;
}

.manual-edit-box h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.manual-edit-box .form-label {
  color: #9fb3c8;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}


.chart-hit-area {
  cursor: crosshair;
}

.chart-dot {
  pointer-events: all;
}

.season-table tbody tr:hover,
.season-table tbody tr:hover td {
  background: #e0f2fe !important;
  color: #0f172a !important;
}

.season-table tbody tr:hover small,
.season-table tbody tr:hover .text-muted {
  color: #334155 !important;
}

.season-table tbody tr:hover .phase-badge,
.season-table tbody tr:hover .workout-pill,
.season-table tbody tr:hover .readiness-pill,
.season-table tbody tr:hover .event-badge,
.season-table tbody tr:hover .manual-badge {
  filter: none;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, .18);
}

.manual-badge {
  background: #38bdf8;
  color: #082f49;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, .18);
}

.manual-day-row td:first-child {
  border-left: 5px solid #38bdf8;
}

.manual-day-row td {
  background: rgba(56, 189, 248, .13) !important;
}

.event-day-row td:first-child {
  border-left: 5px solid #facc15;
}

.ai-coach-box {
  border: 1px solid #2f4f6f;
  border-radius: 14px;
  padding: 1rem;
  background: #0b1220;
}

.ai-coach-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .85rem;
}

.ai-coach-head h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.ai-coach-head span,
.ai-coach-box p {
  color: #9fb3c8;
  font-size: .82rem;
}

.ai-loading {
  border: 1px dashed #38bdf8;
  border-radius: 12px;
  padding: .85rem;
  color: #e0f2fe;
  background: rgba(56, 189, 248, .08);
}

.ai-output-text {
  margin: 0;
  border: 1px solid #243b53;
  border-radius: 12px;
  padding: 1rem;
  background: #07111f;
  color: #e5f3ff;
  font-family: Inter, system-ui, Arial, sans-serif;
  font-size: .94rem;
  line-height: 1.55;
}

.ai-output-text h4 {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
  margin: 1rem 0 .45rem;
}

.ai-output-text h4:first-child {
  margin-top: 0;
}

.ai-output-text p {
  color: #dbeafe;
  margin: 0 0 .65rem;
}

.ai-output-text ul {
  margin: 0 0 .75rem 1.15rem;
  padding: 0;
}

.ai-output-text li {
  margin: .25rem 0;
}

.ai-output-text strong {
  color: #fff;
  font-weight: 900;
}

@media (max-width: 575.98px) {
  .ai-coach-head {
    align-items: stretch;
    flex-direction: column;
  }
}




.day-list-mobile {
  display: none;
}

.day-week-grid {
  overflow-x: auto;
  padding-bottom: .4rem;
}

.week-grid-head,
.week-grid-row {
  display: grid;
  grid-template-columns: 128px repeat(7, minmax(132px, 1fr));
  gap: .45rem;
  min-width: 1080px;
}

.week-grid-head {
  align-items: center;
  color: #9fb3c8;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .06em;
  margin-bottom: .6rem;
  text-align: center;
  text-transform: uppercase;
}

.week-grid-head span:first-child {
  text-align: left;
}

.week-grid-row {
  align-items: stretch;
  margin-bottom: .65rem;
}

.week-row-label,
.week-day-cell {
  border: 1px solid #243b53;
  border-radius: 12px;
  background: #0b1220;
  min-height: 132px;
  padding: .55rem;
}

.week-row-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.week-row-label strong {
  color: #fff;
  font-size: .92rem;
  font-weight: 950;
}

.week-row-label small {
  color: #9fb3c8;
  margin-top: .25rem;
}

.week-day-cell {
  color: #dbe7f3;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  text-align: left;
  width: 100%;
}

button.week-day-cell {
  appearance: none;
  border-color: #243b53;
}

.week-day-cell:hover {
  background: #e0f2fe;
  color: #0f172a;
}

.week-day-cell:hover .week-day-date,
.week-day-cell:hover .week-day-meta,
.week-day-cell:hover .week-day-watts {
  color: #0f172a;
}

.week-day-cell:hover .readiness-pill,
.week-day-cell:hover .event-badge,
.week-day-cell:hover .manual-badge {
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, .18);
}

.week-day-cell.is-empty {
  background: rgba(15, 23, 42, .45);
  cursor: default;
}

.week-day-date {
  color: #93c5fd;
  font-size: .72rem;
  font-weight: 950;
}

.week-day-cell strong {
  color: inherit;
  font-size: .82rem;
  font-weight: 950;
  line-height: 1.2;
}

.week-day-meta,
.week-day-watts {
  color: #9fb3c8;
  display: block;
  font-size: .7rem;
  line-height: 1.25;
}

.week-day-watts {
  color: #bae6fd;
  font-weight: 850;
}

.event-day-cell {
  border-left: 4px solid #facc15;
}

.manual-day-cell {
  border-left: 4px solid #38bdf8;
}

.rest-day-cell {
  opacity: .82;
}

@media (max-width: 991.98px) {
  .day-week-grid {
    display: none !important;
  }

  .day-list-mobile {
    display: block;
  }
}


