/* Modern Standings Table Styles */
.table-scrol-x.calc {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: auto;
    border: 1px solid #e8e8e8;
}

.table-bxh {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    background: #fff;
}

/* Header Styles */
.table-bxh th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    padding: 16px 12px;
    text-align: center;
    border: none;
    position: relative;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-bxh th:first-child {
    border-top-left-radius: 12px;
}

.table-bxh th:last-child {
    border-top-right-radius: 12px;
}

.table-bxh th.w-stt {
    width: 50px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.table-bxh th.w-ten-clb {
    text-align: left;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.table-bxh th.th-data {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
}

.table-bxh th:last-child {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #2c3e50;
}

/* Row Styles */
.table-bxh tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.table-bxh tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-bxh tr:last-child {
    border-bottom: none;
}

/* Cell Styles */
.table-bxh td {
    padding: 14px 12px;
    text-align: center;
    border: none;
    vertical-align: middle;
}

.table-bxh td.tt {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-radius: 8px;
    margin: 0 4px;
    min-width: 30px;
    display: inline-block;
}

/* Top 3 positions */
.table-bxh tr:nth-child(1) td.tt {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2c3e50;
}

.table-bxh tr:nth-child(2) td.tt {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #2c3e50;
}

.table-bxh tr:nth-child(3) td.tt {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    color: #fff;
}

/* Team column */
.table-bxh td.team {
    text-align: left;
    padding-left: 20px;
}

.table-bxh td.team .link-clb {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
}

.table-bxh td.team .link-clb:hover {
    color: #667eea;
    transform: translateX(5px);
}

.table-bxh td.team .bxhclb-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-bxh td.team span {
    font-weight: 600;
    font-size: 14px;
}

/* Data columns */
.table-bxh td.tran,
.table-bxh td.thang,
.table-bxh td.hoa,
.table-bxh td.bai,
.table-bxh td.HS,
.table-bxh td.diem {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.table-bxh td.thang {
    color: #27ae60;
}

.table-bxh td.hoa {
    color: #f39c12;
}

.table-bxh td.bai {
    color: #e74c3c;
}

.table-bxh td.diem {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
}

/* Form column */
.table-bxh td.form-5 {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.table-bxh td.form-5 .bg-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.table-bxh td.form-5 .bg-color:hover {
    transform: scale(1.1);
}

.table-bxh td.form-5 .bggreen {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
}

.table-bxh td.form-5 .bgyelow {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.table-bxh td.form-5 .bgred {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .table-scrol-x.calc {
        border-radius: 8px;
        margin: 10px 0;
    }
    
    .table-bxh {
        font-size: 12px;
    }
    
    .table-bxh th {
        padding: 12px 8px;
        font-size: 11px;
    }
    
    .table-bxh td {
        padding: 10px 8px;
    }
    
    .table-bxh td.team .bxhclb-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    .table-bxh td.form-5 .bg-color {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .table-bxh td.form-5 {
        gap: 2px;
    }
}

/* Euro table specific styles */
.euro-table {
    margin-bottom: 20px;
}

.euro-group-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-bxh-euro {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table-bxh-euro th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    border: none;
    font-size: 12px;
}

.table-bxh-euro td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.table-bxh-euro td.team {
    text-align: left;
    padding-left: 12px;
}

.table-bxh-euro td.team .d-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Animation for table loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-scrol-x.calc {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for better UX */
.table-bxh tr:hover td.tt {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.table-bxh tr:hover td.diem {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Additional responsive improvements */
@media (max-width: 480px) {
    .table-scrol-x.calc {
        border-radius: 6px;
        margin: 8px 0;
    }
    
    .table-bxh {
        font-size: 11px;
    }
    
    .table-bxh th {
        padding: 8px 4px;
        font-size: 10px;
    }
    
    .table-bxh td {
        padding: 8px 4px;
    }
    
    .table-bxh td.team .bxhclb-icon {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
    
    .table-bxh td.form-5 .bg-color {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .euro-group-title {
        font-size: 14px;
        padding: 8px;
    }
}

/* Loading state */
.table-scrol-x.calc.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Print styles */
@media print {
    .table-scrol-x.calc {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .table-bxh th {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .table-bxh td.form-5 .bg-color {
        border: 1px solid #ccc;
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}
