@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Lato:wght@400;700&display=swap');

* {
    font-family: "Lato", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.mobile-league-header,
.mobile-stats-grid {
    display: none;
}

.all-1x2-predictions-wrapper,
.all-ou-predictions-wrapper,
.all-btts-predictions-wrapper {
    background: #1B3A62 !important;
    border-radius: 5px !important;
    padding-top: 20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 2px !important;
    margin: 20px 0 !important;
    border: 1px solid #1e4a76 !important;
    overflow-x: auto;
}

.all-predictions-table,
.all-predictions-table.league-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #0F2A44;
    margin-bottom: 24px;
    border-radius: 5px !important;
    border: 1px solid #1e4a76;
    overflow: hidden;
}

/* Κεφαλίδες */
.all-predictions-table th,
.all-predictions-table.league-table th {
    background: #9E9E9E !important;
    color: #000 !important;
    padding: 12px 8px !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    text-transform: none !important;
    border-bottom: 1px solid #1e4a76 !important;
    border-right: 1px solid #1e4a76 !important;
    text-align: center;
}
.all-predictions-table th:last-child,
.all-predictions-table.league-table th:last-child {
    border-right: none !important;
}

/* Κελιά σώματος */
.all-predictions-table td,
.all-predictions-table.league-table td {
    padding: 8px 8px !important;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #1e4a76 !important;
    border-right: 1px solid #1e4a76 !important;
    background: #0F2A44;
    color: #ffffff;
    font-size: 14px;
}
.all-predictions-table td:last-child,
.all-predictions-table.league-table td:last-child {
    border-right: none;
}

.all-predictions-table .odds-cell {
    color: #f0f0f0;
    font-weight: 500;
}

.prediction-score {
    color: #FE7E07;
    font-weight: 700;
}

.match-time {
    color: #FE7E07;
    font-weight: 500;
}

.match-cell-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1px;
}

.team-home {
    text-align: right;
    flex: 1;
    white-space: normal;
    word-break: break-word;
}

.match-vs {
    color: #FE7E07;
    font-weight: 700;
    flex-shrink: 0;
    text-align: center;
    min-width: 40px;
}

.team-away {
    text-align: left;
    flex: 1;
    white-space: normal;
    word-break: break-word;
}

.league-header-row td {
    background: #0a1c2f !important;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid #FE7E07;
}

.league-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.league-country, .league-name {
    font-family: "Orbitron", sans-serif;
    font-weight: 600;
}

.league-name {
    color: #FE7E07;
}

.cell-probability {
    min-width: 160px;
}

.cf-probability-bars {
    display: flex !important;
    flex-direction: row !important;
    height: 30px;
    border-radius: 6px;
    overflow: hidden;
    min-width: 150px;
    margin: 0 auto;
}

.cf-bar-home, .cf-bar-draw, .cf-bar-away {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 12px;
    flex: 1 0 auto;
    white-space: nowrap;
    padding: 0 2px;
}

