/* Base styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #343a40;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

h1, h2, h3, h4, h5 {
    font-weight: 500;
    color: #212529;
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    position: relative;
}

/* Header styles */
.main-header {
    background-image: url('/static/images/nfl-background.jpg');
    background-size: cover;
    background-position: bottom center;
    color: white;
    padding: 35px 0;  /* Increased from 25px */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.header-link {
    text-decoration: none;
    color: white;
    display: inline-block;
}

.header-link h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.5rem;  /* Increased from 3.5rem */
    letter-spacing: 0.2em;  /* Increased from 0.15em */
    margin: 0;
    padding: 0;
    text-shadow: 
        3px 3px 0 rgba(0,0,0,0.2),  /* Increased shadow size */
        -3px 3px 0 rgba(0,0,0,0.2),
        3px -3px 0 rgba(0,0,0,0.2),
        -3px -3px 0 rgba(0,0,0,0.2);
    background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: perspective(500px) rotateX(10deg);
    transform-origin: center;
}

.header-link:hover h1 {
    transform: perspective(500px) rotateX(5deg);
    transition: transform 0.3s ease;
}

/* Adjust the dark overlay to be slightly more transparent */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.main-header p {
    font-size: 1.2em;
    margin-top: 10px;
}

/* Tab styles */
.tab-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.tab-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    border-bottom: 2px solid #34495e;
}

.tab-links li {
    margin-right: 15px;
}

.tab-links li:last-child {
    margin-left: auto;
}

.tab-links li a {
    text-decoration: none;
    color: #34495e;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    border-radius: 5px 5px 0 0;
    transition: background-color 0.3s ease;
}

.tab-links li a.active {
    background-color: #34495e;
    color: white;
}

.tab-content .tab {
    display: none;
}

.tab-content .tab.active {
    display: block;
}

/* Form styles */
#simulate-form {
    margin: 5px 0;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

#simulate-form label {
    font-weight: bold;
    color: #2c3e50;
}

#simulate-form select {
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1em;
    min-width: 250px;
}

/* Button styles */
button {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.save-settings-button {
    background-color: #2ecc71;
    color: white;
    border: none;
}

.save-settings-button:hover {
    background-color: #27ae60;
}

/* Team and Conference styles */
.team-logo {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 5px;
}

.AFC, .AFC-division {
    color: #e74c3c;
}

.NFC, .NFC-division {
    color: #3498db;
}

/* Settings styles */
.settings-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.setting-group input,
.setting-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1em;
}

.setting-help {
    display: block;
    margin-top: 4px;
    color: #6c757d;
    font-size: 0.9em;
}

.settings-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.settings-saved-indicator,
.reload-success-indicator {
    display: none;
    color: #2ecc71;
    margin-left: 10px;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
}

/* Progress and Loading styles */
.main-progress {
    width: 100%;
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 4px;
    margin-bottom: 15px;
    visibility: hidden;
}

.main-progress .progress-bar {
    width: 0%;
    height: 100%;
    background-color: #3498db;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.loading {
    display: none;
    color: #666;
    font-style: italic;
    margin-left: 10px;
}

/* Results and Cards styles */
.significant-games {
    margin: 20px 0;
}

