/* ===== MAIN TABLE STYLES ===== */
.over-under-fixtures-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    background-color: #f9f9f9; /* ελαφρύ γκρι background για διαφοροποίηση */
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    table-layout: fixed; /* σταθερό layout για columns */
}

.over-under-history-table {
	width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}
	
.over-under-stats-summary-table {
    width: 100%;
    border-collapse: separate; /* αντί για collapse */
    border-spacing: 0;
    margin: 15px 0;
    font-family: Arial, sans-serif;
    font-size: 18px;
    background: #fff;
    border: 1px solid #ccc; /* όποιο χρώμα θες */
    border-radius: 5px;
	table-layout: fixed;
}

.over-under-stats-summary-table td[data-label="League"] {
    width: 100px;
    max-width: 100x;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.over-under-stats-summary-table td[data-label="Won"] {
        background-color: #B0EBBE;
}
    
.over-under-stats-summary-table td[data-label="Lost"] {
        background-color: #F6BCC1;
}

/* Table Header Styles */
.over-under-fixtures-table th, {
    border: 2px solid #e0e0e0;
    padding: 10px;
    text-align: center;
}

.over-under-history-table th:nth-child(9) {
    background-color: #0B1C4B;
    color: #fff !important;
    font-weight: bold;
}

.over-under-history-table th:nth-child(1) {
    background-color: #0B1C4B;
    color: #fff !important;
    font-weight: bold;
}

/* History table headers */
.over-under-history-table th {
    background-color: #FF9800; 
    color: #fff;
	font-family: Arial, sans-serif;
	font-size: 14px;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #e0e0e0;
}

/* Stats summary table headers */
.over-under-stats-summary-table th {
    background-color: #FF9800; 
    color: #fff;
    font-family: Arial, sans-serif;
	font-size: 16px;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #e0e0e0;
}

/* Table Cell Styles */
.over-under-fixtures-table td,
.over-under-history-table td,
.over-under-stats-summary-table td {
	background-color: #fff;
	color: #333;
    padding: 10px 8px;
    text-align: center;
    border: 2px solid #e0e0e0;
    vertical-align: middle;
}

/* Alternate Row Coloring */
.over-under-fixtures-table tr:nth-child(even),
.over-under-history-table tr:nth-child(even),
.over-under-stats-summary-table tr:nth-child(even) {
    background-color: #f8f9fa;
}



/* ===== COUNTRY FLAG STYLES ===== */
.country-flag {
    font-size: 30px;
    text-align: center;
    padding: 5px;
}

/* ===== STATS BARS STYLES ===== */
.stats-bars-container {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.stats-bar-wrapper {
    width: 80px;
    height: 20px;
    background-color: #e0e0e0;
	border: 1px solid #C7C7C7;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.stats-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
    min-width: 0%;
}

.stats-bar-percentage {
    font-size: 12px;
    border: 1px solid #FF5722;
    border-radius: 50px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    padding: 0px 3px; 
}

/* ===== SCORE STATUS STYLES ===== */
.score-correct {
    background-color: #4CAF50 !important;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

.score-incorrect {
    background-color: #f44336 !important;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

.score-pending {
    background-color: #ff9800 !important;
    color: white;
    font-weight: bold;
}

/* ===== STATS SUMMARY STYLES ===== */
.stats-summary {
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    }

.stat-card {
    background: #f4f4f4;
    padding: 15px;
    border: 1px solid #FF9800;
    border-radius: 5px;
    flex: 1 0 150px;
    max-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.profit-positive {
    color: #4CAF50 !important;
}

.profit-negative {
    color: #f44336 !important;
}

/* ===== BUTTON STYLES ===== */
.btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.over-under-stats-btn {
    padding: 8px 18px;
    background-color: #616161;
    color: #fff;
    border: 1px solid #616161;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.over-under-stats-btn:hover {
    background-color: #272727;
    color: #fff;
    border: 1px solid #333;
}

/* ===== BADGE STYLES ===== */
.prediction-badge-over-under {
    background: #FF9800;
    color: white;
    border-radius: 50px !important;   
    width: 40px;           
    height: 40px;         
    font-size: .9em;      
    font-weight: bold;
    border: 1px solid #999 !important;
    display: flex;        
    align-items: center;
    justify-content: center;
}

.prediction-badge-over-under.zero-badge {
    background-color: #616161 !important;
	border: 1px solid #999;
	border-radius: 50px !important;
}

/* ===== LOCK ICON STYLES ===== */
.fa-lock {
    color: #999 !important;
    font-size: 14px !important;
}

/* ===== CONFIDENCE CELL STYLES ===== */
.confidence-cell {
    font-weight: bold;
}

/* ===== ERROR MESSAGE STYLES ===== */
.over-under-error {
    display: none;
}

/* ===== MATCH VS STYLES ===== */
.match-vs {
    color: #FF5722;
    font-weight: bold;
    font-size: 16px;
    margin: 0 5px;
}

/* ===== TEAM NAME STYLES ===== */
.team-name {
    display: inline-block;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    font-weight: bold;
}

/* ===== ODDS STYLES ===== */
.odds-value {
    font-weight: bold;
    color: #1e3c72;
}

/* ===== PREDICTION STYLES ===== */
.prediction-over {
    color: #4CAF50;
    font-weight: bold;
}

.prediction-under {
    color: #f44336;
    font-weight: bold;
}

/* ===== LOADING ANIMATION ===== */
.over-under-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.over-under-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: #666; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 #666, .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 #666, .5em 0 0 #666; }
}