body {
    font-family: 'Roboto', sans-serif;
    background-color: #1e1e1e;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
}

header {
    background-color: #2c2c2c;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

h1 {
    margin: 0;
    font-size: 2em;
    color: #f0f0f0;
}

h2 {
    color: #f0f0f0;
}

h2.centered {
    text-align: center;
}

p.centered {
    text-align: center;
}

/* Generic utility to center text on any element (e.g., h1 on Add Player) */
.centered {
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
}

nav ul li a:hover {
    color: #a0a0a0;
}

nav .dropdown .dropbtn {
    cursor: pointer;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c2c2c;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: 4px;
}

nav .dropdown-content a {
    color: #f0f0f0;
    padding: 12px 16px;
    display: block;
}

nav .dropdown-content a:hover {
    background-color: #3c3c3c;
}

nav .dropdown:hover .dropdown-content {
    display: block;
}

.header-actions {
    position: absolute;
    top: 20px;
    right: 20px;
}

.header-actions .small-button {
    padding: 5px 10px;
    font-size: 12px;
    background-color: #608b58;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Global small-button style for links/buttons used outside header (e.g., week navigation) */
.small-button {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1;
    background-color: #608b58;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.small-button:hover {
    background-color: #4f744a;
    color: #ffffff !important;
}

.header-actions .small-button:hover {
    background-color: #455a64;
}

main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

.edit-players-main {
    max-width: 800px;
}

.season-content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.left-column {
    flex: 1;
}

.right-column {
    flex: 2;
}

.week-tabs a {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 10px;
    background-color: #608b58;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.week-tabs a:hover {
    background-color: #455a64;
}

.offseason-content {
    text-align: center;
}

.offseason-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* allow stacking on small screens */
    align-items: flex-start;
}

/* Generic column for offseason left side two-up layout */
.offseason-column {
    flex: 1 1 320px; /* grow, shrink, base width */
    min-width: 280px;
}

.left-offseason-content {
    flex: 1;
    text-align: center;
}

.right-offseason-content {
    flex: 2;
    text-align: center;
}

.left-offseason-content .countdown-section,
.left-offseason-content ul {
    max-width: 500px;
    margin: 0 auto;
}

.right-offseason-content .link-buttons,
.right-offseason-content table {
    max-width: 400px;
    margin: 20px auto;
}

.right-offseason-content .link-buttons {
    margin-bottom: 20px;
}

.right-offseason-content .link-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #608b58;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 5px;
}

.right-offseason-content .link-button:hover {
    background-color: #455a64;
}

/* Season mode columns wrapper for side-by-side layout */
.season-columns {
  display: flex;
  justify-content: space-between;
  gap: 20px; /* Adjust gap as needed to match existing column spacing */
  flex-wrap: wrap; /* Ensures responsiveness on smaller screens */
}

/* Adjust season-content to stack columns wrapper above team-sections */
.season-content {
  flex-direction: column;
}

.link-buttons {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 20px;
    text-align: center;
}

.link-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #608b58;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 5px;
}

.link-button:hover {
    background-color: #455a64;
}

.draft-link-button {
    background-color: #4A90E2;
}

.draft-link-button:hover {
    background-color: #455a64;
}

.submit-draft-button {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 20px;
    text-align: center;
}

.draft-submit-button {
    background-color: #E24A4A;
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.25em;
}

.draft-submit-button:hover {
    background-color: #455a64;
}

#confirm-draft-modal .modal-content {
    max-width: 400px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.confirm-button {
    background-color: #608b58;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.confirm-button:hover {
    background-color: #455a64;
}

.cancel-button {
    background-color: #E24A4A;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-button:hover {
    background-color: #455a64;
}

.countdown-section {
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 10px;
    margin-bottom: 20px;
}

#countdown, #draft-timer {
    font-size: 1.25em;
    margin: 0px 0;
    min-height: 10px;
    line-height: 10px;
}

.offseason-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    text-align: left;
}

.offseason-content ul li {
    display: block;
    margin-bottom: 10px;
    line-height: .75em;
}