.week-games {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.game-date {
    font-size: 0.9em;
    font-weight: 700;
    color: #2c3e50;
}

.game-impact {
    color: #2c3e50;
    font-weight: bold;
    font-size: 0.9em;
}

.game-teams {
    display: flex;
    align-items: flex-start;  /* Changed from center */
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.team {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    min-width: 120px;
}

.team-info {
    display: flex;
    align-items: center;
}

.team-probabilities {
    font-size: 0.85em;
    color: #666;
    text-align: right;
    margin-left: 10px;
}

.team-name {
    margin-left: 0px;
    font-weight: bold;
}

.at {
    padding: 0;
    color: #666;
    font-weight: bold;
    font-size: 0.8em;
    align-self: center;  /* Center the @ symbol */
}

/* Playoff Odds and Super Bowl styles */
.two-column-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.two-column-layout > div {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.odds-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.odds-list li {
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-radius: 4px;
    padding: 8px;
}

.odds-list li:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

/* Ensure spacing between items */
.odds-list li + li {
    margin-top: 4px;
}

.odds-value {
    font-weight: bold;
    color: #2c3e50;
}

/* Impact styles */
.impact-explanation {
    padding: 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.85em;
}

.playoff-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.playoff-summary h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.team.root-for {
    background-color: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.team.root-against {
    background-color: rgba(231, 76, 60, 0.1);
    opacity: 0.8;
}

.team.should-lose {
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    opacity: 0.9;
}


/* Tooltip styles */
.info-icon {
    cursor: help;
    color: #6c757d;
    margin-left: 8px;
    font-size: 0.9em;
    position: relative;  /* Add this */
}

.tooltip-content {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 300px;
    font-size: 0.9em;
    left: 100%;  /* Position to the right of the icon */
    top: 50%;    /* Center vertically */
    transform: translateY(-50%);  /* Center vertically */
    margin-left: 10px;  /* Add some space between icon and tooltip */
}

.info-icon:hover .tooltip-content {
    display: block;
}

/* Additional styles for the playoff impact section */
.root-for-team {
    font-size: 1.1em;
    margin-bottom: 4px;
    color: #e74c3c;
}

.playoff-impact {
    font-size: 0.9em;
    color: #666;
}

.playoff-chances {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Date card styles */
.date-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.date-header {
    margin: 0 0 15px 0;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    color: #495057;
    font-size: 1.1em;
    font-weight: bold;
}

.date-games {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* No impact games styling */
.no-impact-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.no-impact-card .game-card {
    background-color: white;
    padding: 8px 12px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.no-impact-card .game-date {
    color: #6c757d;
    font-size: 0.85em;
    margin-top: 5px;
    font-style: italic;
}

.no-impact-card .date-header {
    color: #6c757d;
    background-color: transparent;
}

.no-impact-text {
    color: #95a5a6;
    font-style: italic;
}

/* Add/update these styles */
.lose-indicator {
    color: #e74c3c !important;  /* Always red, override any inherited colors */
    margin-left: 8px;
    font-weight: bold;
}

/* Update the team class to not affect the lose indicator color */
.team.AFC .lose-indicator,
.team.NFC .lose-indicator {
    color: #e74c3c !important;  /* Ensure the X is always red */
}

/* Add these styles */
.team-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* Changed from space-between */
    background-color: #f8f9fa;
    border-radius: 8px;
}

.team-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0px;
}

.team-header .playoff-summary {
    margin: 0;
    background: none;
    padding: 0;
}

.team-header .playoff-summary h4 {
    color: #666;
}

.section-header {
    margin: 20px 0;
    position: relative;
    text-align: center;
}

.section-header h3 {
    font-size: 1.6em;
    font-weight: 600;
    color: #2c3e50;
    display: inline-block;
    background: white;
    padding: 0 20px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.section-header:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}

/* Conference-specific colors for section headers */
.section-header.AFC h3 {
    color: #e74c3c;
}

.section-header.NFC h3 {
    color: #3498db;
}

/* Update the team header styles */
.team-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.team-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0px;
}

.team-chances {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.chance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chance-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 4px;
}

.chance-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
}

/* Remove the playoff summary styles from team header */
.team-header .playoff-chances {
    margin-left: 10px;
    color: #666;
    font-size: 1em;
}

/* Add these styles to the existing file */
.additional-chances {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.additional-chances p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

.additional-chances p:last-child {
    color: #2c3e50;
    font-weight: bold;
}

.root-against-summary {
    margin: 20px 0;
    max-width: 100%;
    box-sizing: border-box;
}

.root-against-summary .teams-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    justify-content: flex-start;
    box-sizing: border-box;
    margin: 0 auto;
}

.root-against-summary .team {
    width: 120px;
    height: 120px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 120px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.root-against-summary .team:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.root-against-summary .team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;  /* Remove gap between elements */
    margin: 0;  /* Remove margin */
    padding: 0;  /* Remove padding */
}

.root-against-summary .team-logo {
    width: 48px;
    height: 48px;
}

.root-against-summary .team-name {
    font-size: 1.4em;
    font-weight: bold;
    margin: 0;  /* Remove margin */
    padding: 0;  /* Remove padding */
    line-height: 1;  /* Tighter line height */
}

.root-against-summary .game-details {
    font-size: 0.8em;
    color: #666;
    text-align: center;
    margin: 0;  /* Remove margin */
    padding: 0;  /* Remove padding */
    line-height: 1.2;
}

.team-record {
    font-size: 0.85em;
    color: #666;
    margin-left: 4px;
}

.root-against-summary .team-record {
    font-size: 0.9em;
    color: #666;
    margin-top: 2px;
    margin: 0;  /* Remove margin */
    padding: 0;  /* Remove padding */
    line-height: 1;  /* Tighter line height */
}

/* Adjust the team info spacing */
.root-against-summary .team-info {
    gap: 2px;  /* Reduce gap between elements */
}

.show-details-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.show-details-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 1em;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.show-details-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.show-details-button i {
    transition: transform 0.2s ease;
}

.game-details-container {
    transition: all 0.3s ease-in-out;
}

.standings-subtabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.subtab-button {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 1em;
    color: #495057;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.subtab-button:hover {
    background-color: #f8f9fa;
}

.subtab-button.active {
    background-color: #e9ecef;
    font-weight: bold;
}

.standings-view {
    display: none;
}

.standings-view.active {
    display: block;
}

.playoff-picture {
    padding: 0;
}

.conferences-container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.conference-playoffs {
    flex: 1;
    max-width: calc(50% - 15px);  /* Half width minus half the gap */
}

.conference-playoffs h3 {
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Make AFC red and NFC blue */
.conference-playoffs.AFC h3 {
    color: #e74c3c;
}

.conference-playoffs.NFC h3 {
    color: #3498db;
}

.playoff-team {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.seed-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    font-weight: bold;
    color: #495057;
    flex-shrink: 0;  /* Prevent shrinking */
}

.playoff-team .team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.playoff-team .team-name {
    color: #000;
    font-size: 1.2em;
    font-weight: bold;
}

.playoff-team .team-record {
    color: #666;
    font-size: 0.9em;
}

.playoff-team .clinch-status {
    margin-left: auto;
    font-size: 0.85em;
    color: #28a745;  /* Bootstrap success green */
    font-weight: 500;
}

.playoff-picture-divider {
    margin: 20px 0;
    border-top: 2px solid #e9ecef;
    position: relative;
    text-align: center;
}

.playoff-picture-divider span {
    background: white;
    padding: 0 15px;
    color: #95a5a6;
    font-size: 0.9em;
    position: relative;
    top: -10px;
}

.playoff-team.non-playoff {
    opacity: 0.7;
    background: #f8f9fa;
}

.playoff-team.non-playoff .team-name {
    font-weight: normal;
}

.playoff-team.non-playoff .seed-number {
    background: #e9ecef;
}

.games-behind {
    margin-left: auto;
    font-size: 0.85em;
    color: #95a5a6;
}

/* Expanded Standings Styles */
.expanded-standings {
    padding: 20px;
}

.expanded-standings .conference-section {
    margin-bottom: 40px;
}

.expanded-standings h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.expanded-standings .standings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.expanded-standings th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.expanded-standings td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.expanded-standings .team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expanded-standings .team-logo {
    width: 24px;
    height: 24px;
}

.expanded-standings .h2h-cell {
    font-size: 0.9em;
    max-width: 200px;
}

/* Hover effect */
.expanded-standings tr:hover {
    background-color: #f8f9fa;
}

/* Alternating row colors */
.expanded-standings tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.rank-number {
    font-weight: bold;
    text-align: center;
    color: #495057;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 4px 8px;
}

/* Update the standings table styles */
.conference-standings .standings-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;  /* Center content vertically */
}

.conference-standings .standings-table th:first-child,
.conference-standings .standings-table td:first-child {
    width: 60px;  /* Fixed width for rank column */
    text-align: center;
}

/* Add these styles */
.standings-table {
    width: 100%;
    table-layout: fixed;  /* This ensures consistent column widths */
}

.standings-table th,
.standings-table td {
    padding: 8px;
    text-align: left;
    white-space: nowrap;  /* Prevents wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Define specific column widths */
.standings-table th:nth-child(1),  /* Team column */
.standings-table td:nth-child(1) {
    width: 30%;
}


/* Team cell specific styling */
.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 8px;
}

.standings-table .team-logo {
    flex-shrink: 0;  /* Prevents logo from shrinking */
}

/* Division header styling */
.division h3 {
    margin: 20px 0 10px 0;  /* Consistent spacing between divisions */
}

/* Who Should Lose section */
.who-should-lose-section {
    margin: 0;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.who-should-lose-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
}

.root-against-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.root-against-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s;
}

.root-against-card.AFC {
    border-left: 4px solid #e74c3c;
}

.root-against-card.NFC {
    border-left: 4px solid #3498db;
}

.root-against-card .team-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.root-against-card .teams-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.root-against-card .team-info img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.root-against-card .team-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
}

.root-against-card .opponent-info {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: normal;
    padding-bottom: 6px;
}

.root-against-card .game-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;  /* Center items vertically */
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
    padding-left: 5px;
}

.root-against-card .game-date {
    color: #2c3e50;
}

.root-against-card .impact-value {
    width: 55px;  /* Fixed width */
    padding: 4px 4px;  /* Even padding */
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1em;
    display: inline-flex;  /* Changed to inline-flex */
    align-items: center;  /* Center vertically */
    justify-content: center;  /* Center horizontally */
    gap: 4px;  /* Consistent gap between number and icon */
    position: relative;
    cursor: help;
    color: #2c3e50;
    transition: background-color 0.3s ease;
}

.root-against-card .impact-value i {
    font-size: 0.8em;
    opacity: 0.8;
    margin: 0;  /* Remove any margin */
    display: inline-flex;  /* Ensure icon is properly aligned */
    align-items: center;
}

.impact-value i {
    transition: opacity 0.2s ease;
    color: #23272d;  /* Medium gray for the info icon */
}

