
.league-table-container {
    background: #2a2a2e;
    border-radius: 8px;
    padding: 20px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1100px;  /* Thay đổi từ width cố định */
    width: 100%;        /* Responsive */
    margin: 0 auto;     /* Căn giữa */
    margin-left: 50px;
    gap: 10px;
}

.league-table table {
    width: 100%;
    min-width: 800px;      /* Đảm bảo độ rộng tối thiểu */
    table-layout: auto;    /* Cho phép điều chỉnh linh hoạt */
}

table thead tr{
    background-color:#000000;
    border-radius: 10px;
    padding-bottom: 10px;
}

/* Form container styling */
.form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.league-dropdown {
    background: #3a3a3e;
    /* border: 1px solid #4a4a4e; */
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    min-width: 150px;
}

.table-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    /* border-bottom: 1px solid #4a4a4e; */
}

.tab-btn {
    background: none;
    border: none;
    color: #888;
    padding: 10px 0;
    cursor: pointer;
    /* border-bottom: 2px solid transparent; */
    transition: all 0.2s;
}

.tab-btn.active {
    color: #ffa500;
    border-bottom-color: #ffa500;
}

.league-table {
    overflow-x: auto;
}

.league-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.league-table th {
    text-align: left;
    padding: 12px 8px;
    color: #aaa;
    font-weight: 500;
    /* border-bottom: 1px solid #4a4a4e; */
}


/* Form cells với alignment */


.league-table td {
    padding: 12px 8px;
    /* border-bottom: 1px solid rgba(255,255,255,0.1); */
}

.league-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.position {
    width: 30px;
    text-align: center;
    font-weight: bold;
}

.team{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    height: 53px;
}

.team img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}



/* .champions-league{
    height: 53px;
    
} */

.champions-league .position {
    /* background: #000000; */
    color: white;
    
}

.europa-league .position {
    /* background: #ffa500; */
    color: white;
   
}

.relegation .position {
    background: #dc143c;
    color: white;
    
}

.points {
    font-weight: bold;
    color: white;
}

.positive {
    color: #32cd32;
}

.negative {
    color: #dc143c;
}


@media (max-width: 768px) {
    .league-table-container {
        padding: 15px;
    }
    
    .league-table {
        font-size: 12px;
    }
    
    .team span {
        display: none;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

tr td{
    display: table-cell;
}

/* Form display styles */
.form {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.form span {
    
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.form-w {
    background-color: #22c55e; /* Green for win */
}

.form-d {
    background-color: #f59e0b; /* Yellow for draw */
}

.form-l {
    background-color: #ef4444; /* Red for loss */
}

.form-no-data {
    color: #6b7280;
    font-style: italic;
}

/* Zone styling for different table positions */
.champions-league {
    border-left: 4px solid #0066cc;
    background-color: rgba(0, 102, 204, 0.05);
}

.europa-league {
    border-left: 4px solid #ff6600;
    background-color: rgba(255, 102, 0, 0.05);
}

.european-competition {
    border-left: 4px solid #00cc66;
    background-color: rgba(0, 204, 102, 0.05);
}

.relegation {
    border-left: 4px solid #cc0000;
    background-color: rgba(204, 0, 0, 0.05);
}

/* Goal difference styling */
.positive {
    color: #22c55e;
    font-weight: 600;
}

.negative {
    color: #ef4444;
    font-weight: 600;
}

/* Loading state */
.league-table.loading {
    opacity: 0.6;
    pointer-events: none;
}

.league-table.loading::after {
    content: 'Đang tải...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
}
/* Team info styling */
.team-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.team-logo {
    display: flex;
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
    align-items: center;
    justify-content: center !important;
    flex-shrink: 0;
}

.team-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}