/* Reduce vertical space specifically for Game Days list items under the details blocks */
.offseason-content .offseason-column details ul {
    /* Override inline margin-bottom on these ULs to reduce extra space under the list */
    margin-bottom: 4px !important;
}

.offseason-content .offseason-column details > summary {
    /* Summaries have inline margin-bottom; tighten it a bit specifically here */
    margin-bottom: 6px !important;
}

.offseason-content .offseason-column details ul li {
    margin-bottom: 2px; /* tighter gap between items */
    line-height: 0.9em; /* compact but readable */
}

.offseason-content ul li .date {
    display: inline;
    margin-right: 10px;
    font-weight: 400;
}

.offseason-content ul li .label {
    display: inline;
    font-weight: 700;
}

/* Align Offseason Schedule labels on the left and dates on the right (side-by-side) */
/* Only target the top-level ULs in the left column (Offseason Schedule), not the Game Days details lists */
.offseason-content .offseason-column > ul {
    text-align: left !important;
    /* Center the list block under the heading while preserving internal alignment */
    display: inline-block;        /* allow centering via parent text-align */
    width: max-content;           /* shrink to content width */
    max-width: 100%;              /* prevent overflow on small screens */
    margin-left: auto;            /* center horizontally */
    margin-right: auto;           /* center horizontally */
}

.offseason-content .offseason-column > ul li {
    display: flex;
    justify-content: flex-start; /* keep date closer to label */
    align-items: baseline;
    gap: 6px; /* tighter default gap */
}

.offseason-content .offseason-column > ul li .date {
    margin-left: 6px;
    margin-right: 0;
    white-space: nowrap; /* keep date on one line */
}

/* Ensure dates align vertically by giving labels a consistent minimum width */
.offseason-content .offseason-column > ul li .label {
    min-width: 150px; /* consistent label width so dates align */
}

/* Responsive tweak: reduce min label width on small screens to avoid overflow */
@media (max-width: 480px) {
  .offseason-content .offseason-column > ul li .label {
      min-width: 120px;
  }
  .offseason-content .offseason-column > ul li {
      gap: 5px;
  }
}

.team-sections {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    /* Ensure there is clear space above the team sections, regardless of preceding content margins */
    margin-top: 16px;
}

