/* Soi Cau Table Styles - Full Width */
.soicau-wrapper { 
    width: 100%; 
    margin: 20px 0; 
    display: block;
    box-sizing: border-box;
}

.soicau-table, .thongke-bar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 16px rgba(102,126,234,0.10);
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    table-layout: auto;
    box-sizing: border-box;
}

/* --- SỐ ĐẸP --- */
.soicau-table strong {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    margin: 2px 0;
}

.soicau-table strong:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Số đặc biệt (ví dụ: trúng đề) */
.soicau-table .giai-db,
.soicau-table .soicau-hit {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    font-weight: 800;
}

.soicau-table .giai-db:hover,
.soicau-table .soicau-hit:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.soicau-table .soicau-miss {
    background: #e9ecef;
    color: #888;
    border: 1px solid #d1d5db;
}

.soicau-table th, .thongke-bar-table th {
    background: #e96a00 !important;
    color: #fff;
    padding: 16px 12px;
    text-align: center;
    font-weight: bold;
    font-size: 17px;
    border: none;
    letter-spacing: 1px;
}

.soicau-table td, .thongke-bar-table td {
    border: 1px solid #bdbdbd;
    padding: 12px 10px;
    text-align: center;
    font-size: 15px;
    vertical-align: middle;
}

.soicau-table tr:nth-child(even) td, .thongke-bar-table tr:nth-child(even) td {
    background: #f7f7fa;
}

.soicau-table tr:hover td, .thongke-bar-table tr:hover td {
    background: #f0f4ff;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .soicau-table {
        font-size: 14px;
        width: 100%;
        min-width: 600px;
    }
    
    .soicau-table th, .soicau-table td {
        padding: 8px 6px;
        font-size: 13px;
    }
    
    .soicau-table strong {
        font-size: 14px;
        padding: 3px 6px;
    }
}

@media screen and (max-width: 480px) {
    .soicau-table {
        min-width: 400px;
        width: 100%;
    }
    
    .soicau-table th, .soicau-table td {
        padding: 6px 4px;
        font-size: 12px;
    }
    
    .soicau-table strong {
        font-size: 12px;
        padding: 2px 4px;
    }
}

/* Fix table layout issues */
.soicau-table[style*="table-layout: fixed"] {
    table-layout: auto !important;
}

.soicau-table th[style*="width:"],
.soicau-table td[style*="width:"] {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
}

/* Responsive cho thongke-bar-table */
@media screen and (max-width: 768px) {
    .soicau-table.thongke-bar-table th:nth-child(1),
    .soicau-table.thongke-bar-table td:nth-child(1) {
        width: 60% !important;
        min-width: 100px !important;
    }
    
    .soicau-table.thongke-bar-table th:nth-child(2),
    .soicau-table.thongke-bar-table td:nth-child(2) {
        width: 40% !important;
        min-width: 70px !important;
    }
}

@media screen and (max-width: 480px) {
    .soicau-table.thongke-bar-table th:nth-child(1),
    .soicau-table.thongke-bar-table td:nth-child(1) {
        width: 55% !important;
        min-width: 80px !important;
    }
    
    .soicau-table.thongke-bar-table th:nth-child(2),
    .soicau-table.thongke-bar-table td:nth-child(2) {
        width: 45% !important;
        min-width: 60px !important;
    }
}

/* Chart container */
.chart-container { 
    width: 100%; 
    height: 400px; 
    margin: 20px 0; 
}

/* Button styles */
.button-danger { 
    background-color: #dc3545; 
    color: #fff; 
    border: none; 
    padding: 8px 16px; 
    border-radius: 4px; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
}

.button-danger:hover { 
    background-color: #c82333; 
}