/* Match Row & Prediction Styles */
.card-header img {
    border-radius: 4px;
}

table img {
    vertical-align: middle;
}

th,
td {
    vertical-align: middle !important;
}

/* Prediction Tags */
.prediction-green {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
}

.prediction-white {
    background-color: white;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
}

.prediction-red {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
}

.odds-highlight {
    font-weight: bold;
    border: 2px solid #000;
}

.match-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    font-family: Arial, sans-serif;
}

@media (max-width: 768px) {
    .match-container {
        padding: 0 5px;
        overflow-x: hidden;
    }
}

.league-header {
    background: #edf5ff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: bold;
    border-top: 1px solid #ccc;
}

.league-header img.flag {
    width: 26px;
    height: 20px;
}

.standings {
    margin-left: auto;
    font-size: 13px;
    color: #0044aa;
    font-weight: 600;
    cursor: pointer;
}

.match-row {
    display: grid;
    grid-template-columns: 2fr 1.4fr 0.7fr 1.2fr 0.8fr 0.3fr;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
}

.match-teams .team-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.match-date {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.team-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.odds {
    display: flex;
    gap: 8px;
}

.odd-box {
    padding: 6px 10px;
    border: 1px solid #aaa;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    min-width: 45px;
    text-align: center;
    background: #f8f9fa;
}

.odd-box.highlight {
    border-color: #28a745;
    background-color: #d4edda;
    font-weight: bold;
}

.avg {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

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

.pred-tag {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.pred-tag.green {
    background-color: #28a745;
    color: white;
}

.pred-tag.yellow {
    background-color: #ffc107;
    color: #000;
}

.pred-tag.red {
    background-color: #dc3545;
    color: white;
}

.percent {
    font-size: 14px;
    font-weight: bold;
    color: #666;
}

.time {
    font-weight: 600;
    color: #333;
}

.status {
    font-weight: bold;
    font-size: 12px;
    color: #666;
}

/* Live match indicator */
.live-indicator {
    background: #ff4444;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.6;
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .match-row {
        grid-template-columns: 1.8fr 1.2fr 0.8fr 1fr 0.8fr 0.4fr;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .match-row {
        grid-template-columns: 2fr 1.5fr 0.8fr 1fr 0.8fr;
        grid-gap: 8px;
        padding: 10px 8px;
        font-size: 12px;
    }

    .odds {
        gap: 5px;
    }

    .odd-box {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 40px;
    }

    .status {
        display: none;
        /* Hide status column on smaller tablets */
    }
}

@media (max-width: 768px) {
    .league-header {
        font-size: 13px;
        padding: 8px 10px;
        flex-wrap: wrap;
    }

    .league-header .flag {
        width: 22px;
        height: 16px;
    }

    .match-row {
        grid-template-columns: 1.5fr 1.2fr 0.6fr 1fr;
        grid-gap: 6px;
        padding: 8px 6px;
        font-size: 11px;
    }

    .match-teams {
        min-width: 0;
        /* Allow text truncation */
    }

    .team-logos {
        gap: 4px;
        margin-bottom: 4px;
    }

    .team-name {
        font-size: 12px !important;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .team-logo {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .match-date {
        font-size: 10px;
        margin-top: 4px;
        color: #888;
    }

    .odds {
        gap: 4px;
        flex-direction: column;
    }

    .odd-box {
        padding: 4px 6px;
        font-size: 11px;
        min-width: 35px;
        text-align: center;
    }

    .avg {
        font-size: 13px;
        text-align: center;
    }

    .avg::before {
        content: '';
    }

    .prediction {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }

    .pred-tag {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 30px;
    }

    .percent {
        font-size: 10px;
    }

    .time {
        font-size: 11px;
        text-align: center;
    }

    .status {
        display: none;
    }

    .live-indicator {
        font-size: 10px;
        padding: 2px 6px;
    }

    .standings {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .league-header {
        font-size: 12px;
        padding: 6px 8px;
    }

    .league-header .flag {
        width: 20px;
        height: 14px;
    }

    .match-row {
        grid-template-columns: 1.2fr 1fr 0.5fr 0.8fr;
        grid-gap: 4px;
        padding: 6px 4px;
    }

    .team-name {
        font-size: 11px !important;
        max-width: 100%;
    }

    .team-logo {
        width: 14px;
        height: 14px;
    }

    .match-date {
        font-size: 9px;
    }

    .odd-box {
        padding: 3px 5px;
        font-size: 10px;
        min-width: 30px;
    }

    .pred-tag {
        padding: 3px 6px;
        font-size: 10px;
        min-width: 25px;
    }

    .percent {
        font-size: 9px;
    }

    .avg {
        font-size: 11px;
    }

    .time {
        font-size: 10px;
    }

    .standings {
        font-size: 10px;
    }
}

/* Mobile - Hide desktop sidebar, use offcanvas instead */
@media (max-width: 991px) {
    #sidebar-wrapper {
        display: none !important;
    }
}

/* Desktop - sidebar always visible */
@media (min-width: 992px) {
    #sidebar-wrapper {
        position: relative;
        left: 0;
    }
}