@font-face {
    font-family: 'Lato';
    src: url('../lato-v24-latin-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html,
body,
* {
    font-family: 'Lato', Arial, sans-serif !important;
}

html {
    scroll-behavior: auto;
}


body {
    margin: 0;
    font-family: 'Lato', Arial, sans-serif !important;
    display: flex;
    height: 100vh;
    overflow-anchor: none;

}

.sidebar {
    width: 220px;
    background-color: #131416;
    color: white;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
}

.tab {
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab:hover,
.tab.active {
    background-color: #2a2d31;
}

.content {
    flex-grow: 1;
    padding: 30px;
    background-color: #1C1E21;
    color: white;
    overflow-y: auto;
    position: relative;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.individual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 25px;
}

.individual-header h1 {
    margin: 0;
    flex-shrink: 0;
}

#teamSearchPlacement {
    display: flex;
    margin-left: auto;
    gap: 10px;
    align-items: center;
}

#teamSearch,
.search-bar input {
    padding: 8px;
    width: 200px;
    border-radius: 4px;
    border: 2px solid transparent;
    background-color: #1C1E21;
    color: #fff;
    text-align: right;
    font-family: 'Lato';
    font-size: large;
    transition: border-color 0.2s ease;
}

#teamSearch:focus,
.search-bar input:focus {
    outline: none;
    border-color: #1e90ff;
}

#search,
.search-bar button,
#csvUpload button,
#comparisonSearch,
.clear-btn {
    padding: 8px 12px;
    background-color: #1e90ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Lato';
    font-size: large;
}

#search:hover,
.search-bar button:hover,
#csvUpload button:hover {
    background-color: #1777d6;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

.comparison-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    margin-top: 20px;
    gap: 0;
}

.comparison-halves-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.comparison-half {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
    align-items: center;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    width: 160px;
}

#flaggedMatchesPlacement {
    display: flex;
    margin-top: 15px;
    margin-left: 4%;
    gap: 20px;
}

#flaggedMatchesContainer {
    width: 25%;
    height: 250px;
    background-color: #1C1E21;
    border-radius: 12px;
    box-shadow: #131416 0px 0px 20px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

#flaggedMatches {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    color: white;
    font-family: 'Lato';
    font-size: 16px;
    padding: 5px;
}

#csvUpload input[type="file"] {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #888888;
    border-radius: 4px;
    background-color: #2a2d31;
    color: white;
    font-family: 'Lato';
    font-size: medium;
    cursor: pointer;
}

#comparisionAutoCoral1,
#comparisionAutoCoral2,
#comparisonResultAlgae1,
#comparisonResultAlgae2,
#comparisonResultTeleCoral1,
#comparisonResultTeleCoral2,
#comparisonResultTeleAlgae1,
#comparisonResultTeleAlgae2,
#comparisonResultEndGame1,
#comparisonResultEndGame2,
#autoCoralContainer,
#teleCoralContainer,
#autoAlgaeContainer,
#teleAlgaeContainer,
#endGameContainer,
#scouterCommentsContainer1,
#scouterCommentsContainer2,
#scouterCommentsContainer,
#reliabilityChartContainer {
    position: relative;
    width: 100%;
    background-color: #1C1E21;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: #131416 0px 0px 20px;
    height: auto;
    overflow: hidden;

}

#scouterCommentsContainer {
    position: relative;
    width: 100%;
    background-color: #1C1E21;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: #131416 0px 0px 20px;
    min-height: 375px;
    overflow: hidden;
}


#comparisionAutoCoral1,
#comparisionAutoCoral2,
#comparisonResultAlgae1,
#comparisonResultAlgae2,
#comparisonResultTeleCoral1,
#comparisonResultTeleCoral2,
#comparisonResultTeleAlgae1,
#comparisonResultTeleAlgae2,
#comparisonResultEndGame1,
#comparisonResultEndGame2,
#autoCoral,
#teleCoral,
#autoAlgae,
#teleAlgae,
#endGame,
#scouterComments {
    width: 100% !important;
    height: 100% !important;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

