body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom right, #0B1C23, #122F3B);
    color: #e0e6e7;
    padding: 20px;
    margin: 0;
}

h2, .report-title {
    color: #FFFFFF;
    text-align: center;
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(255,255,255,0.2);
}

.table-container {
    width: 98%;
    margin: 0 auto 40px auto;
}

/* DataTables wrapper aligns controls inside table width */
div.dataTables_wrapper {
    width: 100%;
    margin: 0 auto;
}

div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter {
    display: inline-block;
    width: 49%;
    box-sizing: border-box;
}

div.dataTables_wrapper .dataTables_length {
    text-align: left;
    padding-left: 0;
}

div.dataTables_wrapper .dataTables_filter {
    text-align: right;
    padding-right: 0;
}

/* Table core */
table.dataTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #193239;
    box-shadow: 0 2px 16px rgba(0,0,0,0.35);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 30px auto;
    font-size: 15px;
}

/* Header cells */
thead th {
    background-color: #26454C;
    color: #FFFFFF !important;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    padding: 12px 8px;
    letter-spacing: 1px;
}

/* Tooltip wrapper */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 4px;
    font-size: 0.9em;
    color: #FFFFFF;
}

/* Tooltip box */
.custom-tooltip {
    visibility: hidden;
    opacity: 0;
    background-color: #1F2F35;
    color: #FFFFFF;
    text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease;
}

/* Show tooltip on hover */
.tooltip-wrapper:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Body cells */
tbody td {
    background-color: #193239;
    color: #e0e6e7;
    border-bottom: 1px solid #122F3B;
    text-align: center;
    padding: 10px 6px;
    font-size: 14px;
}

/* Highlighted cells */
.winner,
.risk,
.strategy,
.over {
    color: #00FFB2;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Zebra striping */
tbody tr:nth-child(odd) {
    background-color: #1B2731;
}

/* Hover effect */
tbody tr:hover {
    background-color: #26454C;
    cursor: pointer;
}

/* Info + Pagination section */
div.dataTables_length,
div.dataTables_filter,
div.dataTables_paginate {
    margin-bottom: 16px;
}

div.dataTables_info {
    color: #B2B2B2;
}

/* Mobile friendly layout */
@media (max-width: 900px) {
    table.dataTable, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        margin-bottom: 16px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,255,178,0.2);
    }
    td {
        border: none;
        position: relative;
        padding-left: 48%;
        min-height: 32px;
    }
    td:before {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 45%;
        white-space: nowrap;
        color: #00FFB2;
        font-weight: bold;
    }
    td:nth-of-type(1):before { content: "Date"; }
    td:nth-of-type(2):before { content: "Time (UTC)"; }
    td:nth-of-type(3):before { content: "League"; }
    td:nth-of-type(4):before { content: "Home"; }
    td:nth-of-type(5):before { content: "Away"; }
    td:nth-of-type(6):before { content: "Winner"; }
    td:nth-of-type(7):before { content: "Home Prob"; }
    td:nth-of-type(8):before { content: "Draw Prob"; }
    td:nth-of-type(9):before { content: "Away Prob"; }
    td:nth-of-type(10):before { content: "Odds"; }
    td:nth-of-type(11):before { content: "Stake"; }
    td:nth-of-type(12):before { content: "Risk"; }
    td:nth-of-type(13):before { content: "Strategy"; }
    td:nth-of-type(14):before { content: "Over"; }
}
/* Center the first <div> (the label) inside each <th> */
thead th > div:first-child {
  text-align: center;
}

/* Center the ⓘ tooltip wrapper under the label */
thead th .tooltip-wrapper {
  display: block;            /* shrink-wrap to content */
  width: max-content;        /* only as wide as the icon */
  margin: 2px auto 0;        /* center horizontally */
}
