/* ----------------------------------------
   Select2 Dropdown Styling
---------------------------------------- */

.select2-container--default .select2-selection--single {
    height: 38px !important;
    padding: 5px 10px !important;
    border: 0px !important;
    border-bottom: 1px solid #ccc !important;
    font-size: 15px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
    font-size: 15px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    box-shadow: none !important;
    border: 0px !important;
    border-bottom: 1px solid #CCC !important;
}

.select2-dropdown {
    border: 0px !important;
}

.select2-results__option {
    font-size: 15px;
}

.select2-results {
    box-shadow: 3px 4px 9px 0px #0000002b;
}

.select2-container .select2-results__options {
    max-height: 400px !important;
    overflow-y: auto;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    top: 8px !important;
}

@media (max-width:768px){
    #wpk_header_wrap .select2-container{
        width:100% !important;
        margin:10px 0px;
    }
}

/* ----------------------------------------
   Form Layout Wrappers
---------------------------------------- */
.wpk-football-wrap {
    max-width: 100%;
    margin: 20px 0;
    text-align: right;
    font-size: 15px;
    background-color: #FFF;
}

.wpk-football-wrap select {
    padding: 8px;
    margin: 10px 0 10px 10px;
    width: 250px;
    display: inline-block;
    background: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: none;
}


/* ----------------------------------------
   Table and Responsive Wrapper
---------------------------------------- */
.wpk-table-responsive {
    overflow-x: auto;
    width: 100%;
}

.wpk-football-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    margin-top: 15px;
    background: #FFF;
    font-size: 15px;
}

.wpk-football-table th,
.wpk-football-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.wpk-football-table th {
    background-color: #4c4c4c;
    color: white;
    text-transform: uppercase;
    padding: 15px 10px;
}

.wpk-football-table .table-text-left{
    text-align: left;
}


/* ----------------------------------------
   Loading Spinner
---------------------------------------- */
.wpk-spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.wpk-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 5px solid #ddd;
    border-top: 5px solid #c3922f;
    border-radius: 50%;
    animation: wpk-spin 1s linear infinite;
}

@keyframes wpk-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ----------------------------------------
   Table Legend
---------------------------------------- */
.wpk-table-legend {
    margin-top: 15px;
    font-size: 14px;
    color: #333;
}

.wpk-table-legend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
    font-size: 13px;
    color: #333;
}

@media (max-width:768px){
    .wpk-table-legend-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 6px 5px 5px rgb(0 0 0 / 10%);
    font-weight: 700;
}

.legend-color {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 3px;
    border:1px solid #333;
}


/* ----------------------------------------
   Table Row Highlights (Ranking)
---------------------------------------- */
.wpk-football-table tr.top-1 td,
.legend-color.top-1 {
    background-color: #077db1;
    color: #fff;
}

.wpk-football-table tr.top-2 td,
.legend-color.top-2 {
    background-color: #66bb6a;
    color: #fff;
}

.wpk-football-table tr.top-3 td,
.legend-color.top-3 {
    background-color: #ffca28;
    color: #000;
}

.wpk-football-table tr.bottom td,
.legend-color.bottom {
    background-color: #4e4e4e;
    color: #fff;
}



/* ----------------------------------------
   Error Message Styling
---------------------------------------- */
.wpk-error-message {
    background: #ffe9e9;
    color: #c62828;
    padding: 12px 16px;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    font-size: 15px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wpk-error-message::before {
    content: "❌ ";
    font-weight: bold;
    margin-right: 5px;
}


/* ----------------------------------------
   Scorer Match Detail List
---------------------------------------- */
.wpk-scorer-matches {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.9em;
}

.wpk-scorer-matches li {
    margin-bottom: 2px;
}


/* ----------------------------------------
   Header Wrap Sections (for filters)
---------------------------------------- */
#wpk_header_wrap {
    display: block;
    width: 100%;
    clear: both;
}


/* ----------------------------------------
   Team Stats Summary Box
---------------------------------------- */
.wpk-team-summary {
    font-size: 15px;
    margin:20px 0px;
    text-align: left;
}

.wpk-team-stats {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 20px;
}

.wpk-team-summary .wpk-team-stats li {
    background: #fff;
    border-radius: 6px;
    padding: 8px 10px;
    margin:0px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.wpk-team-summary .wpk-team-stats li:nth-child(1) {
    background-color: #e3f2fd; /* Matches Played - Light Blue */
}

.wpk-team-summary .wpk-team-stats li:nth-child(2) {
    background-color: #e8f5e9; /* Wins - Light Green */
}

.wpk-team-summary .wpk-team-stats li:nth-child(3) {
    background-color: #fffde7; /* Draws - Light Yellow */
}

.wpk-team-summary .wpk-team-stats li:nth-child(4) {
    background-color: #ffebee; /* Losses - Light Red */
}

.wpk-team-summary .wpk-team-stats li:nth-child(5) {
    background-color: #ede7f6; /* Goals For - Light Purple */
}

.wpk-team-summary .wpk-team-stats li:nth-child(6) {
    background-color: #fce4ec; /* Goals Against - Light Pink */
}

.wpk-team-summary .wpk-team-stats li:nth-child(7) {
    background-color: #f3e5f5; /* Goal Difference - Light Lavender */
}

.wpk-team-summary .wpk-team-stats li:nth-child(8) {
    background-color: #fff3e0; /* Points - Light Orange */
}
.wpk-title-football{
    text-transform: uppercase;
    margin:20px 0px;
    font-weight: 700;
}
.wpk-title-colspan-football{
    background-color: #f47c00;
    color: #FFF;
}
.football-win {
    background-color: #c0e4fe;
}
.football-lose{
 background-color: #f8d7da; 
}
.football-draw {
    background-color:#fff3cd;
}
.td-w-250{
    width:250px;
}