.team-section {
    flex: 1 1 200px;
    min-width: 200px;
    max-width: 250px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-section img,
.team-section h3,
.team-section h4,
.team-section ul {
    max-width: 200px;
}

.team-section ul {
    text-align: center;
    padding: 0;
}

.team-section ul li {
    display: block;
}

.team-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.team-tabs a {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9em;
}

th {
    background-color: #2c2c2c;
    padding: 8px;
    text-align: center;
}

td {
    padding: 8px;
    text-align: center;
}

th.sortable {
    cursor: pointer;
}

th.sortable:hover {
    background-color: #3c3c3c;
}

.roster-summary {
    border: 1px solid #6b7280;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    /* Add a little breathing room below the roster summary table on the homepage */
    margin-bottom: 16px;
}

.roster-summary thead {
    background: linear-gradient(180deg, #3c3c3c 0%, #608b58 100%);
}

.roster-summary th {
    white-space: normal;
    line-height: 1.3;
    padding: 10px 6px;
    font-weight: 700;
    font-size: 0.95em;
    color: #f0f0f0;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    border: none;
    background: linear-gradient(180deg, #58608b 0%, #5e4564 100%);
    transition: background 0.3s ease;
}

.roster-summary th:last-child {
    border-right: none;
}

.roster-summary th:hover {
    background: linear-gradient(180deg, #4a4a4a, #709c68);
}

.roster-summary th .confirmed {
    vertical-align: middle;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.roster-summary tbody tr {
    background-color: #1e1e1e;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.roster-summary tbody tr:nth-child(even) {
    background-color: #2a2a2a;
}

.roster-summary tbody tr:hover {
    background-color: #3c3c3c;
    transform: scale(1.02);
}

.roster-summary.equal-width th,
.roster-summary.equal-width td {
    width: 25%;
}

.roster-summary td {
    border-top: 1px solid #6b7280;
    border-right: 1px solid #6b7280;
    padding: 10px;
    font-size: 0.9em;
    color: #f0f0f0;
}

.roster-summary td:last-child {
    border-right: none;
}

.players-table {
    border: 1px solid #6b7280;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.players-table thead {
    background: linear-gradient(180deg, #3c3c3c 0%, #608b58 100%);
}

.players-table th {
    white-space: nowrap;
    line-height: 1.2;
    padding: 12px 8px;
    font-weight: 700;
    font-size: 0.95em;
    color: #f0f0f0;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    border: 1px solid #6b7280;
    border-bottom: 3px solid #6b7280;
    transition: background 0.3s ease;
}

.players-table th:hover {
    background: linear-gradient(180deg, #4a4a4a, #709c68);
}

.players-table tbody tr {
    background-color: #1e1e1e;
}

.players-table tbody tr:nth-child(even) {
    background-color: #2a2a2a;
}

.players-table td {
    border: 1px solid #6b7280;
    padding: 10px;
    font-size: 1em;
    vertical-align: middle;
}

.players-table .modal-input {
    font-size: 0.9em;
}

.players-table th:nth-child(5),
.players-table td:nth-child(5) {
    max-width: 80px;
}

.players-table .weight-input {
    width: 60px !important;
}

.players-table-stat-coll {
    border: 1px solid #6b7280;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.players-table-stat-coll thead {
    background: linear-gradient(180deg, #3c3c3c 0%, #608b58 100%);
}

.players-table-stat-coll th {
    white-space: nowrap;
    line-height: 1.2;
    padding: 8px 8px;
    font-weight: 700;
    font-size: 0.95em;
    color: #f0f0f0;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    border: 1px solid #6b7280;
    border-bottom: 3px solid #6b7280;
    transition: background 0.3s ease;
}

.players-table-stat-coll th:hover {
    background: linear-gradient(180deg, #4a4a4a, #709c68);
}

.players-table-stat-coll tbody tr {
    background-color: #1e1e1e;
}

.players-table-stat-coll tbody tr:nth-child(even) {
    background-color: #2a2a2a;
}

.players-table-stat-coll td {
    border: 1px solid #6b7280;
    padding: 2px;
    font-size: 1em;
    vertical-align: middle;
}

.players-table-stat-coll .modal-input {
    font-size: 0.9em;
}

.players-table-stat-coll th:nth-child(5),
.players-table-stat-coll td:nth-child(5) {
    max-width: 80px;
}

.players-table-stat-coll .weight-input {
    width: 60px !important;
}

.rookies-table {
    border: 1px solid #6b7280;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.rookies-table thead {
    background: linear-gradient(180deg, #3c3c3c 0%, #608b58 100%);
}

.rookies-table th {
    white-space: nowrap;
    line-height: 1.2;
    padding: 12px 8px;
    font-weight: 700;
    font-size: 0.95em;
    color: #f0f0f0;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    border: 1px solid #6b7280;
    border-bottom: 3px solid #6b7280;
    transition: background 0.3s ease;
}

.rookies-table th:hover {
    background: linear-gradient(180deg, #4a4a4a, #709c68);
}

.rookies-table tbody tr {
    background-color: #1e1e1e;
}

.rookies-table tbody tr:nth-child(even) {
    background-color: #2a2a2a;
}

.rookies-table td {
    border: 1px solid #6b7280;
    padding: 10px;
    font-size: 1em;
    vertical-align: middle;
}

.rookies-table th:nth-child(4),
.rookies-table td:nth-child(4),
.rookies-table th:nth-child(5),
.rookies-table td:nth-child(5),
.rookies-table th:nth-child(6),
.rookies-table td:nth-child(6) {
    max-width: 80px;
}

.draft-table {
    border: 1px solid #6b7280;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.draft-table thead {
    background: linear-gradient(180deg, #3c3c3c 0%, #608b58 100%);
}

.draft-table th {
    white-space: nowrap;
    line-height: 1.2;
    padding: 12px 8px;
    font-weight: 700;
    font-size: 0.95em;
    color: #f0f0f0;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    border: 1px solid #6b7280;
    border-bottom: 3px solid #6b7280;
    transition: background 0.3s ease;
}

.draft-table tbody tr {
    background-color: #1e1e1e;
}

.draft-table tbody tr:nth-child(even) {
    background-color: #2a2a2a;
}

.draft-table td {
    border: 1px solid #6b7280;
    padding: 10px;
    font-size: 1em;
    vertical-align: middle;
}

.draft-table th:nth-child(4),
.draft-table td:nth-child(4),
.draft-table th:nth-child(4),
.draft-table td:nth-child(5),
.draft-table th:nth-child(6),
.draft-table td:nth-child(6),
.draft-table th:nth-child(7),
.draft-table td:nth-child(7) {
    max-width: 80px;
}

.sort-indicator {
    display: inline-block;
    width: 10px;
}

input[type="text"], input[type="number"], input[type="email"], input[type="tel"], input[type="password"], select {
    width: 100%;
    padding: 5px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
}

input[type="checkbox"], input[type="radio"] {
    cursor: pointer;
}

.modal-input {
    font-size: 0.8em;
}

.height-input {
    width: 80px;
    display: inline-block;
    margin-right: 5px;
}

.weight-input {
    width: 60px;
    display: inline-block;
    margin-right: 5px;
    box-sizing: border-box;
}

.birthday-input-day {
    width: 300px;
    display: inline-block;
    margin-right: 5px;
}

.birthday-input-year {
    width: 300px;
    display: inline-block;
    margin-right: 5px;
}

.birthday-select {
    width: 200px;
    display: inline-block;
    margin-right: 5px;
}

button {
    background-color: #608b58;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #455a64;
}

input[type="checkbox"] {
    cursor: pointer;
}

form {
    margin-bottom: 20px;
}

form label {
    display: block;
    margin: 10px 0 5px;
}

.form-inline {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    align-items: center;
}

.form-row label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Center specific rows and prevent labels from stretching full width */
.form-row.center-row {
    justify-content: center;
}
.form-row.center-row label {
    flex: 0 0 auto;
}

.form-input {
    width: 150px;
}

.form-input-narrow {
    width: 80px;
}

.form-select {
    width: 100px;
}

/* Season picker utility: keeps label + select inline and prevents full-width select */
.season-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.season-select {
    width: auto !important; /* override global select width */
    min-width: 8ch;         /* roughly twice most 4-digit season text */
    max-width: 14ch;        /* prevent it from getting too wide */
    display: inline-block;
}

/* Segmented control for Season vs Career vs Best Seasons toggle */
.segmented {
    display: inline-flex;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
}
.segmented .seg {
    padding: 6px 10px;
    background: #1f2937;
    color: #fff;
    text-decoration: none;
}
.segmented .seg.active {
    background: #374151;
    font-weight: 600;
}
.segmented .seg + .seg {
    border-left: 1px solid #9ca3af;
}

/* Stats sub-navigation tabs */
.stats-nav-container {
    text-align: center;
    margin-bottom: 15px;
}
.stats-subnav {
    display: inline-flex;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    overflow: hidden;
}
.stats-subnav .stat-link {
    padding: 8px 16px;
    background: #1f2937;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}
.stats-subnav .stat-link:hover {
    background: #374151;
}
.stats-subnav .stat-link.active {
    background: #608b58;
    color: #fff;
    font-weight: 600;
}
.stats-subnav .stat-link + .stat-link {
    border-left: 1px solid #9ca3af;
}

.add-player-button {
    display: block;
    margin: 20px auto;
    padding: 10px 40px;
}

.team-logo {
    max-width: 100px;
    margin-bottom: 20px;
}

.team-logo-index {
    max-width: 150px;
    margin-bottom: 0px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: #2c2c2c;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    max-width: 800px;
    position: relative;
    text-align: center; /* Added this */
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5em;
    cursor: pointer;
}

/* Expandable table styles */
.expand-row {
    background-color: #2c2c2c;
    cursor: pointer;
    text-align: center;
}
.expand-row td {
    padding: 4px !important;
    font-size: 0.85em;
    color: #608b58;
    font-weight: bold;
}
.expand-row:hover {
    background-color: #3c3c3c;
}
.hidden-row {
    display: none;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #2c2c2c;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.details-row {
    background-color: #2c2c2c;
}

.details-content {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.details-content .form-row {
    flex-wrap: wrap;
}

.details-content label {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-details {
    background-color: #608b58;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.toggle-details:hover {
    background-color: #455a64;
}

select option {
    color: #000000;
}

/* New styles for Add New User form */
.add-user-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-fields {
    display: flex;
    flex-direction: column;
}

.checkbox-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.centered-button {
    text-align: center;
    margin-top: 10px;
}

/* New styles for Add Player section */
.add-player-section {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* New styles for roster counts and team selection */
.roster-counts {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 20px;
}

.roster-counts span {
    background-color: #3c3c3c;
    padding: 5px 10px;
    border-radius: 4px;
}

/* New styles for filter buttons */
.filter-buttons {
    display: flex; /* Makes the buttons flex items */
    flex-wrap: wrap; /* Allows them to wrap to a new line */
    justify-content: center; /* Centers the buttons on each line */
    margin-bottom: 20px;
}

.filter-buttons a {
    padding: 10px 10px;
    background-color: #608b58;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 5px 10px 5px; /* Adds 10px bottom margin */
}

.filter-buttons a:hover,
.filter-buttons a.active {
    background-color: #455a64;
}

/* Center align grade column */
table th:nth-child(3),
table td:nth-child(3) {
    text-align: center;
}

.confirmed {
    color: green;
    font-weight: bold;
}

/* New styles for stat collection pages */
.stat-collection-top {
    display: flex;
    justify-content: space-between;
    margin: 0 15px;
}

.stat-button {
    padding: 10px 20px;
    background-color: #608b58;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.stat-button:hover {
    background-color: #455a64;
}


.container_ot_gameover_buttons {
    clear: both;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

        .ot-scoring-button {
            background-color: #4A90E2;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom:10px;
        }
        
        .game-over-button {
            background-color: #E24A4A;
            display: flex;
            align-items: center;
            justify-content: center;
        }

.drive-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    background-color: darkslateblue;
    padding: 5px;
    border-radius: 4px;
}

.drive-input {
    display: flex;
    gap: 5px;
    flex-basis: 100%;
    justify-content: center;
}

.player-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.player-stats-display {
    font-size: 0.9em;
    color: #a0a0a0;
}

.extra-point-section {
    margin-top: 20px;
    padding: 10px;
    background-color: #3c3c3c;
    border-radius: 4px;
}

.field-pos-input {
    width: 60px;
}

.clock-select {
    width: 80px;
}

/* Responsive design for smaller screens */
@media (max-width: 767px) {
    .offseason-columns {
        flex-direction: column;
    }

    nav ul {
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .team-sections {
        flex-direction: column;
        align-items: center;
        max-width: 40%;
    }

    .team-section {
        min-width: 100%;
        max-width: 100%;
    }
    
    .bs-sections {
        flex-direction: column;
        align-items: center;
        max-width: 40%;
    }

    .bs-section {
        min-width: 100%;
        max-width: 100%;
    }    

    .roster-counts {
        flex-direction: column;
        gap: 10px;
    }

    #confirm-draft-modal .modal-content {
        max-width: 90%;
    }

    .stat-collection-top {
        flex-wrap: wrap;
    }

    .player-row {
        flex-direction: column;
        align-items: flex-start;
    }
        .season-columns {
        flex-direction: column;
    }
}

.delete-player {
    color: red;
    font-weight: bold;
    padding: 2px 6px;
    font-size: 12px;
}

/* Styles for defense stats table */
.defense-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.defense-stats-table th, .defense-stats-table td {
    text-align: center;
    padding: 5px;
    border: 1px solid #6b7280;
}

.defense-stats-table th {
    background-color: #2c2c2c;
}

/* Stat buttons in defense table */
.stat-btn {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    white-space: normal; /* Allow line breaks for stacked text */
}

.stat-btn:hover {
    background-color: #357ABD;
}

/* +/- toggle button */
.toggle-mode {
    background-color: #608b58;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.toggle-mode:hover {
    background-color: #455a64;
}
/* Styles for stacked season sections */
.season-section {
    max-width: 767px;
    margin: 0 auto 20px auto;
}

/* Center headings in season sections */
.season-section h2 {
    text-align: center;
}
.season-section h3 {
    text-align: center;
    margin-bottom: -15px;
    text-decoration: underline;
}
.season-section h4 {
    text-align: center;
    margin-top: -15px;
    margin-bottom: -15px;
    text-decoration: underline;
}

.season-section2 h2 {
    text-align: center;
}
.season-section2 h3 {
    text-align: center;
    margin-bottom: -15px;
    text-decoration: underline;
}
.season-section2 h4 {
    text-align: center;
    margin-top: -15px;
    margin-bottom: 0px;
    text-decoration: underline;
}

/* Enlarge standings table data */
.season-section table {
    font-size: 1.2em;
}

.season-section table th,
.season-section table td {
    padding: 12px;
}

.season-section2 {
            max-width: 767px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            //background-color: #f0f0f0; /* Optional: for visibility */
            padding: 0px 20px 20px 20px; /* Optional: some padding */
            //box-sizing: border-box;
        }

        .season-section2-inner {
            max-width: calc(50% - 10px); /* Half of parent minus gap */
            //background-color: #ffffff; /* Optional: for visibility */
            padding: 30px;
            //box-sizing: border-box;
        }

        /* Optional: Make it responsive for smaller screens */
        @media (max-width: 767px) {
            .season-section2 {
                flex-direction: column;
            }

            .season-section2-inner {
                max-width: 100%;
                margin-bottom: 20px;
            }

            .season-section2-inner:last-child {
                margin-bottom: 0;
            }
        }
        
        
        
        
/* BOX Score (BS) 2020 version */

#BS_whole_wrap {
    width: 290px; 
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 0px;
    padding-left: 0px;
    font-family: Arial, Helvetica, sans-serif;
    color: #FFF8DC;
    display: inline-block
    }
    

    #BS_header {
        float:left;
        border-radius: 7px 7px 0px 0px;
        //font-size: 12px;
    }
                        #BS_header_score {
                            float:left;
                            width:280px;
                            height:45px;
                            border-radius: 7px 7px 0px 0px;
                            background-color: #2467ad;
                            //background-color: #552586;
                            font-size: 18px;
                            text-align: center;
                            padding-left: 5px;
                            padding-top: 10px;
                        }
    

                        #BS_header_gamestats {
                            float:left;
                            margin-top: 25px;
                            margin-left:-45px;
                            width:201px;
                            height:15px;
                            border-radius: 7px 7px 0px 0px;
                            background-color: #1a1f14;
                            font-size: 10px;
                            color:gray;
                            padding-left: 8px;
                        }                          
                        
#BS_stats {
    float: left;
    width: 265px;
    border-radius: 0px 0px 7px 7px;
    margin-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 0px;
    background-image: linear-gradient(#2467ad, #8c8f89);
    font-family: Arial, Helvetica, sans-serif;
    color: #FFF8DC;
    //text-align: center;
    //background-color: rgba(0,0,0,0.15);
    //-moz-box-shadow:    inset 0 0 10px #000000;
    //-webkit-box-shadow: inset 0 0 10px #000000;
    //box-shadow:         inset 0 0 10px #000000;
    }

                        #BS_logo_wrap {
                            float:left;
                            margin-top:5px;
                            padding-left: 10px;
                        }   

                            #BS_logo {
                                margin-bottom: 0px;
                                margin-right: 5px;
                            }

                        #BS_qtr_scr_wrap {
                            float:left;
                            width:92px;
                            height: 55px;
                            background-color: #746d66;
                            text-align:center;
                            font-size: 14px;
                            margin-top:9px;
                        }

                            #BS_qtr_scr {
                                float:left;
                                width: 22px;
                                height: 22px;  
                                padding-top:5px;
                            }

                        #BS_fin_scr_wrap {
                            float:left;
                            width: 35px;
                            height: 65px;
                            margin-top:2px;
                            background-color: #463d33;
                                border-width:3px;  
                                border-style:ridge;
                            border-radius: 5px 5px 5px 5px;
                        }

                            #BS_fin_scr {
                                float:left;
                                width: 35px;
                                height: 30px;  
                                padding-top:1px;
                                color: #fff;
                                text-align:center;
                                font-size: 22px;
                            }   
                            
                        #BS_teamstats_wrap {
                            float:left;
                            height: 69px;
                            
                              background: 
                                linear-gradient(
                                  rgba(26,31,20, 0.3), 
                                  rgba(26,31,20, 0.3)
                                )    
                                , url("../images/bs.jpg");
                            
                            box-shadow: 0 0 8px 2px #1a1f14 inset;
                            margin-top:2px;
                            margin-left:0px;
                            border-radius: 3px;
                            //border:dotted 1px gray;
                        }
                        
                                        #BS_teamstats_innerwrap {
                                            clear:both;
                                            //border:solid 1px red;
                                        }

                                                #BS_teamstats {
                                                    float:left;
                                                    padding-left:3px;
                                                    padding-right:3px;
                                                    color: black;
                                                    text-align:center;
                                                    font-size: 11px;
                                                    font-family: 'Roboto', Arial, Helvetica, sans-serif;
                                                    font-weight: 100;                                                    
                                                    line-height: 90%;
                                                    text-shadow: 2px 2px 5px black;
                                                    margin-top:1px;
                                                    //border:solid 1px yellow;
                                                } 
                                                
                                                .BS_teamstats_total {
                                                    width:40px;
                                                    height: 25px;
                                                    padding-top:8px;
                                                    //border-right:1px dotted gray;
                                                }
                                                
                                                .BS_teamstats_passing {
                                                    width:83px;
                                                    height: 27px;
                                                    padding-top:6px; 
                                                    //border-right:1px dotted gray;
                                                }
                                                
                                                .BS_teamstats_rushing {
                                                    width:68px;
                                                    height: 27px;
                                                    padding-top:6px;                                                    
                                                }                                                
                            
                        #BS_turnovers_wrap {
                            float:right;
                            //width: 80px;
                            height: 68px;
                            margin-left:5px;
                            margin-top:4px;
                            //padding-left: 5px;
                            //padding-right: 5px;
                            border:solid 1px black;
                        }
                                        #BS_turnovers_innerwrap {
                                            float:left;
                                            margin-top:2px;
                                            //border:solid 1px red;
                                        }
                        
                                            #BS_turnovers {
                                                //float:left;
                                                width: 25px;
                                                height: 27px;  
                                                padding-top:0px;
                                                text-align:center;
                                                text-shadow: 2px 2px 4px #000000;
                                                font-family:Comic Sans MS, cursive, sans-serif;
                                                //border:solid 1px gray;
                                            }   
                                            
                                            .BS_turnovers_bottomborder {
                                                border-bottom:2px solid black;
                                            }
                                            
                                            #BS_turnovers_label {
                                                float:left;
                                                width: 14px;
                                                height: 56px;  
                                                padding-top:2px;
                                                padding-left: 2px;
                                                padding-right: 2px;
                                                text-align:center;
                                                writing-mode: vertical-lr;
                                                text-orientation: upright;
                                                font-size: 9px;
                                                letter-spacing: -1px;
                                                //border:solid 1px yellow;
                                                background-color:black;
                                                color:gray;
                                            }    
                                            
                                            #BS_turnovers_label2 {
                                                clear: both;
                                                width: 31px;
                                                padding-left: 12px;
                                                font-size: 8px;
                                                letter-spacing: 3px;
                                                //border:solid 1px orange;
                                                background-color:black;
                                                color:gray;
                                            } 
                                            
                        #BS_recap_wrap {
                            float:none;
                            display:block;
                            width: 120px;
                            height: 68px;
                            //border: 1px solid;
                            margin: 2px auto 0 auto;
                            padding-left: 2px;
                            padding-right: 2px;
                            padding-top: 2px;
                            border-radius: 3px;
                            text-align:center;
                        }   
                        
                                            #BS_recap {
                                                background-color:rgba(255, 255, 255, 0.5);
                                                border-radius: 3px;
                                            } 
                                            
                                            #BS_recap2 {
                                                margin-top:2px;
                                                //background-color:rgba(255, 255, 255, 0.5);
                                                //border-radius: 3px;
                                            }    
                                            
                                            #BS_recap3 {
                                                margin-top:20px;
                                                font-size:10px;
                                                color:black;
                                                background-color:rgba(255, 255, 255, 0.5);
                                                border-radius: 3px;
                                            }                                             
                                            
                        #BS_comment_wrap {
                            font-family:Comic Sans MS, cursive, sans-serif;
                            font-weight: 100;  
                            float:left;
                            width: 118px;
                            height: 70px;
                            //border: 1px solid;
                            margin-left:5px;
                            margin-top:0px;
                            padding-left: 1px;
                            padding-right: 1px;
                            border-radius: 5px;
                        }  
                        
                        #BS_comment_wrap_rotated {
                            font-family:Comic Sans MS, cursive, sans-serif;
                            font-weight: 100;  
                            float:left;
                            width: 118px;
                            height: 65px;
                            //border: 1px solid;
                            margin-left:5px;
                            margin-top:0px;
                            padding-left: 1px;
                            padding-right: 1px;
                            border-radius: 5px;
                        }                        
                        
                        #BS_comment {
                            padding-top:25px;
                            text-align:center;
                            font-size:12px;
                        }          
                        
