/* Modern Dark Theme with Vibrant Accents */
body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-container {
    background: transparent;
}

.form-select-sm~.select2-container--bootstrap-5 .select2-selection--single {
    height: 38px;
    border: 1px solid #0094FF;
    outline: none;
}
.select2-container--bootstrap-5.select2-container--open.select2-container--below .select2-selection {
    box-shadow: none;
}
.form-select-sm~.select2-container--bootstrap-5 .select2-selection--single:focus {
    border-color: #0094FF;
    box-shadow: none;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
}
/* Card Styles - Clean White */
.card {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 1.25rem;
}

/* Modern Button Styles */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    color: #fff;
    border: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e0e0;
    color: #666;
}

.btn-outline-secondary:hover {
    background: #f0f0f0;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.text-primary {
    color: #0094FF !important;
}
#searchInput {
    border: 1px solid #ECECEC
}
#searchInput:focus {
    outline: none;
    box-shadow: none;
}
/* Date buttons - Modern Pills */
.date-btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    box-shadow: none;
    border: 1px solid #ECECEC;
    font-size: 12px;
    color: #AAAAAA;
}

.date-btn.active {
    color: #fff;
    background: #24A3FF;
}

/* Filter buttons */
.filter-btn.active {
    border: 1px solid #0094FF;
    color: #0094FF;
    /* box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); */
}

/* Form Controls */
.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.input-group-text {
    border-radius: 0 10px 10px 0;
    border: 1px solid #ECECEC;
    border-left: none;
    background: rgba(255, 255, 255, 0.9);

}

/* Custom Toggle Switch - HTML Only */
.custom-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-toggle {
    position: relative;
    width: 48px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #d0d0d0;
}

.custom-toggle.active {
    background: linear-gradient(90deg, #0094FF 0%, #80CAFF 100%);
    border-color: #0094FF;
}

.custom-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.custom-toggle.active .custom-toggle-slider {
    transform: translateX(24px);
}

.custom-toggle-label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #0094FF;
    user-select: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.custom-toggle:hover {
    box-shadow: 0 2px 8px rgba(0, 148, 255, 0.3);
}

.custom-toggle.active:hover {
    box-shadow: 0 2px 12px rgba(0, 148, 255, 0.5);
}
#totalMatches {
    color: #24A3FF !important;
    background: #F2F4F7;
    padding: 6px 8px;
    border-radius: 6px;
}
/* Form Switch - Modern Toggle */
.form-check-input:checked {
    background: linear-gradient(90deg, #0094FF 0%, #80CAFF 100%);
    outline: none;
    box-shadow: none;
    border: 1px solid #0094FF;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: none;
    /* box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25); */
}

/* Loading */
#loadingIndicator.d-none {
    display: none !important;
}

#loadingIndicator:not(.d-none) {
    display: block !important;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    color: #667eea;
}

/* Fixtures Content - Modern Design */
.league-group {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: none;
    background: #fff;
    border: 1px solid #139CFF;
}

.league-group:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.league-header {
    color: #000;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #F2F2F2;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.league-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.league-header-left span {
    white-space: nowrap;
}

.league-header-right {
    display: flex;
    align-items: center;
    gap: 0;
    margin-right: 20px;
    position: relative;
}

.league-odds-label {
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    width: 180px;
    min-width: 180px;
    position: relative;
}

/* Căn chỉnh với các nhóm odds - tính toán padding để thẳng hàng */
.league-header-right .league-odds-label:first-child {
    margin-left: calc(100px + 120px + 200px + 16px);
}

@media (max-width: 1200px) {
    .league-header-right .league-odds-label:first-child {
        margin-left: calc(100px + 120px + 150px + 16px);
    }
}

.league-header .lightning {
    font-size: 20px;
    animation: pulse 2s infinite;
}

.league-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 4px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Fixtures Container - Div Structure */
.fixtures-container {
    width: 100%;
    background: #fff;
}

.fixtures-header {
    background: #139CFF;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0;
}

.fixtures-header-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0;
}

.fixtures-header-row:last-child {
    border-bottom: none;
}

.fixtures-header-main {
    font-weight: 600;
    font-size: 13px;
}

.fixtures-header-sub {
    font-weight: 500;
    font-size: 12px !important;
    background: rgba(0, 0, 0, 0.1);
}

.fixture-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    background: #fff;
    padding-bottom: 40px;
    position: relative;
    background: #F2F2F2;
}
.btn-ountline-gray {
    border: 1px solid #ECECEC;
    box-shadow: none;
}
.fixture-row .team-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
}
.livescore-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #139CFF;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    padding: 5px 10px;
}

.fixture-row:hover {
    background: #f8f9fa;
}