#comparisonEPATrend1,
#comparisonEPATrend2 {
    position: relative;
    width: 100%;
    background-color: #1C1E21;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: #131416 0px 0px 20px;
    max-height: 400px;
    overflow: hidden;
}

#epaTrendTeam1,
#epaTrendTeam2 {
    width: 100% !important;
    height: 100% !important;
    max-height: 300px;
    object-fit: contain;
}


#scouterComments {
    width: 100% !important;
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #1C1E21;
    color: white;
    border-radius: 4px;
}

.chart-title {
    font-size: 24px;
    color: white;
    margin-bottom: 25px;
    font-family: 'Lato';
    text-align: left;
}

#startingPositionFilter,
#algaeTypeFilter {
    padding: 8px;
    border-radius: 4px;
    background-color: #1C1E21;
    color: white;
    border: 1px solid #888888;
    font-family: 'Lato';
    font-size: large;
    cursor: pointer;
}

#startingPositionFilter:focus,
#algaeTypeFilter:focus {
    outline: none;
    border-color: #1e90ff;
    background-color: #2a2d31;
}

#flaggedMatchesContainer .chart-title {
    width: 100%;
    margin: 0;
    padding-left: 5px;
}

.coralCycleChartsContainer h3 {
    margin: 0;

}

.comparison-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
    gap: 20px;
}

.comparison-half {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
    align-items: center;
}

.dropdown {
    padding: 8px;
    border-radius: 4px;
    background-color: #1C1E21;
    color: white;
    border: 1px solid #888888;
    font-family: 'Lato';
    font-size: large;
    cursor: pointer;
}

.dropdown:focus {
    outline: none;
    border-color: #1e90ff;
    background-color: #2a2d31;
}

#overviewStackedChartContainer,
#coralCyclesChartContainer,
#algaeCyclesChartContainer {
    width: 100%;
    background-color: #1C1E21;
    border-radius: 12px;
    box-shadow: #131416 0px 0px 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 500px;
    overflow: hidden;
}

#overviewStackedChartTitle,
#coralCyclesChartTitle,
#algaeCyclesChartTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}


#overviewStackedChart,
#coralCyclesChart,
#algaeCyclesChart {
    width: 100% !important;
    height: auto !important;
    display: block;
    max-height: 100%;
}

.filter-teams-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.filters-and-results {
    display: flex;
    flex-direction: column;
    width: 75%;
}

#filterCheckboxesContainer {
    width: 100%;
    background-color: #1C1E21;
    border-radius: 12px;
    box-shadow: #131416 0px 0px 20px;
    padding: 20px;
}

.filter-row-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: white;
    font-family: 'Lato';
    width: 100%;
}

#rankedTeamsContainer {
    width: 100%;
    margin-top: 20px;
}


.filter-group-inline {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.filter-group-inline h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-align: center;
    border-bottom: 2px solid #1e90ff;
    padding-bottom: 6px;
    width: 100%;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: white;
    font-family: 'Lato';
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #888;
    border-radius: 4px;
    background-color: #1C1E21;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s, border-color 0.2s;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: #1e90ff;
    border-color: #1e90ff;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: "✓";
    color: white;
    font-size: 12px;
    position: absolute;
    top: -2px;
    left: 3px;
    font-weight: bold;
}

.checkbox-label:hover input[type="checkbox"] {
    border-color: #1e90ff;
}

#statsContainer {
    width: 69%;
    height: 250px;
    background-color: #1C1E21;
    border-radius: 12px;
    box-shadow: #131416 0px 0px 20px;
    padding: 10px;
    display: flex;
}

.statsContainerText {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

#statsContainerText h3 {
    color: white;
    margin: 0 0 15px 0;
    text-align: center;
}

.statsText {
    color: white;
    font-family: 'Lato';
    font-size: 16px;
}

.individualMatchNumbers {
    margin-bottom: 20px;
    font-size: 16px;
    color: white;
}

#individualViewChartsContainer {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

