/* Match Detail Page Styles */

/* League Standings Form Boxes - Circular style matching result indicators */
.league-standings-table .form-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 11px;
    color: white;
    margin: 0 1px;
    border: none;
    transition: all 0.2s ease;
}

.league-standings-table .form-box.form-win {
    background-color: #10b981;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.league-standings-table .form-box.form-draw {
    background-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.3);
}

.league-standings-table .form-box.form-loss {
    background-color: #dc2626;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

/* Form Indicator Styles - Same as form-box for league standings */
.league-standings-table .form-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 11px;
    color: white;
    margin: 0 1px;
    border: none;
    transition: all 0.2s ease;
}

.league-standings-table .form-indicator.form-w {
    background-color: #10b981;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.league-standings-table .form-indicator.form-d {
    background-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.3);
}

.league-standings-table .form-indicator.form-l {
    background-color: #dc2626;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

/* Form column cells - wider width to prevent row height issues */
.league-standings-table tbody td:nth-child(11) {
    width: 200px !important;
    min-width: 200px !important;
    white-space: nowrap;
}

/* Goal Statistics Cell Color Coding - Gradient based on percentage */
.league-goals-table tbody td.stat-cell {
    transition: background-color 0.2s ease;
}

/* Green gradient for positive stats (Over 2.5, Over 1.5, BTTS Yes) */
.league-goals-table tbody td.stat-cell.stat-very-low {
    background-color: #f0f9f4; /* Very light green */
}

.league-goals-table tbody td.stat-cell.stat-low {
    background-color: #d1fae5; /* Light green */
}

.league-goals-table tbody td.stat-cell.stat-medium {
    background-color: #a7f3d0; /* Medium green */
}

.league-goals-table tbody td.stat-cell.stat-high {
    background-color: #6ee7b7; /* Darker green */
}

.league-goals-table tbody td.stat-cell.stat-very-high {
    background-color: #34d399; /* Dark green */
}

/* Neutral gradient for neutral stats (Under 2.5, Under 1.5, BTTS No) */
.league-goals-table tbody td.stat-cell.stat-neutral-very-low {
    background-color: #f9fafb; /* Very light gray */
}

.league-goals-table tbody td.stat-cell.stat-neutral-low {
    background-color: #f3f4f6; /* Light gray */
}

.league-goals-table tbody td.stat-cell.stat-neutral-medium {
    background-color: #e5e7eb; /* Medium gray */
}

.league-goals-table tbody td.stat-cell.stat-neutral-high {
    background-color: #d1d5db; /* Darker gray */
}

.league-goals-table tbody td.stat-cell.stat-neutral-very-high {
    background-color: #9ca3af; /* Dark gray */
}

/* Match List Section Styles - Same as leagues-sidebar */
.match-list-section {
    background: var(--color-white);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: none;
    overflow: hidden;
    width: 100%;
    font-size: 11px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.match-list-section::-webkit-scrollbar {
    display: none;
}

.match-list-section .match-list-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    font-size: 20px;
    text-align: center;
}

/* Round Navigation Control - Option 1 Style */
.round-navigation-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 20px;
}

.round-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1a2942;
    flex-shrink: 0;
}

.round-nav-btn:hover:not(:disabled) {
    background: #e8ecf1;
    color: #1a2942;
    transform: scale(1.05);
}

.round-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.round-select-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.custom-round-select-wrapper {
    position: relative;
    flex: 0 0 auto;
    min-width: 120px;
    width: auto;
}

.custom-round-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    background: white;
    font-size: 15px;
    font-weight: 500;
    color: #1a2942;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    width: 100%;
}

.custom-round-select:hover {
    background-color: #f9fafb;
}

.custom-round-select.active {
    background-color: #f9fafb;
}

.custom-round-select-text {
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-round-select-arrow {
    font-size: 12px;
    color: #6b7280;
    margin-left: 8px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-round-select.active .custom-round-select-arrow {
    transform: rotate(180deg);
}

.custom-round-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: none;
    min-width: 100%;
    width: max-content;
}

.custom-round-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-round-select-dropdown::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 3px;
}

.custom-round-select-dropdown::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.custom-round-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.custom-round-select-dropdown.show {
    display: block;
}

.custom-round-select-option {
    padding: 10px 14px;
    font-size: 14px;
    color: #1a2942;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.custom-round-select-option:hover {
    background-color: #e8ecf1 !important;
    color: #1a2942;
}