.impact-value:hover i {
    opacity: 1;
}
.game-header .impact-value {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: help;
}

/* Detailed Game Cards */
.game-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.game-content {
    display: flex;
    align-items: stretch;
    gap: 15px;
    margin-top: 10px;
}

.team-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid transparent;  /* Reduced from 2px to 1px */
}

.team-column.should-lose {
    border-color: rgba(231, 76, 60, 0.3);  /* Red with 30% opacity */
    background-color: rgba(231, 76, 60, 0.02);  /* Very subtle red background */
}

.team-column.should-win {
    border-color: rgba(46, 204, 113, 0.3);  /* Green with 30% opacity */
    background-color: rgba(46, 204, 113, 0.02);  /* Very subtle green background */
}

.team-column .team-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.team-column .team-logo-name {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;  /* Take full width */
    justify-content: flex-start;  /* Left align content */
}

.team-column .team-logo-name img {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

.team-column .team-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.at {
    display: flex;
    align-items: center;
    color: #666;
    font-weight: bold;
    padding: 0 5px;
    font-size: 1.5em;
}

.probability-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prob-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: #495057;
}

.prob-value {
    display: flex;
    align-items: center;
    gap: 4px;
}

.positive {
    color: #27ae60;
    font-weight: 500;
}

.negative {
    color: #e74c3c;
    font-weight: 500;
}

/* Team Header Styling */
.team-header {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;  /* Push items to opposite ends */
    align-items: flex-start;
    flex-direction: row !important;  /* Force horizontal layout */
    flex-wrap: nowrap;  /* Prevent wrapping */
}

/* Team identity (Left Side) */
.team-header .team-identity {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-right: 0;
    flex: 0 0 auto;  /* Don't grow, don't shrink, auto basis */
}

.team-header .team-logo {
    width: 90px;
    height: 90px;
}

.team-header .team-name {
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.team-header .team-identity .team-record{
    display: block;
}

/* Team header right side (Quote and Next Game) */
.team-header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-left: 1.5em;
}

/* Team header container */
.team-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0px;
    margin-bottom: 2rem;
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-sizing: border-box;
}

/* Team identity section */
.team-identity {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1 1 300px;
    min-width: 300px;
}
/* Probability Box (Right Side) */
.current-probabilities {
    border-left: 4px solid var(--team-primary-color, #4a5568);
    transition: border-color 0.3s ease;
    background-color: white;
    padding: 1em;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.probability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.current-probabilities .label {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1em;
    /* Removed the border-right */
}

.probability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* Changed from 2 to 3 columns */
    gap: 15px;
    margin-top: 10px;
}

.probability-item {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.probability-item .value {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50;
}

.probability-item .type {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 4px;
}

.simulation-count {
    color: #666;
    font-size: 0.85em;
    font-style: italic;
    display: block;
    margin-top: 4px;
}

/* Remove any conflicting styles */
.team-header {
    flex-direction: row !important;  /* Override any other flex-direction settings */
}

/* Remove these if they exist */
.team-header.flex-column,
.team-header[style*="flex-direction: column"] {
    flex-direction: row !important;
}

.odds-values {
    display: flex;
    gap: 20px;
}

.odds-value {
    min-width: 60px;
    text-align: right;
    color: #2c3e50;
    font-weight: 500;
}

.odds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    font-weight: bold;
    color: #495057;
    margin-bottom: 10px;
}

.team-info-header {
    flex: 1;
    padding-left: 35px;  /* Space for logo alignment */
}

.odds-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.odds-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid #f8f9fa;
}