#coralChartsContainer,
#algaeChartsContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 45%;
}

.autoCharts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#scoringContainers {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}


#scouterCommentsContainer1,
#scouterCommentsContainer2 {
    padding: 10px;
    background-color: #1C1E21;
    color: white;
    border-radius: 4px;
    min-height: 150px;

}

#teamStatsComparison1,
#teamStatsComparison2 {
    width: 100%;
    background-color: #1C1E21;
    border-radius: 12px;
    box-shadow: #131416 0px 0px 20px;
    padding: 20px;
    margin-top: 20px;
}

.teamStatsFormatting {
    display: flex;
    justify-content: space-between;
}

.comparisonTele {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.containerStyling {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%
}

.teamStatsFormatting {
    flex: 1;
    padding: 10px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0;
}

.team-box {
    background: #1C1E21;
    color: #fff;
    margin: 5px;
    padding: 10px;
    border-radius: 8px;
    flex: 1 0 18%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

#predict-button {
    background-color: #1e90ff;
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.blue-button {
    background-color: #1e90ff;
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    transition: background-color 0.3s ease;
}

.blue-button:hover,
#predict-button:hover {
    background-color: #0056b3;
}

.filter-button-container {
    margin-top: 12px;
    padding-left: 10px;
}

.delete-btn {
    background-color: #ff1e1e !important;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    margin-left: 10px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: background-color 0.2s;
}

.delete-btn:hover {
    background-color: #e04b4b;
}

.rescout-section {
    width: 100%;
    background-color: #1C1E21;
    border-radius: 12px;
    box-shadow: #131416 0px 0px 20px;
    padding: 20px;
    margin-top: 10px;
}

.rescout-section h3 {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 15px 0;
    text-align: left;
}

.rescout-table-container {
    width: 100%;
    overflow-x: auto;
}

#rescoutTable {
    width: 100%;
    color: white;
    border-collapse: collapse;
}

#rescoutTable th {
    font-weight: bold;
    font-size: 18px;
    color: white;
    padding: 12px 0;
    background-color: #1C1E21;
    text-align: left;
    position: sticky;
}

#rescoutTable td {
    padding: 12px 0;
    text-align: left;
    border-bottom: none;
    background-color: transparent;
}


#rescoutTable tr:hover {
    background-color: #2a2d31;
}

.no-rescout {
    text-align: center !important;
    padding: 20px;
    color: #888;
    font-style: italic;
}

#hideCoralMismatch {
    display: none;
}

#hideCoralMismatchLabel {
    font-size: 0.8em;
    color: gray;
    font-style: italic;
    margin-top: 5px;
    margin-left: auto;
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

#hideCoralMismatchLabel::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid gray;
    border-radius: 3px;
    background-color: transparent;
    transition: background-color 0.2s, border-color 0.2s;
}

#hideCoralMismatch:checked+#hideCoralMismatchLabel::before {
    background-color: #1e90ff;
    border-color: #1e90ff;
    content: "✓";
    color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;

}


#addHideTeamButton,
#toggleHiddenTeamsButton,
#resetHideTeamButton {
    padding: 8px 12px;
    background-color: #1e90ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Lato';
    font-size: medium;
}

#verifyWithTBABtn,
#updateClimbsBtn,
#tbaEventKey {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

#reliabilityChartsArea {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

#reliabilityChartContainer {
    width: 92%;
    margin: 30px auto 20px auto;
    background-color: #1C1E21;
    padding: 20px;
    border-radius: 12px;
    box-shadow: #131416 0px 0px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#scouterCommentsContainer1,
#scouterCommentsContainer2 {
    min-height: 375px;
    height: 100%;
    padding: 20px;
    background-color: #1C1E21;
    border-radius: 12px;
    box-shadow: #131416 0px 0px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

#scouterComments1,
#scouterComments2 {
    width: 100% !important;
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #1C1E21;
    color: white;
    border-radius: 4px;
    margin-top: 10px;
}

.header-with-dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
    min-height: 40px;
}

.overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    gap: 20px;
}

