/* Essential styles for league4.php */

/* Layout */

.main-content {
    padding: 20px 0;
}

/* Filters */
.filters-container {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.filters-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-group {
    /* flex: 1; */
    /* min-width: 150px; */
    margin: 0;
}

.ranking-filter-group {
    background-color: #f8f0e5;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #d35602;
    margin-right: 12px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
}

.filter-group select {
    /* width: 100%; */
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 12px;
}

.filter-group input[type="checkbox"] {
    margin: 0;
}

@media (max-width: 768px) {
    .filters-form {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-group {
        flex: 0 0 auto;
    }
    
    .filter-group select {
        width: 100px;
    }
}

.filter-item select,
.filter-item input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.toggle-label {
    font-size: 12px;
    font-weight: 500;
}

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

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

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

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

input:checked + .toggle-slider {
    background-color: #2196F3;
}

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

/* Fixtures */
.fixtures-container {
    margin-bottom: 30px;
    font-family: 'Bio Sans';

}

.date-card,
.day-item {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.1); */
    border: 1px solid whitesmoke;
    background: white;
}

.embedded-calendar {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    /* height: 600px; */
}

.embedded-calendar .fixtures-container {
    height: 100%;
    overflow-y: auto;
    background-color: #fff;
    /* padding: 20px; */
}

.date-header {
    background-color: var(--primary);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
}

.today-date .date-header,
.current-day .date-header {
    background-color: orange;
}

.venue-card,
.venue-group {
    background-color: #f5f5f5;
    padding: 0;
}

.venue-group:last-child {
    border-bottom: none;
}

.venue-header {
    background-color: #ecf0f1;
    padding: 8px 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    color: #2c3e50;
}

.venue-header:hover {
    background-color: #e0e0e0;
}

.venue-header i {
    margin-right: 4px;
    color: #e74c3c;
}

.fixture-item {
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    gap: 8px;
    font-size: 12px;
    flex-wrap: wrap;
}

.fixture-score {
    background-color: var(--primary, #e74c3c);
    color: white;
    padding: 0 5px;
    border-radius: 2px;
    margin: 0 1px;
    font-size: 12px;
    font-weight: bold;
}

.division-label {
    color: var(--primary, #e74c3c);
    background-color: white;
    font-size: 12px;
    text-align: center;
    margin-left: auto;
    text-transform: uppercase;
    font-weight: bold;
}

.premier-division {
    background-color: #e74c3c;
    color: white;
}

/* Messages */
.no-fixtures, .loading, .error {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.loading {
    color: #2196F3;
    font-weight: 500;
}

.error {
    color: #e74c3c;
    font-weight: 500;
}

.alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Past date styles */
.past-date {
    opacity: 0.5;
}

.past-dates-container {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    background: #fff;
}

.past-dates-toggle {
    padding: 10px 15px;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.past-dates-toggle:hover {
    background: #eee;
}

.past-dates-toggle::after {
    content: "▼";
    font-size: 12px;
    transition: transform 0.2s;
}

.past-dates-toggle.collapsed::after {
    transform: rotate(-90deg);
}

.past-dates-content {
    display: none;
    padding: 10px;
}

.past-dates-content.expanded {
    display: block;
}

.past-dates-content .day-item {
    margin: 10px 0;
}

.past-dates-content .day-item:first-child {
    margin-top: 0;
}

.calendar-day.past-date {
    background: #f5f5f5;
}

.calendar-day.past-date .calendar-venue-group {
    border-color: #eee;
}

.calendar-day.past-date .calendar-fixture {
    border-left-color: #ddd;
}

.day-item.past-date {
    background: #fafafa;
    margin-bottom: 10px;
}

.day-item.past-date .date-header {
    background: #999;
}

.day-item.past-date .venue-group {
    border-color: #eee;
}

.day-item.past-date .venue-header {
    background: #f0f0f0;
}

.day-item.past-date .fixture-division {
    color: #999;
}

/* Current day highlight */
.calendar-day.current-day {
    border: 2px solid #c44f00;
    background: #fff3eb;
}

.day-item.current-day .date-header {
    background: var(--primary);
}

/* Filter wrapper styles */
.filter-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.clear-filter {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    padding: 0 5px;
}

.clear-filter:hover {
    color: #000;
}

select {
    padding-right: 25px;
}

@media (max-width: 480px) {
    .filter-container {
        padding: 8px;
    }
    
    .filter-header {
        margin-bottom: 4px;
    }
    
    .filter-title {
        font-size: 12px;
    }
}

/* Venue grouping styles */
.venue-info {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}

.venue-info h3 {
    margin-top: 0;
    color: #e74c3c;
}

.venue-info p {
    margin: 5px 0;
}

.venue-info .address {
    font-style: italic;
    color: #666;
}

/* Filter styles */
.filter-container {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 0 4px;
    width:300px;
}

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    width:50%;
}

.filter-title {
    font-size: 0.85em;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.filter-title:last-child {
    text-align: center;
    max-width: 100px;
}

.filter-group {
    /* flex: 1; */
    /* min-width: 200px; */
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.filter-group select {
    /* width: 100%; */
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
}

/* Past date styles */
.past-date {
    opacity: 0.7;
}

.past-dates-container {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    background: #fff;
}

.past-dates-toggle {
    padding: 10px 15px;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.past-dates-toggle:hover {
    background: #eee;
}

.past-dates-toggle::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.past-dates-toggle.collapsed::after {
    transform: rotate(-90deg);
}

/* Filter wrapper styles */
.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

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

.toggle-container label {
    margin-right: 10px;
    font-weight: 600;
    color: #2c3e50;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

input:checked + .toggle-slider {
    background-color: #2196F3;
}

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

/* Result label styles */
.result-label {
    display: inline-block;
    background-color: #ff9800; /* Orange background */
    color: white;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-left: 5px;
    vertical-align: middle;
    white-space: nowrap;
    float: none;
}

.fixture-division {
    color: #666;
    font-size: 12px;
    margin-left: auto;
    white-space: nowrap;
}

/* Make result labels in calendar view slightly smaller */
.calendar-day .result-label {
    font-size: 0.75em;
    padding: 1px 4px;
}

/* Fixture display with flexbox for proper alignment */
.fixture {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.fixture-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.match-teams {
    white-space: nowrap;
}

/* Calendar fixture styling */
.calendar-fixture .fixture-content {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

/* Logs page styles */
.logs-container {
    margin-top: 30px;
}

.division-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 12px;
}

.division-table caption {
    font-size: 1.1em;
    font-weight: bold;
    padding: 8px 10px;
    background-color: #f15a22;
    color: white;
    text-align: left;
    border-radius: 5px 5px 0 0;
}

.division-table th {
    background-color: #f8f9fa;
    padding: 8px;
    text-align: center;
    border-bottom: 2px solid #ddd;
    font-size: 0.85em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: help;
}

.team-name, th.team-name, td.team-name {
    text-align: left !important;
}

.division-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

/* Team name styling moved to combined selector above */

.division-table tr:last-child td {
    border-bottom: none;
}

.division-table tr:hover {
    background-color: #f5f5f5;
}

.team-rank {
    font-weight: bold;
    text-align: center;
}

.team-name {
    font-weight: 600;
}

.team-points {
    font-weight: bold;
    text-align: center;
}

.team-games {
    text-align: center;
}

.team-diff {
    text-align: center;
}



        /* List view styles */
        .day-item {
            margin-bottom: 15px;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            background: #fff;
        }
        
        .date-header {
            font-weight: bold;
            background: var(--primary);
            color: white;
            padding: 8px 12px;
            font-size: 1em;
            border-radius: 6px 6px 0 0;
        }
        
        .venue-group {
            background: white;
            overflow: hidden; /* This ensures that the contents of .venue-group do not spill over */
        }

        .venue-header {
            background: #e8e8e8;
            color: #333;
            padding: 6px 10px;
            font-weight: bold !important;
            /* border-bottom: 1px solid #e0e0e0; */
            font-size: 11px !important;
            text-transform: uppercase;
            cursor: pointer;

            /* Add these properties for text truncation with an ellipsis */
            overflow: hidden;       /* Ensures content does not overflow container */
            white-space: nowrap;    /* Prevents text from wrapping onto new lines */
            text-overflow: ellipsis;/* Displays an ellipsis ('...') to represent clipped text */

            /* Set a width or max-width if necessary for proper overflowing */
            width: 100%; /* Assuming full width of parent, adjust as needed */
        }


        .venue-header:hover {
            background: #dcdcdc;
        }

        .venue-header::before {
            /* content: "📍"; */
            font-size: 1em;
            margin-right: 0px;
        }

        .venue-fixtures {
            padding: 6px 10px;
            background: white;
        }

        .fixture {
            margin: 0px 0;
            /* padding: 3px 6px; */
            font-size: 12px;
            line-height: 1.2;
            color: dimgrey;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .fixture-division {
            color: #c44f00;
            font-size: 0.85em;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-left: 6px;
        }
        
        /* Calendar view styles */
        .calendar-month {
            margin-bottom: 30px;
        }
        
        .calendar-month h2 {
            margin-bottom: 10px;
            color: #c44f00;
        }
        
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
        }
        
        .day-names {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .day-name {
            padding: 5px;
        }
        
        .calendar-day {
            min-height: 100px;
            padding: 5px;
            border: 1px solid #e0e0e0;
            background: white;
        }
        
        .day-number {
            font-weight: bold;
            text-align: right;
            color: #666;
            margin-bottom: 5px;
            font-size: 12px;
        }
        
        .calendar-fixture {
            font-size: 12px;
            margin-top: 2px;
            padding: 2px 4px;
            border-radius: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            border-left: 2px solid #ff8533;
            color: dimgrey;
        }
        
        .empty-day {
            background: #f9f9f9;
        }
        
        .view-toggle {
            margin-bottom: 20px;
            text-align: center;
        }
        
        button {
            padding: 12px 20px;
            background: #e0e0e0;
            color: #333;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            margin-right: 10px;
            transition: all 0.2s ease;
        }
        
        button:hover {
            background: #d3d3d3;
            transform: translateY(-1px);
        }
        
        button.active {
            background: #c44f00;
            color: white;
        }
        
        /* Mobile responsiveness */
        @media (max-width: 768px) {
            .logs-container {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                margin: 0 -10px;
                padding: 0 10px;
            }
            
            h1 {
                font-size: 1.4em;
                text-transform: uppercase;
                text-align: center;
                margin-bottom: 30px;
            }
            .calendar-grid {
                grid-template-columns: repeat(1, 1fr);
                gap: 10px;
            }
            
            .day-names {
                display: none;
            }
            
            .calendar-day {
                min-height: auto;
                padding: 15px;
            }
            
            .day-number {
                font-size: 1.2em;
                margin-bottom: 10px;
                text-align: left;
            }
            
            .empty-day {
                display: none;
            }
            
            .calendar-month h2 {
                text-align: center;
                margin-bottom: 15px;
            }
            
            .view-toggle {
                display: none !important;
            }
            
            .filter-container {
                padding: 10px;
            }
            
            .filter-wrapper {
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                gap: 8px;
                align-items: flex-end;
            }
            
            .filter-item {
    flex: 1;
    min-width: 0;
}

.filter-item:last-child {
    max-width: 100px;
    display: flex;
    justify-content: center;
}

.filter-item select {
    width: 100%;
    padding: 6px 24px 6px 8px;
    font-size: 14px;
    border-radius: 6px;
    background-color: #fff;
    border: 1px solid #ddd;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px top 50%;
    background-size: 10px auto;
}
            
            .filter-item label {
                display: block;
                margin-bottom: 5px;
                font-size: 0.85em;
                font-weight: 600;
                color: #2c3e50;
            }
            
            .filter-item select {
                width: 100%;
                padding: 8px;
                font-size: 14px;
                border-radius: 6px;
                background-color: #fff;
                border: 1px solid #ddd;
                appearance: none;
                -webkit-appearance: none;
                background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
                background-repeat: no-repeat;
                background-position: right 8px top 50%;
                background-size: 10px auto;
                text-overflow: ellipsis;
                overflow: hidden;
            }
            
            .toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

input:checked + .toggle-slider {
    background-color: #2196F3;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}
            
            .toggle-label {
                display: block;
                margin-bottom: 5px;
                font-size: 0.85em;
                font-weight: 600;
                color: #2c3e50;
            }
            
            .fixture {
                margin: 0px 0;
            }
            
            /* Table styles for mobile */
            .division-table {
                font-size: 12px;
                width: 100%;
                table-layout: fixed;
            }
            
            /* Set column widths */
            .team-rank { width: 5%; }
            .team-name { width: 30%; }
            .team-played, .team-won, .team-walkover, .team-lost, 
            .team-match-diff, .team-game-diff, .team-win-percent, .team-points {
                width: 7%;
            }
            
            .division-table caption {
                font-size: 1em;
                padding: 6px 8px;
            }
            
            .division-table th {
                padding: 6px;
                font-size: 0.75em;
            }
            
            .division-table td {
                padding: 4px 6px;
            }
            
            /* Ensure all columns are visible but compact on small screens */
            @media (max-width: 480px) {
                .filter-container {
                    padding: 8px;
                }
                
                .filter-header {
                    margin-bottom: 4px;
                }
                
                .filter-title {
                    font-size: 12px;
                }
                

        
        /* Past date styles */
        .past-date {
            opacity: 0.5;
        }
        
        .past-dates-container {
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            margin-bottom: 15px;
            background: #fff;
        }
        
        .past-dates-toggle {
            padding: 10px 15px;
            background: #f5f5f5;
            color: #666;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 600;
        }
        
        .past-dates-toggle:hover {
            background: #eee;
        }
        
        .past-dates-toggle::after {
            content: "▼";
            font-size: 12px;
            transition: transform 0.2s;
        }
        
        .past-dates-toggle.collapsed::after {
            transform: rotate(-90deg);
        }
        
        .past-dates-content {
            display: none;
            padding: 10px;
        }
        
        .past-dates-content.expanded {
            display: block;
        }
        
        .past-dates-content .day-item {
            margin: 10px 0;
        }
        
        .past-dates-content .day-item:first-child {
            margin-top: 0;
        }
        
        .calendar-day.past-date {
            background: #f5f5f5;
        }
        
        .calendar-day.past-date .calendar-venue-group {
            border-color: #eee;
        }
        
        .calendar-day.past-date .calendar-fixture {
            border-left-color: #ddd;
        }
        
        .day-item.past-date {
            background: #fafafa;
            margin-bottom: 10px;
        }
        
        .day-item.past-date .date-header {
            background: #999;
        }
        
        .day-item.past-date .venue-group {
            border-color: #eee;
        }
        
        .day-item.past-date .venue-header {
            background: #f0f0f0;
        }
        
        .day-item.past-date .fixture-division {
            color: #999;
        }
        
        /* Current day highlight */
        .calendar-day.current-day {
            border: 2px solid #c44f00;
            background: #fff3eb;
        }
        
        .day-item.current-day {
            /* border-left: 4px solid #c44f00; */
        }
        
        .day-item.current-day .date-header {
            background: var(--primary);
        }
        
        /* Filter wrapper styles */
        .filter-wrapper {
            position: relative;
            display: inline-block;
            margin-right: 10px;
        }

        .clear-filter {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 18px;
            color: #666;
            padding: 0 5px;
        }

        .clear-filter:hover {
            color: #000;
        }

        select {
            padding-right: 25px; /* Make room for the clear button */
        }
        
        /* Toggle Switch Styles */
        .toggle-container {
            display: flex;
            align-items: center;
        }
        
        .toggle-label {
            margin-right: 8px;
            font-size: 14px;
        }
        
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 40px !important;
            min-width: auto !important;
            height: 20px;
            cursor: pointer;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 100%;
            height: 100%;
            position: absolute;
            z-index: 1;
            cursor: pointer;
        }
        
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 20px;
        }
        
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .toggle-slider {
            background-color: #2196F3;
        }
        
        input:checked + .toggle-slider:before {
            transform: translateX(20px);
        }
        
        /* Label styles */
        .result-label, .venue-label, .division-label {
            display: inline-block;
            font-weight: bold;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.85em;
            margin-left: 5px;
            vertical-align: middle;
        }

        .result-label {
            background-color: #ff9800; /* Orange background */
            color: white;
        }

        .venue-label {
            background-color: #4CAF50; /* Green background */
            color: white;
        }

        .division-label {
            background-color: #2196F3; /* Blue background */
            color: white;
        }

        /* Fixture status styles */
        .completed-fixture {
            color: #4CAF50; /* Green text */
            font-weight: 500;
        }

        .in-progress-fixture {
            color: #ff9800; /* Orange text */
            font-weight: 500;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.6; }
            100% { opacity: 1; }
        }
        
        /* Make result labels in calendar view slightly smaller */
        .calendar-day .result-label {
            font-size: 0.75em;
            padding: 1px 4px;
        }

/* Additional styles for the new layout */
.fixtures-container {
    margin-bottom: 30px;
}

.past-fixtures-accordion {
    margin-top: 30px;
    clear: both;
    width: 100%;
    overflow: visible;
    position: relative;
}

.past-dates-container {
    margin-bottom: 30px;
    position: relative;
}

.past-dates-toggle {
    margin-bottom: 0;
    background-color: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-bottom: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.date-card {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    /* border: 1px solid #ddd; */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.date-header {
    background-color: var(--primary);
    color: white;
    padding: 3px 10px;
    font-weight: bold;
    cursor: pointer;
}

.today-date .date-header {
    background-color: orange;
}

.past-date .date-header {
    background-color: #7f8c8d;
    opacity: 0.9;
}

.venue-card {
    background-color: #f5f5f5;
    margin-bottom: 5px;
}

.venue-header {
    background-color: #ecf0f1;
    padding: 8px 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.venue-header:hover {
    background-color: #e0e0e0;
    cursor: pointer
}

.venue-header i {
    margin-right: 4px;
    color: #e74c3c;
}

.fixture-item {
    padding: 4px 8px;
    border-bottom: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 4px;
    font-size: 12px;
    flex-wrap: wrap;
}

.fixture-teams {
    /* flex-grow: 1; */
}

.fixture-score {
    background-color: var(--primary);
    color: white;
    padding: 0px 5px;
    border-radius: 2px;
    margin: 0 1px;
    font-size: 12px;
    font-weight: bold;
}

.division-label {
    color: var(--primary);
    background-color: white;
    font-size: 12px;
    text-align: center;
    margin-left: auto;
    text-transform: uppercase;
    font-weight: bold;
}

.premier-division {
    background-color: #e74c3c;
}

.past-fixture {
    opacity: 0.8;
    background-color: #f8f9fa;
    border-left: 3px solid #ddd;
}

.accordion-content {
    display: none;
    margin-bottom: 20px;
    clear: both;
    width: 100%;
    overflow: visible;
    position: relative;
    border: 1px solid #e0e0e0;
    border-top: none;
    padding-top: 10px;
    background-color: #f9f9f9;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.accordion-toggle {
    cursor: pointer;
    background-color: var(--primary);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.accordion-toggle h2 {
    margin: 0;
    font-size: 1.2em;
    color: white;
    font-weight: 500;
}

.accordion-toggle::after {
    content: '▼';
    float: right;
    transition: transform 0.3s;
    color: #777;
}

.accordion-toggle.collapsed::after {
    transform: rotate(-90deg);
}

.compact-filters {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}