.team-info {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Playoff Picture Cards */
.playoff-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.playoff-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.playoff-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.playoff-card .rank {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2em;
    font-weight: 800;
    color: rgba(0,0,0,0.15);
}

.playoff-card .team-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.playoff-card .team-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.playoff-card .team-details {
    width: 100%;
}

.playoff-card .team-name {
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.playoff-card .team-record {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.playoff-card .division-status {
    font-size: 0.8em;
    color: #888;
}

/* Card variations */
.playoff-card.division-winner {
    border-left: 3px solid #2ecc71;
}

.playoff-card.wild-card {
    border-left: 3px solid #3498db;
}

.playoff-card.outside {
    border-left: 3px solid #95a5a6;
}

/* Conference specific colors */
.conference-section:has(h2:contains("AFC")) .playoff-card .rank {
    color: rgba(231, 76, 60, 0.15);
}

.conference-section:has(h2:contains("NFC")) .playoff-card .rank {
    color: rgba(52, 152, 219, 0.15);
}

/* Add/update these styles */

/* Conference Section Headers */
.conference-section h2 {
    font-size: 2em;
    font-weight: 700;
    padding: 15px 0;
    margin-bottom: 15px;
    border-bottom: 3px solid;
    text-align: center;
}

.conference-section h2:first-child {
    margin-top: 0;
}

/* First section header after conference headers */
.conference-row + .section-header {
    margin-top: 10px;
}

/* AFC specific */
.conference-section:has(h2:contains("AFC")) h2 {
    color: #e74c3c;
    border-color: #e74c3c;
}

.conference-section:has(h2:contains("AFC")) .playoff-card {
    background-color: #ffefef;
}

/* NFC specific */
.conference-section:has(h2:contains("NFC")) h2 {
    color: #3498db;
    border-color: #3498db;
}

.conference-section:has(h2:contains("NFC")) .playoff-card {
    background-color: #eef6ff;
}

/* Section Headers (Division Leaders, Wild Card, In the Hunt) */
.playoff-teams h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
    padding: 10px 15px;
    margin: 25px 0 15px 0;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.playoff-teams:first-child h3 {
    margin-top: 0;
}

/* Update existing playoff card styles */
.playoff-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.playoff-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Update card variations with more subtle borders */
.playoff-card.division-winner {
    border-left: 3px solid #2ecc71;
}

.playoff-card.wild-card {
    border-left: 3px solid #3498db;
}

.playoff-card.outside {
    border-left: 3px solid #95a5a6;
}

/* Alternative approach without using :has() */
.conference-section.AFC .playoff-card {
    background-color: #fff5f5;  /* Lighter red */
}

.conference-section.NFC .playoff-card {
    background-color: #f5f9ff;  /* Lighter blue */
}

/* Add/update these styles */
.playoff-picture {
    padding: 0;
}

.conference-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.section-header {
    margin: 10px 0;
    position: relative;
    text-align: center;
}

.section-header h3 {
    font-size: 1.6em;
    font-weight: 600;
    color: #2c3e50;
    display: inline-block;
    background: white;
    padding: 0 20px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.section-header:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}

/* Update conference section headers to be smaller */
.conference-section h2 {
    font-size: 1.4em;
    font-weight: 600;
    padding: 10px 0;
    margin-bottom: 15px;
    color: inherit;
    border-bottom: 2px solid;
}

/* First section header shouldn't have top margin */
.section-header:first-child {
    margin-top: 0;
}

/* Next game styling */
.next-game {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.next-game-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85em;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-weight: 500;  /* Slightly bolder text */
}

.next-game-pill:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transform: translateY(-1px);
    border-color: currentColor;  /* Border becomes text color on hover */
}

.next-game-pill.no-games {
    background-color: #f8f9fa;
    color: #95a5a6;
    font-style: italic;
    border: 1px solid #e9ecef;
}

/* Opponent conference-specific pill styling */
.next-game-pill.opponent-AFC {
    background-color: #fee2e2;  /* Slightly darker red */
    border: 1px solid #fecaca;  /* Light red border */
    color: #991b1b;  /* Darker red text */
    box-shadow: 0 1px 2px rgba(231, 76, 60, 0.1);  /* Conference-colored shadow */
}

.next-game-pill.opponent-NFC {
    background-color: #dbeafe;  /* Slightly darker blue */
    border: 1px solid #bfdbfe;  /* Light blue border */
    color: #1e40af;  /* Darker blue text */
    box-shadow: 0 1px 2px rgba(52, 152, 219, 0.1);  /* Conference-colored shadow */
}

.next-game .opponent-logo {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* Playoff Picture specific styles - scoped with .playoff-picture parent class */
.playoff-picture {
    padding: 0;
}

.playoff-picture .conference-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.playoff-picture .section-header {
    margin: 10px 0;
    position: relative;
    text-align: center;
}

.playoff-picture .section-header h3 {
    font-size: 1.6em;
    font-weight: 600;
    color: #2c3e50;
    display: inline-block;
    background: white;
    padding: 0 20px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.playoff-picture .section-header:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}

/* Conference headers in playoff picture */
.playoff-picture .conference-section h2 {
    font-size: 1.4em;
    font-weight: 600;
    padding: 10px 0;
    margin-bottom: 15px;
    color: inherit;
    border-bottom: 2px solid;
}

/* Restore original section header styles for other pages */
.section-header:not(.playoff-picture .section-header) {
    font-weight: 600;
    color: #2c3e50;
    padding: 0;
    margin: 0;
}

/* Conference specific colors in playoff picture */
.playoff-picture .conference-section.AFC .playoff-card {
    background-color: #fff5f5;
}

.playoff-picture .conference-section.NFC .playoff-card {
    background-color: #f5f9ff;
}

/* Next game styling - already scoped to playoff cards */
.next-game {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* Rest of the next-game styles remain the same as they're specific to that component */

/* Global section header styling */
.section-header {
    margin: 20px 0;
    position: relative;
    text-align: center;
}

.section-header h3 {
    font-size: 1.6em;
    font-weight: 600;
    color: #2c3e50;
    display: inline-block;
    background: white;
    padding: 0 20px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.section-header:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}

/* Ensure no line through the text */
.section-header h3 {
    background: white;
}

/* First section header shouldn't have top margin */
.section-header:first-child {
    margin-top: 0;
}

.impact-tooltip {
    cursor: help;
    position: relative;
    display: inline-flex;
}

.impact-tooltip .fa-info-circle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.impact-tooltip .tooltip-text {
    visibility: hidden;
    background-color: #2c3e50;
    color: white;
    text-align: left;
    padding: 0 20px 0 20px;
    border-radius: 6px;
    position: fixed;
    z-index: 1000;
    width: 300px;
    opacity: 0;
    transition: opacity 0.2s;
    font-weight: normal;
    font-size: 0.9em;
    line-height: 0.8;
    white-space: pre-line;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* Arrow for tooltip */
.impact-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

/* Show tooltip on hover */
.impact-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Ensure tooltip stays visible when hovering over it */
.impact-tooltip .tooltip-text:hover {
    visibility: visible;
    opacity: 1;
}

.error-message {
    background-color: #fff3f3;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.error-message i {
    color: #e74c3c;
    font-size: 24px;
}

.error-message p {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.warning-message {
    background-color: #fff8e6;
    border: 1px solid #f1c40f;
    border-radius: 8px;
    padding: 15px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.warning-message i {
    color: #f1c40f;
    font-size: 24px;
    flex-shrink: 0;
}

.warning-message p {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.warning-message .warning-subtext {
    font-size: 0.9em;
    color: #666;
    margin-top: 4px;
}

/* Cache Management Styles */
.cache-management-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
    margin: 20px 0;
}

.cache-info-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-size: 0.9em;
    color: #666;
}

.cache-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.cache-status.valid {
    background: #e3fcef;
    color: #0a8f4d;
}

.cache-status.invalid {
    background: #ffe9e9;
    color: #cf3333;
}

.generation-section {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4CAF50;
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.status-message {
    margin: 15px 0;
    font-size: 0.95em;
}

.status-message.error {
    color: #cf3333;
}

.warning-action-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #f1c40f;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.warning-action-button:hover {
    background: #f39c12;
    text-decoration: none;
    color: #2c3e50;
}

.warning-action-button i {
    margin-right: 5px;
}

.return-bar {
    margin-bottom: 20px;
    padding: 10px 0;
}

.return-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

.return-button:hover {
    background-color: #e9ecef;
    color: #2c3e50;
    text-decoration: none;
}

.return-button i {
    font-size: 0.9em;
}

.advanced-settings {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.advanced-settings h4 {
    color: #6c757d;
    font-size: 1em;
    margin-bottom: 15px;
}

.advanced-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.advanced-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.advanced-link:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
}

.advanced-link i {
    font-size: 0.9em;
}


/* Media queries */
@media (max-width: 600px) {
    .container {
        padding: 0;
    }
    button {
        width: 100%;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .two-column-layout {
        flex-direction: column;
    }
    
    .two-column-layout > div {
        width: 93%;
    }

    .conferences-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .conference-playoffs {
        max-width: 100%;
    }

    /* Standings table adjustments */
    .standings-table td:not(:first-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(5)):not(:nth-child(6)):not(:nth-child(7)),
    .standings-table th:not(:first-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(5)):not(:nth-child(6)):not(:nth-child(7)) {
        display: none;  /* Hide all columns except logo, W, L, T, PCT */
    }

    /* Conference standings specific */
    .conference-standings td:not(:first-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(5))) {
        display: none;  /* Hide all columns except rank, team logo, record */
    }

    /* Hide team names in standings, keep logos */
    .conference-standings .team-name {
        display: none;
    }

    /* Make the table more compact */
    .standings-table td,
    .standings-table th {
        padding: 8px 4px;
        font-size: 0.9em;
    }
    
    
}


/* Responsive styles for smaller screens */
@media screen and (max-width: 910px) {
    /* Team header adjustments */
    .team-header {
        flex-direction: column;
        align-items: center;
        gap: .5rem;
    }

    .team-name-container {
        align-items: center;
    }

    .team-identity {
        text-align: left;
    }

    .current-probabilities {
        width: 100%!important;
        max-width: 100%!important;
        flex: 0 0 auto;
    }

    .current-probabilities .label,
    .probability-item {
        text-align: center;  /* Center align on mobile */
    }

    /* Detailed breakdown adjustments */
    .game-card .team-name {
        display: none!important;
    }

    .game-card .team-city {
        display: inline!important;
        line-height: 1.4;
        font-size: 1.4em;
        font-weight: bold;
    }

    .game-card .team-logo {
        margin: 0;
    }

    /* Adjust tab navigation */
    .tab-links {
        flex-wrap: wrap;
        gap: 5px;
    }

    .tab-links li {
        margin-right: 5px;
    }

    .tab-links li a {
        padding: 8px 12px;
        font-size: 0.9em;
    }

}

/* Update tab styles */
.tab-links li:last-child a {
    padding: 10px;  /* Make it square-ish for the icon */
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-links li:last-child a i {
    font-size: 1.2em;  /* Make icon slightly larger */
}

/* Hide text for settings icon on desktop */
.tab-links li:last-child a span {
    display: none;
}

/* Show text next to icon on mobile */
@media screen and (max-width: 1000px) {
    .tab-links li:last-child a {
        padding: 8px 12px;  /* Match other tab padding */
    }
    
    .tab-links li:last-child a span {
        display: inline;
        margin-left: 6px;
    }
}

/* Add styles for odds views */
.odds-view {
    display: none;
}

.odds-view.active {
    display: block;
}

/* Reuse existing standings-subtabs styles for consistency */
#odds .standings-subtabs {
    margin-bottom: 20px;
}

/* Game card responsive styling */
.game-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.game-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.game-teams {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.game-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0; /* Allow text truncation */
}

.game-team .team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card .team-name {
    display: inline;
}
.game-card .team-city {
    display: none;
}

.game-vs {
    padding: 0 8px;
    color: #666;
    font-weight: 500;
}

.game-impact {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.game-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.outcome-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border-radius: 6px;
    background: #f8f9fa;
}

.outcome-header {
    font-weight: 500;
    color: #495057;
    font-size: 0.9em;
}

.probability-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95em;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .game-card {
        padding: 12px;
    }

    .game-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-teams {
        width: 100%;
        justify-content: space-between;
    }

    .game-team {
        flex: 1;
    }

    .game-team:last-child {
        text-align: right;
        justify-content: flex-end;
    }

    .game-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .outcome-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;   
    }

    div.probability-details {
        color: #2ecc71;
        font-size: 0.8em;
    }

    
    .at {
        display: none!important;
    }

}

@media screen and (max-width: 720px) {
    .game-card .team-name {
        display: none!important;
    }
    .game-card .team-city {
        display: none!important;
    }
    .game-card .team-abbr {
        display: inline!important;
        font-size: 1.2em;
        font-weight: bold;
    }

}
/* Show abbreviated team names on very small screens */
@media screen and (max-width: 450px) {
    .game-team .team-name {
        display: none!important;
    }

    .game-team .team-abbr {
        display: inline!important;
        margin-left: 4px;
        font-weight: 500;
    }

    .game-card .team-abbr {
        display: inline!important;
        font-size: 1em;
        font-weight: 500;
    }

}

/* Mobile switch link styles */
.mobile-switch-container {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #ddd;
}

.mobile-switch-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-switch-link:hover {
    color: #333;
}

.mobile-switch-link i {
    font-size: 1.1rem;
}

/* AI Analysis Styles */
.ai-analysis-section {
    margin: 2rem 0;
    position: relative;
}

.ai-analysis-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-analysis-header i {
    font-size: 1.1rem;
    color: #0066cc;
}

.ai-analysis-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.ai-analysis-content {
    position: relative;
    padding: 1.5rem 2rem;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-left: 4px solid #0066cc;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
}

.ai-analysis-content::before {
    content: '"';
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
    font-size: 2.5rem;
    color: #0066cc;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.ai-analysis-content.error {
    border-left-color: #dc3545;
    background: linear-gradient(to right, #fff5f5, #ffffff);
    color: #dc3545;
    font-style: italic;
}

.ai-error-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: #fff5f5;
    color: #dc3545;
    border-radius: 4px;
    font-size: 0.9em;
    margin-left: 0.5rem;
}

.ai-error-badge i {
    margin-right: 0.25rem;
    color: #dc3545;
}

/* Team Header Styles */
.team-header {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.team-header-top {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.team-identity {
    display: flex;
    align-items: center; /* Changed from flex-start to center */
    gap: 1rem;
    min-width: 300px;
}

.team-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.team-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-text .team-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #1a202c;
}

.team-record {
    font-size: 1rem;
    color: #4a5568;
}

.team-summary {
    flex: 1;
    font-size: 1rem;
    border-left: 2px solid #ddd;
    line-height: 1.5;
    color: #4a5568;
    max-width: 90%;
    padding: 5px 0 5px 30px; /* Added vertical padding instead of top padding */
    margin: 0 0 0 10px;
    display: flex; /* Added to enable vertical centering */
    align-items: center; /* Added to enable vertical centering */
    min-height: 64px; /* Match the height of the team logo */
}

/* Current Probabilities Section */
.current-probabilities {
    border-left: 4px solid var(--team-primary-color, #4a5568);
    transition: border-color 0.3s ease;
    background-color: white;
    padding: 1em;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.current-probabilities .label {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1em;
    /* Removed the border-right */
}

/* Keep other probability styles the same */
.probability-strip {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.probability-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.probability-item .type {
    font-size: 0.8rem;
    color: #6c757d;
    order: 1;
}

.probability-item .value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    order: 2;
}

.simulation-count {
    color: #718096;
    font-size: 0.75rem;
    text-align: left;
    margin-top: 1rem;
    font-style: italic;
}

/* Update responsive styles */
@media (max-width: 768px) {
    .probability-strip {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: flex-start;
    }
    
    .probability-item {
    }
}

@media (max-width: 480px) {
    .probability-item {
        min-width: 100%; /* One item per row */
    }
    
    .probability-item .type {
        font-size: 0.75rem;
    }
    ai-analysis-header
    .probability-item .value {
        font-size: 1.1rem;
    }
}

/* Update AI analysis section styles for new location */
.current-probabilities .ai-analysis-section {
    margin-top: 1em;
    border-top: 1px solid #e2e8f0;
    padding-top: 0;
}

.current-probabilities .ai-analysis-header {
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 0;
}

.current-probabilities .ai-analysis-header h3 {
    margin: 0 1em 0 0;
    font-size: 0.9em;
    color: #adaeb0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.current-probabilities .ai-analysis-header i.fa-robot {
    color: #adaeb0;
    transition: color 0.3s ease;
}

.current-probabilities .ai-analysis-section.expanded .ai-analysis-header i.fa-robot {
    color: #4a5568;
}

.current-probabilities .ai-analysis-section.expanded .header-text {
    color: #2d3748;
}

.team-text .division-position {
    font-size: 0.9rem;
    color: #666;
    margin-top: -2px;
}

/* AI Analysis Section Styles */
.ai-analysis-content {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.ai-card {
    padding: 1em;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.ai-card h3 {
    margin: 0 0 0.75em 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.ai-card h3 i {
    color: #4a5568;
    font-size: 0.9em;
}

.ai-quick-take h3 {
    color: #2c5282;  /* Blue shade */
}

.ai-next-game h3 {
    color: #2b6cb0;  /* Slightly different blue */
}

.ai-fun-take h3 {
    color: #2f855a;  /* Green shade */
}

.ai-brutal-truth h3 {
    color: #c53030;  /* Red shade */
}

.ai-card p {
    margin: 0 0 1.2em 0 !important;  /* Force bottom margin for paragraph spacing */
    line-height: 1.6 !important;
}

.ai-card p:last-child {
    margin-bottom: 0 !important;  /* Remove margin from last paragraph */
}

.ai-card .ai-content p {
    margin: 0 0 1.2em 0 !important;
    line-height: 1.6 !important;
}

.ai-card .ai-content p:last-child {
    margin-bottom: 0 !important;
}

/* V2 Section Colors */
.ai-verdict h3 {
    color: #2c5282;  /* Blue - authoritative */
}

.ai-xfactor h3 {
    color: #2b6cb0;  /* Medium blue - analytical */
}

.ai-reality-check h3 {
    color: #d97706;  /* Orange - reality check */
}

.ai-quote h3 {
    color: #059669;  /* Green - quotable */
}

.ai-quote blockquote {
    margin: 0;
    padding: 1em;
    background: #f0fdf4;
    border-left: 4px solid #059669;
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Featured Quote at Top */
.team-quote-featured {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 1.2em;
    margin: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.team-quote-featured .quote-icon {
    font-size: 1.5em;
    opacity: 0.3;
}

.team-quote-featured .quote-text {
    font-size: 1.1em;
    font-style: italic;
    font-weight: 500;
    text-align: left;
    line-height: 1.4;
    max-width: 800px;
}

/* Next Game Card - Single Line */
.next-game-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75em 1em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75em;
    font-size: 0.95em;
}

.next-game-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.next-game-vs {
    color: #718096;
    font-weight: 500;
}

.next-game-team {
    font-weight: 700;
    color: #1a202c;
    font-size: 1.1em;
}

.next-game-spread {
    color: #2c5282;
    font-weight: 600;
    margin-left: 0.5em;
}

.next-game-ou {
    color: #4a5568;
}

.next-game-weather {
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.next-game-weather i {
    color: #ed8936;
}

.next-game-label {
    font-weight: 600;
    color: #2d3748;
    margin-right: 0.5em;
}

.next-game-divider {
    color: #cbd5e0;
    margin: 0 0.3em;
}

.bye-week-text {
    color: #718096;
    font-style: italic;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 1em;
    background: #edf2f7;
    border-radius: 6px;
    font-size: 0.95em;
    color: #2d3748;
    width: fit-content;
}

.weather-info i {
    color: #ed8936;
}

/* Old section styles for backward compatibility */
.ai-brutal-truth {
    background: #fff5f5;  /* Very light red background */
}

/* Update existing styles */
.ai-analysis-content {
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    max-height: 0;
    opacity: 0;
}

.ai-analysis-section.expanded .ai-analysis-content {
    max-height: 2000px;
    padding: 1em;
    opacity: 1;
    border-top: 1px solid #e2e8f0;
}

/* Add these with the other ai-card styles */
.ai-deep-stats h3 {
    color: #805ad5;  /* Purple shade */
}

.ai-deep-stats {
    background: #faf5ff;  /* Very light purple background */
}

// Add these styles
.header-link {
    text-decoration: none;
    color: inherit;
}

.header-link:hover {
    opacity: 0.8;
    color: #fff;  /* Make hover color pure white */
    text-shadow: 0 0 10px rgba(255,255,255,0.5);  /* Add glow effect on hover */
}

.header-content {
    text-align: center;
}

/* Header link styles - make more specific */
.main-header .header-link {
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
}

.main-header .header-link:hover {
    color: #FFD700;  /* Brighter gold color */
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.7),  /* Stronger gold glow */
        0 0 40px rgba(255, 215, 0, 0.4);   /* Extended glow */
    transform: scale(1.03);  /* Slightly more dramatic scale */
}

.main-header .header-content {
    text-align: center;
}



/* Add tooltip container for root-against-card */
.root-against-card .impact-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;  /* Take full width of parent */
    height: 100%; /* Take full height of parent */
    position: absolute;
    left: 0;
    top: 0;
}

.root-against-card .tooltip-text {
    visibility: hidden;
    background-color: #2c3e50;
    color: white;
    text-align: left;
    padding: 0 10px 0 20px;  /* Further reduced padding */
    border-radius: 8px;
    position: fixed;
    z-index: 1000;
    width: 300px;
    opacity: 0;
    transition: opacity 0.2s;
    font-weight: normal;
    font-size: 1em;
    line-height: 1.0;  /* Further reduced line height */
    white-space: pre-line;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
}


.tooltip-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tooltip-stat-line {
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tooltip-stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.tooltip-stat-value {
    color: #2ecc71;  /* Green for positive values */
}

.tooltip-stat-value.negative {
    color: #e74c3c;  /* Red for negative values */
}

/* Arrow for tooltip */
.root-against-card .tooltip-text::after {
    content: "";
    position: absolute;
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

.root-against-card .tooltip-text[data-position="bottom"]::after {
    top: 100%;
    left: 50%;
    margin-left: -5px;
}

.root-against-card .tooltip-text[data-position="top"]::after {
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    transform: rotate(180deg);
}

/* Update the tooltip content in displayResults */
.tooltip-section {
    margin: 0;
    padding: 0;
}

.tooltip-section-title {
    color: #f1c40f;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 24px;  /* Match logo height + padding */
    display: flex;
    align-items: center;
    font-size: 1.1em;  /* Increased from 1.1em */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Update logo styles */
.tooltip-team-logo {
    width: 32px;  /* Increased from 20px */
    height: 32px;  /* Increased from 20px */
    margin-right: 8px;
    margin-top: 11px;
    display: block;  /* Ensure consistent alignment */
}

/* Adjust line spacing for bullet points */
.tooltip-section br {
    display: block;
    margin: 1px 0;  /* Minimal spacing between lines */
    content: "";
}

/* Remove extra space after last section */
.tooltip-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Make bullet points more compact */
.tooltip-section div {
    line-height: 1.2;  /* Tighter line height for all div elements */
    margin: 1px 0;  /* Minimal margins */
}

/* Add styles for positive/negative percentage changes in tooltip */
.tooltip-change {
    display: inline;
}

.tooltip-change.positive {
    color: #2ecc71;  /* Green for positive changes */
}

.tooltip-change.negative {
    color: #e74c3c;  /* Red for negative changes */
}

@media screen and (max-width: 768px) {
    .header-link h1 {
        font-size: 3.5rem;
        letter-spacing: 0.15em;
    }
}

@media screen and (max-width: 480px) {
    .header-link h1 {
        font-size: 2.8rem;
        letter-spacing: 0.1em;
    }
}

// Add these styles
.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.team-card.clickable {
    position: relative;
}

.team-card.clickable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.team-card.clickable:hover::after {
    opacity: 1;
}

/* Add these styles */
.standings-table {
    table-layout: fixed;  /* This ensures consistent column widths */
}

.standings-table th, 
.standings-table td {
    white-space: nowrap;  /* Prevent text wrapping */
    overflow: hidden;     /* Hide overflow content */
    text-overflow: ellipsis; /* Show ... for overflow content */
}

/* Make team column wider and other columns narrower */
.standings-table th:first-child,
.standings-table td:first-child {
    width: 250px;        /* Increase width for team column */
    min-width: 250px;    /* Ensure minimum width */
    padding-right: 20px; /* Add some padding for the tiebreaker icon */
}

/* Make other columns narrower */
.standings-table th:not(:first-child),
.standings-table td:not(:first-child) {
    width: 60px;         /* Narrower width for stat columns */
    text-align: center;  /* Center align the stats */
}

/* Style for team cell content */
.team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.team-cell img.team-logo {
    flex-shrink: 0;      /* Prevent logo from shrinking */
    width: 24px;
    height: 24px;
}

.team-cell .team-name-wrapper {
    flex: 1;             /* Allow team name to take remaining space */
    min-width: 0;        /* Allow text truncation */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Team name wrapper for playoff bracket cards */
.team-card .team-name-wrapper,
.playoff-card .team-name-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tiebreaker icon tooltip */
.tiebreaker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* Position tiebreaker icon on right side of team cards */
.team-card > .tiebreaker-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

// Add these styles to ensure consistent hover effects across all playoff cards
.playoff-card.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.playoff-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ensure the hover effect works for all card types */
.playoff-card.wild-card.clickable:hover,
.playoff-card.outside.clickable:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Make team cells in standings table clickable */
.standings-table .team-cell.clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.standings-table .team-cell.clickable:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.playoff-bracket {
    padding: 0;
}

.playoff-bracket .conference-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.playoff-bracket .conference-section {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Conference headers */
.playoff-bracket h2 {
    text-align: center;
    margin: 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.playoff-bracket h3 {
    margin: 5px 0;
    color: #4a5568;
}

/* Section containers */
.bye-week,
.wild-card-round,
.rest-section {
    margin: 10px 0;
}

/* Container for bye and rest cards */
.playoff-matchup.bye,
.playoff-cards {
    background: #f7fafc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

/* Wild card matchup containers */
.playoff-matchup {
    margin: 5px 0;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.matchup-divider {
    font-weight: 500;
    color: #718096;
    padding: 0 5px;
    font-size: 0.9em;
}

/* Base card styles - applies to ALL team cards */
.team-card,
.playoff-card.outside {
    display: flex;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
    position: relative;  /* For absolute positioning of seed */
}

/* Seed styling */
.seed {
    position: absolute;
    top: 8px;
    left: 12px;
    font-weight: 800;  /* Extra bold */
    color: #a0aec0;    /* Lighter color */
    font-size: 0.9em;
    z-index: 1;  /* Ensure seed stays on top */
}

/* Team content layout */
.team-content {
    display: flex;
    align-items: center;
    gap: 12px;  /* Slightly increased gap */
    flex: 1;
    width: 100%;  /* Take full width */
}

/* Logo styling */
.team-logo {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

/* Team details container */
.team-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;  /* Take up remaining space */
}

/* Team text styles */
.team-name {
    font-weight: 600;  /* Slightly bolder */
    font-size: 1.1em;  /* Slightly larger */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-record {
    font-size: 0.9em;
    color: #718096;
}

.division-status {
    font-size: 0.8em;
    color: #718096;
}

/* Conference colors */
.conference-section.AFC {
    border-top: 4px solid #e53e3e;
}

.conference-section.NFC {
    border-top: 4px solid #3182ce;
}

/* Hover effects */
.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .playoff-matchup {
        flex-direction: column;
    }
    
    .team-card,
    .playoff-card.outside {
        width: 100%;
    }
    
    .matchup-divider {
        padding: 10px 0;
    }
}

/* Special styling for bye week cards */
.playoff-matchup.bye .team-card {
    padding: 20px;  /* More padding */
}

.playoff-matchup.bye .seed {
    position: static;  /* Reset position */
    font-size: 1.8em;  /* Much larger */
    font-weight: 900;
    margin-right: 20px;
    color: #2d3748;  /* Darker color */
}

.playoff-matchup.bye .team-content {
    gap: 20px;  /* Bigger gap */
}

.playoff-matchup.bye .team-logo {
    width: 48px;  /* Bigger logo */
    height: 48px;
}

.playoff-matchup.bye .team-details {
    gap: 4px;  /* More space between elements */
}

.playoff-matchup.bye .team-name {
    font-size: 1.4em;
    font-weight: 700;
}

.playoff-matchup.bye .team-record {
    font-size: 1.1em;
}

.playoff-matchup.bye .division-status {
    font-size: 0.9em;
}

/* Share button styles */
.share-button {
    background: #4267B2;  /* Facebook blue */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

.share-button:hover {
    background: #365899;
}

.share-button i {
    font-size: 0.9em;
}

.ai-analysis-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    gap: 8px;
}

/* Add these styles for the clinched indicator */
.clinched-status {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.85em;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.clinched-status:hover {
    opacity: 1;
}

.clinched-status.top-seed {
    color: #ffc107;  /* Bootstrap warning yellow */
}

.clinched-status.division {
    color: #17a2b8;  /* Bootstrap info blue */
}

.clinched-status.playoffs {
    color: #28a745;  /* Bootstrap success green */
}

.clinched-status i {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* Update team-card to support absolute positioning */
.team-card {
    position: relative;  /* For absolute positioning of clinched status */
    /* ... existing styles ... */
}

.clinched-status {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.clinched-status:hover {
    opacity: 1;
}

/* For playoff bracket (absolute positioning) */
.team-card .clinched-status {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.85em;
}

/* For team analysis (inline positioning) */
.team-name .clinched-status {
    font-size: 0.7em;
    margin-left: 8px;
    display: inline-block;
}

.clinched-status.top-seed {
    color: #ffc107;  /* Bootstrap warning yellow */
}

.clinched-status.division {
    color: #17a2b8;  /* Bootstrap info blue */
}

.clinched-status.playoffs {
    color: #28a745;  /* Bootstrap success green */
}

.clinched-status i {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.team-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-name-row .clinched-status {
    position: static;  /* Override absolute positioning */
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.team-name-row h3 {
    margin: 0;
}

.clinched-status.eliminated {
    color: #dc3545;  /* Bootstrap danger red */
}

/* Update the key styles */
.playoff-status-key {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.key-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.key-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key-item .clinched-status {
    position: static !important; /* Override absolute positioning */
    font-size: 1em;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-item span {
    color: #495057;
    font-size: 0.9rem;
}

/* Ensure consistent icon colors in the key */
.key-item .clinched-status.top-seed {
    color: #ffc107;
}

.key-item .clinched-status.division {
    color: #17a2b8;
}

.key-item .clinched-status.playoffs {
    color: #28a745;
}

.key-item .clinched-status.eliminated {
    color: #dc3545;
}

.key-item .clinched-status i {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* Add these styles for the mobile view clinch status */
.team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.team-info .clinched-status {
    position: static;  /* Override absolute positioning */
    font-size: 0.85em;
    margin: 0;
    display: inline-flex;
    align-items: center;
}

/* Ensure consistent colors in mobile view */
.team-info .clinched-status.top-seed {
    color: #ffc107;
}

.team-info .clinched-status.division {
    color: #17a2b8;
}

.team-info .clinched-status.playoffs {
    color: #28a745;
}

.team-info .clinched-status.eliminated {
    color: #dc3545;
}

.team-info .clinched-status i {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* Adjust division position spacing */
.division-position {
    margin-right: 8px;
}

/* Live game indicator styles */
.live-indicator {
    display: inline-flex;
    align-items: center;
    background-color: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7em;
    margin-top: 8px;
    gap: 8px;
    animation: pulse 2s infinite;
    white-space: nowrap;
}

.live-indicator i {
    font-size: 0.7em;
    flex-shrink: 0;
}

.live-indicator .status-wrapper {
    display: inline;
    white-space: nowrap;
}

.live-indicator .game-status 
.live-indicator .away-score
.live-indicator .home-score {
    display: inline;
    white-space: nowrap;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Schedule Section */
.schedule-content {
    max-width: 1200px;
    margin: 0 auto;
}

.schedule-week {
    margin-bottom: 2.5em;
}

.week-header {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e2e8f0;
}

.week-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1em;
}

.game-card {
    background: white;
    border-radius: 8px;
    padding: 1em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.game-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.game-card.completed {
    border-left: 3px solid #059669;
}

.game-card.upcoming {
    border-left: 3px solid #3b82f6;
}

.game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75em;
    font-size: 0.9em;
    color: #718096;
}

.game-matchup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75em;
}

.game-matchup-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    flex: 1;
}

.game-team {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.game-team-logo {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
}

.game-team .team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-team .team-abbr {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05em;
}

.game-matchup .team-score {
    font-size: 1.3em;
    font-weight: 700;
    color: #4a5568;
    min-width: 30px;
    text-align: center;
}

.game-matchup .team-score.winner {
    color: #059669;
}

.team-score-placeholder {
    min-width: 30px;
}

.game-team.winner .team-abbr {
    color: #059669;
}

.at-symbol {
    color: #a0aec0;
    font-weight: 500;
    padding: 0 0.5em;
}

.game-analysis-btn {
    width: 100%;
    padding: 0.6em 1em;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.game-analysis-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Game Analysis Modal */
.game-analysis-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-analysis-modal.active {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 700px;
    max-height: 80vh;
    width: 90%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 1em;
    right: 1em;
    background: none;
    border: none;
    font-size: 2em;
    color: #718096;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

.modal-header {
    padding: 2em 2em 1.5em 2em;
    border-bottom: 2px solid #e2e8f0;
}

.modal-date {
    margin: 0 0 0.5em 0;
    color: #2c3e50;
    font-size: 1.1em;
    text-align: center;
    font-weight: 600;
}

.modal-stadium {
    margin: 0 0 0.75em 0;
    color: #718096;
    font-size: 0.9em;
    text-align: center;
}

.modal-stadium i {
    color: #3b82f6;
    margin-right: 0.5em;
}

.modal-betting-weather {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-bottom: 1em;
    flex-wrap: wrap;
}

.modal-info-item {
    color: #4a5568;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.modal-info-item i {
    color: #3b82f6;
}

.modal-teams {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 1em;
}

.modal-team-container {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.75em;
    background: #f8fafc;
    border-radius: 8px;
}

.modal-team-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.modal-team-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.modal-team-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
}

.modal-team-abbr {
    font-size: 0.85em;
    color: #718096;
    font-weight: 500;
}

.modal-coach {
    font-size: 0.85em;
    color: #4a5568;
    margin-top: 0.25em;
}

.modal-coach i {
    color: #3b82f6;
    margin-right: 0.35em;
}

.modal-score {
    font-size: 2em;
    font-weight: 700;
    color: #2c3e50;
    margin-left: auto;
    padding-left: 1em;
}

.modal-vs-separator {
    text-align: center;
    color: #a0aec0;
    font-size: 1em;
    font-weight: 500;
    padding: 0.25em 0;
}

.modal-body {
    padding: 2em;
}

.modal-body p {
    line-height: 1.8;
    color: #4a5568;
    margin: 0 0 1em 0;
}

.modal-body ul {
    margin: 1em 0;
    padding-left: 1.5em;
    list-style-type: disc;
}

.modal-body li {
    line-height: 1.6;
    color: #4a5568;
    margin: 0.5em 0;
}

.modal-body strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Team Schedule Mini */
.team-schedule-games {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.schedule-game-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75em 1em;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #e2e8f0;
    transition: all 0.2s ease;
}

.schedule-game-mini:hover {
    background: #edf2f7;
}

.schedule-game-mini.completed {
    border-left-color: #cbd5e0;
}

.schedule-game-mini.win {
    border-left-color: #059669;
    background: #f0fdf4;
}

.schedule-game-mini.win:hover {
    background: #dcfce7;
}

.schedule-game-mini.completed:not(.win) {
    border-left-color: #ef4444;
}

.schedule-game-mini .game-info {
    display: flex;
    align-items: center;
    gap: 1em;
    flex: 1;
}

.schedule-game-mini .week {
    font-weight: 600;
    color: #718096;
    font-size: 0.9em;
    min-width: 2.5em;
}

.schedule-game-mini .date {
    color: #4a5568;
    font-size: 0.9em;
    min-width: 4em;
}

.schedule-game-mini .matchup {
    color: #2c3e50;
    font-weight: 500;
    flex: 1;
}

.schedule-game-mini .score {
    font-weight: 700;
    font-size: 1.05em;
    min-width: 3em;
    text-align: right;
}

.schedule-game-mini .win-score {
    color: #059669;
}

.schedule-game-mini .loss-score {
    color: #ef4444;
}

.mini-analysis-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5em 0.75em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.mini-analysis-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Game Impact Modal */
.game-impact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.modal-close i {
    font-size: 18px;
    color: #666;
}

.modal-header {
    padding: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.game-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.game-matchup .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s;
}

.game-matchup .team.root-against {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.game-matchup .team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.game-matchup .team span {
    font-weight: 700;
    font-size: 16px;
    color: #1f2937;
}

.vs-symbol {
    font-size: 24px;
    font-weight: 700;
    color: #9ca3af;
}

.game-info {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.root-against-banner {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.modal-body {
    padding: 24px;
}

.impact-display {
    text-align: center;
    margin-bottom: 32px;
}

.impact-score {
    display: inline-block;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 48px;
    font-weight: 800;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    margin-bottom: 12px;
}

.impact-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expected-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.expected-value-item {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.ev-team {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 600;
}

.ev-value {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
}

.probabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.prob-column h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.prob-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.prob-item:last-child {
    border-bottom: none;
}

.prob-item span:first-child {
    color: #6b7280;
    font-weight: 500;
}

.prob-value {
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .game-matchup .team img {
        width: 48px;
        height: 48px;
    }

    .impact-score {
        font-size: 36px;
        padding: 16px 32px;
    }

    .expected-values {
        grid-template-columns: 1fr;
    }

    .probabilities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