.overview-search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}


#overviewSearch {
    padding: 8px;
    width: 200px;
    border-radius: 4px;
    border: 2px solid transparent;
    background-color: #1C1E21;
    color: white;
    text-align: right;
    font-family: 'Lato';
    font-size: large;
    transition: border-color 0.2s ease;
}

#overviewSearch:focus {
    outline: none;
    border-color: #1e90ff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1C1E21;
}

::-webkit-scrollbar-thumb {
    background-color: #131416;
    border-radius: 6px;
    border: 2px solid #1C1E21;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #66c2ff;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #131416 #1C1E21;
}

.team-section-divider {
    border: 1px solid #444;
    margin: 40px 0;
}

.team-section-label {
    font-size: 20px;
    color: white;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.team-input {
    flex: 1;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 4px;
    outline: none;
    color: white;
    font-family: 'Lato';
    font-size: medium;
    background-color: #1C1E21;
    border-color: #444;
}

.alliance-prediction {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    flex: 1;
    max-width: 300px;
    background-color: #2a2d31;
}

.alliance-prediction h3 {
    margin-top: 0;
    color: white;
}

.alliance-prediction p {
    margin: 5px 0;
    color: #ccc;
}

.epa-total {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px !important;
}

.winning-alliance {
    background-color: #1C1E21;
    border: 2px solid #1e90ff;
}

.winning-alliance .epa-total {
    color: #1e90ff;
}

.vs-divider {
    color: white;
    font-size: 20px;
    font-weight: bold;
    align-self: center;
}

#matchStatsTable td,
#matchStatsTable th {
    padding: 8px;
    border: 1px solid #2a2d31;
    text-align: center;
}

#matchStatsTable tr:nth-child(even) {
    background-color: #2a2d31;
}

.team-input.red-alliance:focus {
    border-color: #ff5c5c;
}

.team-input.blue-alliance:focus {
    border-color: #3EDBF0;
}

.match-predictor-container {
    max-width: 100%;
    overflow-x: auto;
}

.match-stats-table {
    width: 100%;
    border-collapse: collapse;
}

#matchPredictor {
    flex-direction: column;
    gap: 20px;
}

#matchPredictionResult {
    min-height: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #1C1E21;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

#matchStatsTableContainer {
    max-height: none;
    overflow-y: visible;
    transition: none;
}

#matchStatsTable {
    width: 100%;
    border-collapse: collapse;
}

.match-stats-table th,
.match-stats-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #2a2d31;
}

.match-stats-table th {
    background-color: #1C1E21;
    color: white;
    font-weight: bold;
}

.red-header {
    background-color: #ff5c5c30 !important;
}

.blue-header {
    background-color: #3EDBF030 !important;
}

.section-header {
    background-color: #2a2d31;
    color: white;
    font-weight: bold;
}

#statsToggleArrow {
    transition: transform 0.3s ease;
}

#matchStatsTableContainer {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

#matchPredictionResult {
    min-height: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #1C1E21;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    height: 120px;
}

.prediction-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#matchStatsTableContainer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#matchStatsTableContainer.expanded,
#matchSummaryTableContainer.expanded {
    max-height: none;
}

#matchStatsTable {
    width: 100%;
    margin-top: 10px;
}

#matchSummaryTableContainer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

#matchSummaryToggleArrow {
    transition: transform 0.5s ease;
}

#global-tooltip {
    position: fixed;
    z-index: 99999;
    background: #23242a;
    color: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 15px;
    min-width: 420px;
    max-width: 700px;
    width: auto;
    display: none;
    pointer-events: none;
    white-space: normal;
    transition: box-shadow 0.2s;
    overflow-x: auto;
}

.custom-tooltip-content {
    display: flex;
    gap: 32px;
    width: 100%;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.tooltip-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
    white-space: nowrap;
}