.custom-round-select-option.selected {
    background-color: #e8ecf1;
    color: #1a2942;
    font-weight: 500;
}

.round-select option {
    padding: 10px;
    font-size: 14px;
}

.match-list-section .match-list-container {
    margin-top: 15px;
    font-size: 14px;
    font-family: var(--font-family-body, 'Inter', system-ui, -apple-system, sans-serif);
    width: 100%;
    box-sizing: border-box;
    contain: layout style;
}

.match-list-section .match-list-container .badge {
    font-size: 14px !important;
}

.match-list-section .full-row span,
.match-list-section .full-row div {
    font-size: 14px;
    font-weight: normal;
}

.match-list-section .full-row .fw-bold {
    font-weight: normal !important;
}

.match-list-section .full-row {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 2px;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
    min-height: 50px;
    font-family: var(--font-family-body, 'Inter', system-ui, -apple-system, sans-serif);
}

.match-list-section .full-row:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* Match List Vertical Layout Styles - Scoped to match-list-section only */
.match-list-section .full-row .match-date-cell {
    width: 15%;
    padding-left: 20px !important;
    padding-top: 0 !important;
    padding-right: 20px !important;
    padding-bottom: 0 !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.match-list-section .match-date-text {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: normal;
    text-align: left;
    font-family: var(--font-family-body, 'Inter', system-ui, -apple-system, sans-serif);
}

.match-list-section .full-row .match-teams-cell {
    width: 50%;
    padding-left: 0 !important;
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    margin-left: 30px !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    min-width: 0;
}

.match-list-section .full-row .match-score-cell {
    width: 10%;
    padding-left: 0 !important;
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    margin-left: 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-list-section .full-row .match-status-cell {
    width: 15%;
    padding-left: 0 !important;
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-list-section .league-table-team-logo-small {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.match-list-section .match-teams-cell .team-name {
    font-size: 14px;
    text-align: left;
    line-height: 1.2;
    font-weight: normal;
    font-family: var(--font-family-body, 'Inter', system-ui, -apple-system, sans-serif);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Match result styling - Winner, Loser, Draw */
.match-list-section .team-name.team-winner {
    color: #1a2942 !important;
}

.match-list-section .team-name.team-loser {
    color: #9ca3af !important;
}

.match-list-section .team-name.team-draw {
    color: #9ca3af !important;
}

.match-list-section .score-winner {
    color: #1a2942 !important;
}

.match-list-section .score-loser {
    color: #9ca3af !important;
}

.match-list-section .score-draw {
    color: #9ca3af !important;
}

.match-list-section .match-teams-cell .d-flex.flex-column {
    gap: 6px !important;
    align-items: flex-start !important;
}

.match-list-section .match-teams-cell .d-flex.align-items-center {
    gap: 4px !important;
    justify-content: flex-start !important;
}

.match-list-section .match-score-cell .fw-bold {
    font-size: 14px;
    line-height: 1.2;
    font-weight: normal !important;
    font-family: var(--font-family-body, 'Inter', system-ui, -apple-system, sans-serif);
}

.match-list-section .match-score-cell .d-flex.flex-column {
    gap: 2px !important;
}

/* Match Header Styles */
.match-header {
    background: linear-gradient(135deg, #d1d5db 0%, #e5e7eb 100%);
    color: #374151;
    padding: 32px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 100%;
}

.match-header-content {
    min-height: 120px;
    align-items: center;
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
}

.team-logo {
    height: 100px;
    width: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.team-name {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

.vs-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.match-info {
    text-align: center;
    font-size: 19.2px;
    font-weight: bold;
    margin: 16px auto 0 auto;
    opacity: 0.9;
    width: 100%;
    display: block;
}

/* Team Form Section Styles */
.team-form {
    background: white;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

#team-form-title {
    font-size: 28.8px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.team-form-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.team-form-content {
    min-height: 180px;
    max-height: 500px;
    overflow: hidden;
}

.team-form-half {
    padding: 16px;
}

.team-form-divider {
    width: 2px;
    background: #374151;
    height: 100%;
}

.team-form-table {
    width: 100%;
    font-size: 14.4px;
    border-collapse: collapse;
}


.team-form-table-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 8px;
    scrollbar-width: thin;
    scrollbar-color: #9ca3af #f3f4f6;
}

.team-form-table-container::-webkit-scrollbar {
    width: 6px;
}

.team-form-table-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.team-form-table-container::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 3px;
}

.team-form-table-container::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.team-form-table th,
.team-form-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #6b7280;
    vertical-align: middle;
}

.team-form-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

/* Column Widths */
.date-column {
    width: 15%;
}

.team-names-column {
    width: 60%;
}

.team-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-team-row,
.away-team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.score {
    font-weight: bold;
    color: #374151;
    min-width: 20px;
    text-align: center;
}

.score-column {
    width: 10%;
}

.result-column {
    width: 15%;
}

/* ===== STYLE VARIATION 1: "Vertical and Winner Bold" (COMMENTED OUT) ===== */
/* This style bolds the winning team name and shows teams vertically stacked */

/*
.result-win {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.result-draw {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #9ca3af;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.result-loss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}
*/

/* ===== STYLE VARIATION 2: "Relevant Team Bold" (COMMENTED OUT) ===== */
/* This style always bolds the relevant team name and its score regardless of result */


/*.result-win-relevant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}*/


/* ===== STYLE VARIATION 5: "Horizontal Black Colored" (SAVED) ===== */
/* This style displays matches horizontally with black team names and vs separator */

/*
.result-win-horizontal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.result-draw-horizontal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #9ca3af;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.result-loss-horizontal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}
*/

/* Horizontal layout specific styles */
/*
.team-column {
    width: 25%;
    text-align: center;
}

.score-column {
    width: 20%;
    text-align: center;
}

.score-separator {
    margin: 0 8px;
    color: #6b7280;
    font-weight: normal;
}
*/
.score-relevant {
    color: #000000 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
}

*/

/* ===== STYLE VARIATION 6: "Horizontal Colored" (SAVED) ===== */
/* This style displays match details in a single horizontal row with result-based coloring */

/*
.team-name.team-win {
    color: #10b981 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
}

.team-name.team-draw {
    color: #374151 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
}

.team-name.team-loss {
    color: #dc2626 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
}

/*
.score.score-win {
    color: #10b981 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
}

.score.score-draw {
    color: #374151 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
}

.score.score-loss {
    color: #dc2626 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
}
*/

/*
.result-win-relevant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.result-draw-relevant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #9ca3af;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.result-loss-relevant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}
*/

/* ===== STYLE VARIATION 3: "Relevant Team Colored" (SAVED) ===== */
/* This style colors the relevant team name based on result: green for wins, red for losses, black for draws */

/*
.result-win-colored {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.result-draw-colored {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #9ca3af;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.result-loss-colored {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}
*/

/* Team name color classes for the third style */
/*
.team-name-win {
    color: #10b981 !important;
    font-weight: bold;
}

.team-name-draw {
    color: #374151 !important;
    font-weight: bold;
}

.team-name-loss {
    color: #dc2626 !important;
    font-weight: bold;
}
*/  

/* ===== STYLE VARIATION 4: "Relevant Team & Score Colored" (ACTIVE) ===== */
/* This style colors both the relevant team name and score based on result: green for wins, red for losses, black for draws */

/* Ultra-specific result indicator rules to override any conflicts */
.team-form-table .result-column span.result-win-colored-full {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #10b981 !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 14px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3) !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    transition: all 0.2s ease !important;
}

/* Additional backup rule for win indicators */
.result-win-colored-full {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #10b981 !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 14px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3) !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    transition: all 0.2s ease !important;
}


.team-form-table .result-column span.result-draw-colored-full {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #9ca3af !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 14px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.3) !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    transition: all 0.2s ease !important;
}

.team-form-table .result-column span.result-loss-colored-full {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #dc2626 !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 14px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3) !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    transition: all 0.2s ease !important;
}

/* Team name and score color classes for the fourth style */
.team-name-win-full {
    color: #10b981 !important;
    font-weight: bold;
}

.team-name-draw-full {
    color: #374151 !important;
    font-weight: bold;
}

.team-name-loss-full {
    color: #dc2626 !important;
    font-weight: bold;
}

/* Relevant team scores - colored and bold */
/* Using .score.score-win, .score.score-draw, .score.score-loss instead */

/* Score classes for Version 4 - colored and bold */
.score.score-win {
    color: #10b981 !important;
    font-weight: bold !important;
}

.score.score-draw {
    color: #374151 !important;
    font-weight: bold !important;
}

.score.score-loss {
    color: #dc2626 !important;
    font-weight: bold !important;
}

/* Default score styling - opponent scores are normal weight */
.score {
    font-weight: normal !important;
}

/* ===== STYLE VARIATION 5: "Pill Style" (PREVIOUS VERSION) ===== */
/* This style uses pill-shaped indicators instead of circles */

/*
.result-win-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    border: none;
    min-width: 32px;
    text-align: center;
    transition: all 0.2s ease;
}

.result-draw-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #9ca3af;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.3);
    border: none;
    min-width: 32px;
    text-align: center;
    transition: all 0.2s ease;
}

.result-loss-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    border: none;
    min-width: 32px;
    text-align: center;
    transition: all 0.2s ease;
}
*/

/* ===== STYLE VARIATION 4: "Gradient Style" (PREVIOUS VERSION) ===== */
/* This style uses gradient backgrounds instead of solid colors */

/*
.result-win-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.result-draw-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.result-loss-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}
*/

/* ===== STYLE VARIATION 5: "Icon Style" (ALTERNATIVE) ===== */
/* This style uses icons instead of letters */

/*
.result-win-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.result-draw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #9ca3af;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.result-loss-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}
*/

/* Hover effects for all styles */
.result-win:hover,
.result-draw:hover,
.result-loss:hover,
.result-win-relevant:hover,
.result-draw-relevant:hover,
.result-loss-relevant:hover,
.result-win-colored:hover,
.result-draw-colored:hover,
.result-loss-colored:hover,
.result-win-colored-full:hover,
.result-draw-colored-full:hover,
.result-loss-colored-full:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .match-header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team-name {
        font-size: 1.5rem;
    }
    
    .vs-separator {
        font-size: 32px;
    }
    
    .team-form-content {
        flex-direction: column;
    }
    
    .team-form-half {
        width: 100% !important;
        padding: 1rem 0;
    }
    
    .team-form-divider {
        display: none;
    }
    
    .team-form-table {
        font-size: 0.8rem;
    }
}

/* Hover Effects */
.team-form-table tbody tr:hover {
    background-color: #f9fafb;
    transition: background-color 0.2s ease;
}

.team-logo:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Loading States */
.team-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animation for new matches */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-form-table tbody tr {
    animation: fadeInUp 0.3s ease-out;
}

/* ===== SIMILAR MATCHES STYLES ===== */

/* Team logo small for similar matches */
.team-logo-small {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* List group item small */
.list-group-item.small {
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

/* Card body h6 styling */
.card-body h6 {
    font-weight: 600;
    margin-bottom: 8px;
}

/* Similar Matches Header */
.similar-matches-header {
    background-color: transparent;
    border-bottom: 2px solid #e5e7eb;
    padding: 1rem 1.25rem;
}

.similar-matches-header h3 {
    color: var(--color-primary);
    font-weight: 600;
    margin: 0;
}

/* Team Form Header - Same style as Similar Matches */
.team-form-header {
    background-color: transparent;
    border-bottom: 2px solid #e5e7eb;
    padding: 0.75rem 1.25rem 1rem 1.25rem;
    margin-top: -0.5rem;
}

.team-form-header h3 {
    color: var(--color-primary);
    font-weight: 600;
    margin: 0;
}

/* Similar Matches Section Spacing */
#similar-matches-row {
    margin-bottom: 2rem;
}

/* Team Form Section Spacing */
#team-form-row {
    margin-bottom: 2rem;
}

/* League Table Section Styles */
.league-table {
    background: white;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.league-table-content {
    min-height: 180px;
}

/* League Table Section Spacing */
#league-table-row {
    margin-bottom: 3rem;
}

/* Similar Matches Container */
.similar-matches-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    scrollbar-width: thin;
    scrollbar-color: #9ca3af #f3f4f6;
}

/* Similar Matches Card - Match team form box-shadow */
#similar-matches-row .card.border-primary {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.similar-matches-container::-webkit-scrollbar {
    width: 6px;
}

.similar-matches-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.similar-matches-container::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 3px;
}

.similar-matches-container::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Similar Matches Table */
.similar-matches-table {
    margin-bottom: 0;
    font-size: 14.4px;
}

.similar-matches-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    padding: 0.75rem;
}

/* Match header - remove left and right padding */
.similar-matches-table th:nth-child(2) {
    padding-left: 0;
    padding-right: 0;
}

.similar-matches-table td {
    padding: 0.75rem 0;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
}

.similar-match-row:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* Match Teams Column */
.match-teams {
    min-width: 160px;
    max-width: 180px;
    padding-left: 0;
    padding-right: 0;
}

.match-teams .d-flex {
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.team-name-small {
    font-weight: 500;
    color: #374151;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.vs-separator-small {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

/* Score Display */
.score-display {
    font-weight: 600;
    font-size: 1rem;
    color: #374151;
}

.score-home, .score-away {
    min-width: 20px;
    display: inline-block;
}

.score-separator {
    margin: 0 0.25rem;
    color: #6b7280;
}

/* Similarity Badge */
.similarity-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 50px;
}

.similarity-high {
    background-color: #2980b9;
    color: #ffffff;
    border: none;
    box-shadow: 0 1px 3px rgba(41, 128, 185, 0.3);
}

.similarity-medium {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    box-shadow: 0 1px 3px rgba(52, 152, 219, 0.3);
}

.similarity-low {
    background-color: #85c1e9;
    color: #0d1b2a;
    border: none;
    box-shadow: 0 1px 3px rgba(133, 193, 233, 0.3);
}

/* Broken Lightbulb Icon for No Insights */
.broken-lightbulb-icon {
    font-size: 2rem !important;
    opacity: 0.5;
    position: relative;
    display: inline-block;
    filter: grayscale(100%);
}

.broken-lightbulb-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 8px;
    background: #dc2626;
    clip-path: polygon(
        0% 100%,
        10% 0%,
        25% 40%,
        40% 10%,
        55% 50%,
        70% 5%,
        85% 45%,
        100% 0%,
        100% 100%
    );
    z-index: 1;
}

/* Match Insights Section */
.future-data-placeholder .card {
    height: 100%;
}

.future-data-placeholder .card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Responsive Design for Similar Matches */
@media (max-width: 768px) {
    .similar-matches-table {
        font-size: 0.8rem;
    }
    
    .match-teams {
        min-width: 150px;
    }
    
    .team-name-small {
        font-size: 0.8rem;
    }
    
    .vs-separator-small {
        font-size: 0.7rem;
        margin: 0 0.25rem;
    }
    
    .score-display {
        font-size: 14.4px;
    }
    
    .similarity-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        min-width: 40px;
    }
    
    /* Stack columns on mobile for 60/40 split */
    .col-md-7, .col-md-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* League Table Styles */
.league-standings-table {
    margin-bottom: 0;
    font-size: 13px;
}

.league-table-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Position Box Style - Option 18: Square with Corner Cut */
.league-standings-table tbody td.position-box-cell {
    padding: 6px 6px !important;
    text-align: center;
    vertical-align: middle;
}

.league-standings-table tbody td.position-box-cell .position-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 80% 100%, 0 100%);
    border-radius: 0;
}