.cf-bar-home { background-color: #4CAF50; }
.cf-bar-draw { background-color: #FFC107; color: #000; }
.cf-bar-away { background-color: #F44336; }

.cf-two-bars {
    display: flex !important;
    flex-direction: row !important;
    height: 28px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.cf-two-bars .cf-bar-first,
.cf-two-bars .cf-bar-second {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    padding: 0 4px;
    flex: 1;
}

.cf-two-bars .cf-bar-first { background-color: #2196F3; }
.cf-two-bars .cf-bar-second { background-color: #FF9800; color: #000; }

.prediction-badge {
    background: #FE7E07;
    color: #ffffff;
    font-weight: 800;
    font-family: "Orbitron", sans-serif;
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 0.8rem;
    display: inline-block;
}

.cf-history-stats-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    margin-bottom: 5px;
    padding: 20px;
    border-radius: 16px;
}

.stat-card-square {
    background: #0a1c2f;
    border-radius: 5px;
    border: 1px solid #1e4a76;
    padding: 12px 6px;
    text-align: center;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
}

/* ---------- ΣΤΗΛΗ PREDICTION ---------- */
.all-predictions-table thead th.prediction-header {
    background-color: #FE7E07 !important;
}
.all-predictions-table tbody td.cell-prediction {
    background-color: #0E253C !important;
    color: #ffffff;
}

/* ---------- ΣΤΗΛΗ SCORE / TOTAL CORNERS / TOTAL CARDS ---------- */
.all-predictions-table thead th.score-header {
    background-color: #4ADE80 !important;
    color: #0F2A44 !important;
    font-weight: 700;
}
.all-predictions-table tbody td.cell-score {
    background-color: #0E253C !important;
    color: #ffffff;
}

.stat-value {
    font-size: 0.9em !important;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}


/* League header - rounded only top */
.cf-league-header {
    background: #0a1c2f;
    padding: 18px 16px !important;
    border: 1px solid #1e4a76;
    border-radius: 5px 5px 0 0;
    display: block;
}

/* Wrapper for table - rounded only bottom and border */
.cf-table-wrapper {
    border: 1px solid #1e4a76 !important;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    background: #0F2A44;
}

/* Table inside wrapper */
.cf-aggregated-table {
    width: 100%;
    border-collapse: collapse !important;
    background: #0F2A44;
    margin: 0;
}

/* Win Rate colors */
.winrate-positive {
    color: #4ade80;
    font-weight: bold;
}
.winrate-negative {
    color: #f87171;
    font-weight: bold;
}
.winrate-neutral {
    color: #FFA500;
    font-weight: bold;
}

/* Profit colors */
.profit-positive {
    color: #4ade80;
    font-weight: bold;
}
.profit-negative {
    color: #f87171;
    font-weight: bold;
}
.profit-neutral {
    color: #FFA500;
    font-weight: bold;
}

/* ROI colors */
.roi-text-positive {
    color: #4ade80;
}
.roi-text-negative {
    color: #f87171;
}
.roi-text-neutral {
    color: #FFA500;
}

/* Other existing styles - keep as is */
.cf-league-logo {
    height: 80px !important;
    width: auto;
    max-width: 100px !important;
    object-fit: contain;
    background: transparent;
    padding: 0;
    margin-right: 12px;
    vertical-align: middle;
    display: inline-block;
    border: 2px solid #999999;
    border-radius: 3px !important;
}

.cf-aggregated-stats-wrapper {
    background: #1B3A62 !important;
    border-radius: 5px !important;
    padding-top: 20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 20px !important;
	border: 1px solid #1e4a76;
    margin: 20px 0 !important;
    overflow-x: auto;
}

.cf-league-stats-card {
    background: #0F2A44;
    border-radius: 5px;
    overflow: visible;
}

.cf-league-header {
    background: #0a1c2f;
    padding: 18px 16px !important;
    border: 1px solid #1e4a76;
    border-radius: 5px 5px 0 0;
    display: block;
}

.cf-league-title-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 5px;
}

.cf-league-title-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
}

.cf-league-title-text h1 {
    margin: 0;
    font-size: 1.4rem !important;
    font-weight: 700;
    color: #FE7E07;
    background: transparent;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.cf-stats-description {
    font-size: 0.9rem !important;
    color: #cccccc;
    line-height: 1.2;
    margin-bottom: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.cf-aggregated-table {
    width: 100%;
    border-collapse: collapse !important;
    background: #0F2A44;
	border: 1px solid #1e4a76 !important;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}



.cf-aggregated-table th,
.cf-aggregated-table td {
    padding: 8px 8px !important;
    text-align: center !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #1e4a76 !important;
    border-right: 1px solid #1e4a76 !important;
    color: #cccccc!important;
}

.cf-aggregated-table th:last-child,
.cf-aggregated-table td:last-child {
    border-right: 1px solid #1e4a76 !important;
}

.cf-aggregated-table th {
    background: #9E9E9E !important;
    color: #0F2A44 !important;
    padding: 12px 8px !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

.cf-aggregated-table th.market-flag-col {
    width: 44px !important;
    padding: 0 !important;
    text-align: center !important;
}

.cf-aggregated-table th.market-label-col {
    text-align: left !important;
}

/* Φόντο για την επικεφαλίδα Wins */
.cf-aggregated-table th:nth-child(4) {
    background-color: #4ade80 !important;
    color: #000 !important;
    font-weight: bold !important;
}

/* Φόντο για την επικεφαλίδα Losses */
.cf-aggregated-table th:nth-child(5) {
    background-color: #f87171 !important;
    color: #000 !important;
    font-weight: bold !important;
}

/* Χρώμα για τα εικονίδια στην πρώτη στήλη του πίνακα aggregated stats */
.cf-aggregated-table .icon-cell i {
    color: #FE7E07 !important;
}

table.cf-aggregated-table td.winrate-cell.winrate-positive {
    color: #4ade80 !important;
    font-weight: bold;
}
table.cf-aggregated-table td.winrate-cell.winrate-negative {
    color: #f87171 !important;
    font-weight: bold;
}

.cf-flag-icon {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #0F2A44;
}

.cf-aggregated-table td:nth-child(4) {
    color: #4ade80 !important;
    font-weight: bold;
}

.cf-aggregated-table td:nth-child(5) {
    color: #f87171 !important;
    font-weight: bold;
}

.cf-aggregated-table .details-cell .cf-stats-button {
    background: #FE7E07;
    color: #cccccc;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: .9em;
    font-weight: 600;
    text-decoration: none;
}

.cf-aggregated-table .details-cell .cf-stats-button:hover {
    background: #999999;
    color: #000;
}

.profit-positive { color: #4ade80; font-weight: bold; }
.profit-negative { color: #f87171; font-weight: bold; }
.profit-neutral { color: #cccccc; font-weight: normal; }
.roi-text-positive { color: #4ade80; }
.roi-text-negative { color: #f87171; }
.roi-text-neutral { color: #cccccc; }

/* Αφαίρεση border-radius από τα result-cell */
.all-predictions-table tr.history-row-win td:last-child,
.all-predictions-table.league-table tr.history-row-win td:last-child,
.all-predictions-table tr.history-row-lost td:last-child,
.all-predictions-table.league-table tr.history-row-lost td:last-child {
    border-radius: 0 !important;
}

/* Διατήρηση χρωμάτων και υπόλοιπων στυλ για winning/losing rows */
.all-predictions-table tr.history-row-win td:last-child,
.all-predictions-table.league-table tr.history-row-win td:last-child {
    color: #ffffff;
    font-weight: 700;
}

.all-predictions-table tr.history-row-lost td:last-child,
.all-predictions-table.league-table tr.history-row-lost td:last-child {
    color: #ffffff;
    font-weight: 700;
}

.result-icon-win {
    color: #4ade80;
    font-size: 1.4rem;
}

.result-icon-loss {
    color: #f87171;
    font-size: 1.4rem;
}

.result-icon-pending {
    color: #cccccc;
    font-size: 1.2rem;
}

.stat-value.stat-positive {
    color: #4ade80 !important;
}
.stat-value.stat-negative {
    color: #f87171 !important;
}

.all-predictions-table td.result-cell,
.all-predictions-table.league-table td.result-cell {
    vertical-align: middle;
}

.result-icon-win,
.result-icon-loss {
    display: inline-block;
    vertical-align: middle;
}

.flag-cell {
    text-align: center;
    vertical-align: middle;
    width: 38px;
    padding: 4px !important;
}

.country-flag-icon {
    display: block;
    width: 100%;
    max-width: 32px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    background: #0F2A44;
}

.trophy-header {
    font-size: 1.3rem;
    line-height: 1;
}

.stat-card-wins {
    background-color: #4ade80 !important;
    border-color: #4ade80 !important;
}
.stat-card-wins .stat-value,
.stat-card-wins .stat-label {
    color: #0F2A44 !important;
}

.stat-card-losses {
    background-color: #f87171 !important;
    border-color: #f87171 !important;
}
.stat-card-losses .stat-value,
.stat-card-losses .stat-label {
    color: #0F2A44 !important;
}

@media (max-width: 1200px) {
    .cf-history-stats-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        padding: 15px;
    }
    .stat-value { font-size: 1.1rem; }
    .stat-label { font-size: 0.7rem; }
}

@media (max-width: 900px) {
    .cf-history-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
    .cf-history-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px;
    }
    .stat-card-square { padding: 8px 4px; }
    .stat-value { font-size: 1rem; }
    .stat-label { font-size: 0.65rem; }
    .flag-cell { width: 38px; }
    .country-flag-icon { max-width: 26px; }
}

@media (max-width: 768px) {
    .mobile-league-header,
    .mobile-stats-grid {
        display: block !important;
    }
    .all-1x2-predictions-wrapper,
    .all-ou-predictions-wrapper,
    .all-btts-predictions-wrapper,
    .cf-aggregated-stats-wrapper {
        padding: 12px;
        border-radius: 12px;
    }
    .cf-history-title {
        font-size: 1.3rem;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid #FE7E07;
        border-radius: 20px;
    }
    .cf-league-logo {
        height: 64px !important;
        max-width: 80px !important;
        margin-right: 8px;
    }
    .cf-league-title-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cf-league-title-text { align-items: center; }
    .cf-league-title-text h1 { font-size: 1.1rem !important; }
    .cf-stats-description { font-size: 0.7rem; text-align: center; }
    .cf-aggregated-table th,
    .cf-aggregated-table td {
        font-size: 0.7rem;
        padding: 8px 4px !important;
    }
    .cf-aggregated-table th.market-flag-col { width: 36px !important; }
    .cf-flag-icon { width: 22px !important; height: 22px !important; }
    .cf-probability-bars {
        flex-direction: row !important;
        min-width: 140px;
        height: 26px;
    }
    .cf-bar-home, .cf-bar-draw, .cf-bar-away { font-size: 10px; }
    .cf-two-bars { flex-direction: row !important; }
    .cell-probability { min-width: 140px; }
    .match-cell-content { gap: 4px; }
    .match-vs { min-width: 30px; }
}