.tooltip-row {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.tooltip-header {
    font-weight: bold;
    color: #3EDBF0;
    margin-bottom: 6px;
    font-size: 15px;
    letter-spacing: 0.5px;
}

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

.modal-content {
    background-color: #1C1E21;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #3EDBF0;
    width: 90%;
    max-width: 1200px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: white;
}

.alliance-view-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.alliance-team-view {
    background-color: #2a2d31;
    padding: 15px;
    border-radius: 8px;
    color: white;
}

.alliance-team-view h3 {
    margin-top: 0;
    text-align: center;
}

@media (max-width: 1000px) {
    .alliance-view-grid {
        grid-template-columns: 1fr;
    }
}

#allianceComparisonPopup {
    transition: opacity 0.3s ease;
}

#allianceComparisonContent>div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#allianceComparisonContent>div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1000px) {
    #allianceComparisonContent {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 700px) {
    #allianceComparisonContent {
        grid-template-columns: 1fr !important;
    }
}

#scoutingCardsContainer .card {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: white;
}

#scoutingCardsContainer .card h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #61dafb;
}

#scoutingCardsContainer .card>div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

#scoutingCardsContainer .card>div>div {
    flex: 1;
}

#scoutingCardsContainer .card h4 {
    margin-bottom: 4px;
    font-size: 14px;
    color: #ccc;
}

#scoutingCardsContainer .scout-tasks {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #bbb;
}

.match-card {
    transition: transform 0.2s ease;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.match-card h4 {
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

.match-block {
    background-color: #2a2d31;
    border-radius: 8px;
    padding: 12px;
    min-width: 100px;
    text-align: center;
    transition: transform 0.2s ease;
}

.match-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.match-block strong {
    display: block;
    margin-bottom: 8px;
    color: #3EDBF0;
}

#targetedScoutingContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
}

#reliabilityChartOptions label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

#reliabilityChartOptions input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #888;
    border-radius: 4px;
    background-color: #1C1E21;
    position: absolute;
    left: 0;
    top: 2px;
    transition: background 0.2s, border-color 0.2s;
}

#reliabilityChartOptions input[type="checkbox"]:not(:checked) {
    background-color: #1C1E21;
    border-color: #888;
}

#reliabilityChartOptions input[type="checkbox"]:checked::after {
    content: "✓";
    color: #fff;
    font-size: 14px;
    position: absolute;
    left: 2px;
    top: -1px;
    font-weight: bold;
    pointer-events: none;
}

#reliabilityTotalPoints:checked {
    background-color: #3ED098 !important;
    border-color: #3ED098 !important;
}

#reliabilityAutoPoints:checked {
    background-color: #51E7CF !important;
    border-color: #51E7CF !important;
}

#reliabilityTelePoints:checked {
    background-color: #3ecdd0 !important;
    border-color: #3ecdd0 !important;
}

#reliabilityTotalCycles:checked {
    background-color: #cf8ffc !important;
    border-color: #cf8ffc !important;
}

#reliabilityTotalCoralCycles:checked {
    background-color: #ff83fa !important;
    border-color: #ff83fa !important;
}

#reliabilityL4Cycles:checked {
    background-color: #ff8bfc !important;
    border-color: #ff8bfc !important;
}

#reliabilityL3Cycles:checked {
    background-color: #ed0cef !important;
    border-color: #ed0cef !important;
}

#reliabilityL2Cycles:checked {
    background-color: #BF02ff !important;
    border-color: #BF02ff !important;
}

#reliabilityL1Cycles:checked {
    background-color: #8105d8 !important;
    border-color: #8105d8 !important;
}

#reliabilityTotalAlgaeCycles:checked {
    background-color: #006fff !important;
    border-color: #006fff !important;
}

#reliabilityBargeCycles:checked {
    background-color: #3498db !important;
    border-color: #3498db !important;
}

#reliabilityProcessorCycles:checked {
    background-color: #14c7de !important;
    border-color: #14c7de !important;
}

#reliabilityChartOptions input[type="checkbox"]:hover {
    border-color: #fff;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-family: 'Lato';
    color: #ccc;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 28px;
    height: 28px;
    margin-top: 10px;
}

.toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 20px;
    background-color: #1C1E21;
    border: 2px solid #888;
    border-radius: 12px;
    transition: background-color 0.2s, border-color 0.2s;
}

.toggle-switch .slider:before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch input[type="checkbox"]:checked+.slider {
    background-color: #1e90ff;
    border-color: #1e90ff;
}

.toggle-switch input[type="checkbox"]:checked+.slider:before {
    transform: translate(16px, -50%);
}

.toggle-switch .toggle-label-text {
    margin-left: 15px;
    font-style: normal;
}

.toggle-container {
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3B064D;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #1e90ff;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.reliability-chart-card {
    width: 100%;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reliability-chart-card canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

#reliabilityComparisonChartArea {
    position: relative;
    width: 100%;
    min-height: 400px;
}

#reliabilityComparisonChartArea canvas {
    width: 100% !important;
    height: 100% !important;
}

#comparisonReliabilityContainer {
    margin-top: 30px;
    margin-bottom: 20px;
}

#reliabilityChartOptionsComparison {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-label-comparison {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #ccc;
    font-family: 'Lato';
    cursor: pointer;
    padding: 4px 8px;
    background-color: #2a2d31;
    border-radius: 4px;
    white-space: nowrap;
}


.metrics-row {
    padding-top: 1rem;
}

.metrics-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-container {
    display: flex;
    justify-content: space-between;
    background: #f8f8f8;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-weight: 500;
    color: #333;
}

.metric-value {
    font-weight: bold;
    color: #0078d4;
}

.boxplot-container {
    width: 100%;
    height: 40px;
    position: relative;
    background-color: #f0f0f0;
    margin-top: 5px;
}

.boxplot {
    position: absolute;
    height: 20px;
    top: 10px;
    background-color: #4a90e2;
}

.boxplot-median {
    position: absolute;
    height: 20px;
    width: 2px;
    background-color: #fff;
    top: 10px;
}

.metric-chart-container {
    width: 100%;
    background-color: #1C1E21;
    border-radius: 12px;
    box-shadow: #131416 0px 0px 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    max-height: none;
    height: auto;
    overflow: visible;
    box-sizing: border-box;
    transition: none;
}

.metric-chart-container .chart-title {
    text-align: left !important;
    width: 100%;
    margin-left: 0;
}

#comparisonMetricChartOptions .checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: white;
    font-family: 'Lato';
    cursor: pointer;
    margin-right: 12px;
    margin-bottom: 6px;
}

#comparisonMetricChartOptions input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #888;
    border-radius: 4px;
    background-color: #1C1E21;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s, border-color 0.2s;
}

#comparisonMetricChartOptions input[type="checkbox"]:checked {
    background-color: #1e90ff;
    border-color: #1e90ff;
}

#comparisonMetricChartOptions input[type="checkbox"]:checked::after {
    content: "✓";
    color: white;
    font-size: 12px;
    position: absolute;
    top: -2px;
    left: 3px;
    font-weight: bold;
}

#comparisonMetricChartOptions .checkbox-label:hover input[type="checkbox"] {
    border-color: #1e90ff;
}


#allianceCompareTable tbody tr:hover td,
#allianceCompareTable tbody tr:hover th {
    opacity: 0.7;
    transition: opacity 0.15s;
}

.ranking-tab {
    padding: 40px 30px;
    width: 100%;
    box-sizing: border-box;
}

.ranking-header {
    margin-bottom: 20px;
}

.ranking-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-family: 'Lato', Arial, sans-serif;
    text-shadow: 0 2px 8px #131416;
    color: white;
}

.ranking-table-container {
    max-height: 800px;
    overflow-x: auto;
    overflow-y: auto;
    background: #181a1b;
    border-radius: 14px;
    box-shadow: 0 2px 16px #131416;
    padding: 0;
    margin: 0 auto;
    width: calc(100% - 60px);
    position: relative;
    margin-top:20px;
}

#rankingTable {
    width: auto;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: white;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 16px;
    background: transparent;
    border-radius: 12px;
}