/* Promotion Legend Styles */
.promotion-legend {
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-top: 2px solid #dee2e6;
}

.promotion-color-box {
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.promotion-text {
    color: #495057;
    font-weight: 500;
}

.table.league-standings-table thead th,
.league-standings-table.table thead th {
    font-weight: 600;
    font-size: 13px;
    padding: 8px 8px !important;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.table.league-standings-table tbody td,
.league-standings-table.table tbody td {
    padding: 6px 8px !important;
    vertical-align: middle;
}

.league-standings-row:hover {
    background-color: #f8f9fa;
}

.league-standings-table tbody tr:nth-child(1),
.league-standings-table tbody tr:nth-child(2),
.league-standings-table tbody tr:nth-child(3) {
    background-color: #e8f5e9;
}

.league-standings-table tbody tr:nth-last-child(-n+3) {
    background-color: #ffebee;
}

@media (max-width: 768px) {
    .league-standings-table {
        font-size: 13px !important;
    }
    
    .league-standings-table thead th,
    .league-standings-table tbody td {
        padding: 6px 8px !important;
    }
}

/* League Table Tabs - Minimal Rounded Pills */
.league-table-tabs {
    border: none;
    margin-bottom: 0;
    padding: 6px;
    display: flex;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    gap: 4px;
}

.league-table-tabs .nav-item {
    margin-bottom: 0;
}

.league-table-tabs .nav-link {
    color: #1a2942 !important;
    border: none;
    padding: 12px 32px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 50px;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    min-width: 80px;
}

.league-table-tabs .nav-link:hover {
    color: #2c3e50 !important;
    background-color: rgba(255, 255, 255, 0.7);
}

.league-table-tabs .nav-link:not(.active) {
    color: #1a2942 !important;
}

.league-table-tabs .nav-link.active {
    color: #ffffff !important;
    background-color: #3498db;
    font-weight: 600;
}

.league-table-tabs .nav-link.active:hover {
    color: #ffffff !important;
    background-color: #2980b9;
}

.league-table-tabs .nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.tab-content {
    padding-top: 15px;
} 