.fixture-row:last-child {
    border-bottom: none;
}

/* Column widths matching table structure */
.fixture-col-time,
.fixtures-header-row .fixture-col-time {
    width: 100px;
    min-width: 100px;
    padding: 12px 8px;
    text-align: center;
    color: #fff;
    white-space: nowrap;
}

.fixture-col-score,
.fixtures-header-row .fixture-col-score {
    width: 120px;
    min-width: 120px;
    padding: 12px 8px;
    text-align: center;
    color: #fff;
    letter-spacing: 0.5px;
}

.fixture-col-team,
.fixtures-header-row .fixture-col-team {
    flex: 1;
    min-width: 200px;
    padding: 12px 8px;
    text-align: left;
}

.fixture-col-odds-group {
    display: flex;
    flex-direction: column;
    width: 240px;
    min-width: 240px;
    align-items: center;
}

.fixture-col-odds-label-center {
    padding: 8px 0;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    width: 100%;
}

.fixture-col-odds-row {
    display: flex;
    width: 100%;
}

.fixture-col-odds-group .fixture-col-odds {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
    font-weight: 500;
    font-size: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.fixture-col-odds-group .fixture-col-odds:last-child {
    border-right: none;
}

.fixture-col-odds {
    width: 80px;
    min-width: 80px;
    padding: 16px 8px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #f0f0f0;
}

.fixture-col-odds:last-child {
    border-right: none;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-actions {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}
.team-actions a:last-child {
    background: linear-gradient(180deg, #80CAFF 0%, #0094FF 100%);
    color: #fff;
    border-radius: 10px;
}

.team-actions .btn {
    font-size: 11px;
    padding: 2px 8px;
}

.fixtures-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 0;
}

.fixtures-table thead {
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.fixtures-table th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.fixtures-table th:last-child {
    border-right: none;
}

.fixtures-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    background: #fff;
}

.fixtures-table tbody tr:hover {
    background: #f8f9fa;
}

.fixtures-table tbody tr:last-child {
    border-bottom: none;
}

.fixtures-table td {
    padding: 16px 8px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #f0f0f0;
}

.fixtures-table td:last-child {
    border-right: none;
}

.time-cell {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
}

.time-live {
    color: #28a745;
    font-weight: 700;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.score-cell {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}

.team-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
}

.team-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.team-name {
    font-weight: 500;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
}

.odds-section {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.odds-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 80px;
}

.odds-header {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.odds-cell {
    min-width: 100px;
}

.odds-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.more-indicator {
    color: #999;
    font-size: 12px;
}

.odd-item {
    padding: 5px 5px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e0e0e0;
    min-width: 55px;
    gap: 5px;
}
.odd-value-1x2 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.odd-value {
    color: #666;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 500;
}

.odd-number {
    color: #37B349;
    font-size: 12px;
}

.odd-item:hover {
    background: #e8f5e9;
    transform: translateY(-1px);
    border-color: #37B349;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.odd-item:hover .odd-value {
    color: #333;
}

.odd-item:hover .odd-number {
    color: #28a745;
    font-weight: 800;
}

/* Select2 Custom Styling */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    min-height: 38px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
    color: #333;
    font-weight: 500;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 10px;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 8px 12px;
    margin: 8px;
    width: calc(100% - 16px);
    transition: all 0.3s ease;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 10px 16px;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s ease;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
}

.select2-container--bootstrap-5 .select2-results__option[aria-selected=true] {
    color: #fff;
}

.select2-container--bootstrap-5 .select2-results__option[aria-selected=true]:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.select2-container--bootstrap-5 .select2-results {
    max-height: 300px;
    padding: 8px 0;
}

.select2-container--bootstrap-5 .select2-results__message {
    padding: 12px;
    color: #666;
    text-align: center;
}

/* Icons */
.bi {
    font-size: 1.1rem;
}

.input-group-text .bi {
    color: #AAAAAA;
    font-weight: 600;
}

.filter-btn .bi {
    margin-right: 4px;
}

/* Empty State */
.card-body.text-center {
    padding: 3rem 1.5rem;
}

.display-1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Smooth Animations */
* {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Table Responsive Wrapper */
.table-responsive {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    background: #fff;
}

/* Shadow Effects */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Responsive */
@media (max-width: 768px) {
  
    .fixtures-table {
        font-size: 11px;
    }
    
    .fixtures-table th,
    .fixtures-table td {
        padding: 10px 6px;
    }
    
    .team-flag {
        width: 28px;
        height: 20px;
    }
    
    .score-cell {
        font-size: 16px;
    }
    
    .league-header {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }
    
    #leagueSelect {
        min-width: 100% !important;
    }
    
    .select2-container--bootstrap-5 {
        width: 100% !important;
    }
}