/* stats tables */
table_stats {
  border-collapse: collapse; /* Ensures borders don't double up */
}

table_stats, td {
  border: 1px dotted #555; /* Light gray dotted border */
}

a {
    text-decoration: none;
}

/* index.php box score section */
.bs-sections {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bs-section {
    max-width: 300px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Spacing between individual player entries in Player Stats */
#BS_player_stats_wrap ul li {
    margin-bottom: 6px; /* add a little space so players don't run together */
}

/* Optional: tighten inner two-line entries slightly but keep readability */
#BS_player_stats_wrap ul li div {
    line-height: 1.2;
}


/* Highlight category headers in Player Stats so they stand out */
#BS_player_stats_wrap .ps-grid > div > div:first-child {
    color: #ffd166; /* warm accent for visibility */
    font-weight: 700;
}

/* Segmented control used for Program selection on Add Player */
.segmented-control {
    display: inline-flex;
    gap: 8px;
    background: #2c2c2c;
    padding: 4px;
    border-radius: 8px;
}

.segmented-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* padding is applied to inner span to allow :checked + span styling */
    cursor: pointer;
    user-select: none;
}

.segmented-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented-option span {
    pointer-events: none;
    padding: 8px 14px;
    border-radius: 6px;
    background: #3a3a3a;
    color: #f0f0f0;
    border: 1px solid #4a4a4a;
}

.segmented-option input[type="radio"]:checked + span {
    background: #608b58; /* league accent color (matches .small-button) */
    border-color: #608b58;
    color: #ffffff;
}

.segmented-option:hover {
    filter: brightness(1.05);
}

/* Layout tweaks to center Program label + buttons together on Add Player */
.program-row {
    justify-content: center; /* center the whole Program group within the row */
}

.program-group {
    display: inline-flex; /* keep label and segmented control together */
    align-items: center;
    gap: 12px; /* small space between label and buttons */
}

.program-label {
    margin: 0;
    flex: 0 0 auto; /* prevent global .form-row label flex:1 from stretching this label */
    display: inline-block; /* avoid flex behavior from .form-row label rule */
}