#rankingTable thead th {
    position: sticky;
    top: 0;
    background-color: #23242a;
    z-index: 100;
    padding: 12px 18px;
    border: none;
    border-right: 1px solid #444;
    border-bottom: 2px solid #1e90ff;
    box-shadow: 0 2px 8px #131416;
}

#rankingTable thead th:last-child {
    border-right: none;
}

#rankingTable td {
    padding: 12px 18px;
    border-bottom: 1px solid #222;
    text-align: center;
    white-space: nowrap;
    border-right: 1px solid #222;
}

#rankingTable th:first-child,
#rankingTable td:first-child {
    position: sticky;
    left: 0;
    z-index: 1000;
    background-color: #23242a;
    border-right: 1px solid #333;
    width: 60px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

#rankingTable th:nth-child(2),
#rankingTable td:nth-child(2) {
    position: sticky;
    left: 60px;
    z-index: 1000;
    background-color: #23242a;
    border-right: 1px solid #333;
    width: 120px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

#rankingTable thead th {
    position: sticky;
    top: 0;
    z-index: 1001;
    background-color: #23242a;
    border-bottom: 2px solid #1e90ff;
    box-shadow: 0 2px 8px #131416;
}

#rankingTable thead th:first-child {
    z-index: 1002 !important;
}

#rankingTable thead th:nth-child(2) {
    z-index: 1002 !important;
}

#rankingTable tr:nth-child(even) td:first-child,
#rankingTable tr:nth-child(even) td:nth-child(2) {
    background-color: #202225 !important;
}

#rankingTable tr:nth-child(odd) td:first-child,
#rankingTable tr:nth-child(odd) td:nth-child(2) {
    background-color: #181a1b !important;
}

#rankingTable tbody tr.team-226 td:first-child,
#rankingTable tbody tr.team-226 td:nth-child(2) {
    z-index: 1003 !important;
}
.ranking-filter-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #23242a;
  border-radius: 12px;
  box-shadow: 0 2px 16px #131416;
  padding: 18px 24px;
  margin-bottom: 18px;
  width: 100%;
}

#rankingFilterForm {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

#rankingFilterForm .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: white;
  font-family: 'Lato';
  cursor: pointer;
  margin-bottom: 0;
}

#rankingFilterForm input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #888;
  border-radius: 4px;
  background-color: #1C1E21;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}

#rankingFilterForm input[type="checkbox"]:checked {
  background-color: #1e90ff;
  border-color: #1e90ff;
}

#rankingFilterForm input[type="checkbox"]:checked::after {
  content: "✓";
  color: white;
  font-size: 14px;
  position: absolute;
  top: -2px;
  left: 3px;
  font-weight: bold;
}

#rankingFilterForm input[type="checkbox"]:hover {
  border-color: #1e90ff;
}

.numpad-indicator {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 84px;
  padding: 10px 14px;
  background: #23242a;
  color: #fff;
  border-radius: 10px;
  border: 1px solid rgba(30,144,255,0.6);
  box-shadow:
    0 0 0 3px rgba(30,144,255,0.08),
    0 8px 32px rgba(30,144,255,0.12);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
  transform-origin: center;
  opacity: 0;
}

.numpad-indicator.show {
  display: flex;
  opacity: 1;
  transform: scale(1.03);
}

.numpad-indicator.small {
  font-size: 16px;
  min-width: 60px;
  padding: 8px 10px;
}

#numpadBufferBox {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 100px;
  max-width: 320px;
  padding: 10px 14px;
  background: #23242a;
  color: #fff;
  border-radius: 10px;
  border: 1px solid rgba(30,144,255,0.6);
  box-shadow:
    0 0 0 3px rgba(30,144,255,0.08),
    0 12px 40px rgba(30,144,255,0.14); 
  font-family: 'Lato', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#numpadBufferBox.small {
  font-size: 14px;
  min-width: 72px;
  padding: 8px 10px;
}

#numpadBufferBox.empty {
  opacity: 0.55;
  font-weight: 600;
  color: #9aa7b3;
}