/* CSS cho trang thống kê giải đặc biệt theo tháng */

.statistics-filter {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-control {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.button-row {
    margin-top: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.statistics-summary {
    margin-bottom: 20px;
}

.bg_red {
    background-color: #dc3545;
    color: white;
}

.pad10-5 {
    padding: 10px 5px;
    text-align: center;
    margin: 0;
    border-radius: 4px;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

#dbmonth-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#dbmonth-table th,
#dbmonth-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.table-header th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.day-number {
    background-color: #e9ecef;
    font-weight: bold;
    font-size: 11px;
    color: #666;
}

.has-result {
    background-color: #d4edda;
    cursor: pointer;
}

.has-result:hover {
    background-color: #c3e6cb;
}

.no-result {
    background-color: #f8f9fa;
    color: #6c757d;
}

.empty-cell {
    background-color: #ffffff;
    color: #dee2e6;
}

.prize-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.last-digits {
    font-weight: bold;
    font-size: 16px;
    color: #dc3545;
}

.sum-total {
    font-size: 12px;
    color: #6c757d;
}

.summary-stats {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.stats-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-group {
        min-width: auto;
    }
    
    #dbmonth-table {
        font-size: 12px;
    }
    
    #dbmonth-table th,
    #dbmonth-table td {
        padding: 4px;
    }
    
    .last-digits {
        font-size: 14px;
    }
        
    .stats-row {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .statistics-filter {
        padding: 15px;
    }
    
    #dbmonth-table {
        font-size: 10px;
    }
    
    .last-digits {
        font-size: 12px;
    }
}

/* Thêm vào cuối file */
.special-prize {
    font-weight: bold;
    font-size: 12px;
    color: #333;
    margin-bottom: 2px;
}

.last-digits {
    font-weight: bold;
    font-size: 14px;
    color: #d9534f;
    margin-bottom: 1px;
}
.no-data {
    color: #999;
    font-style: italic;
    margin-top: 5px;
}

.statistics-table td {
    padding: 6px 4px;
    vertical-align: top;
}

.has-result {
    background-color: #f9f9f9;
}

.no-result {
    background-color: #fafafa;
}

.empty-cell {
    background-color: #f5f5f5;
    color: #ccc;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .statistics-table td {
        padding: 4px 2px;
    }
    
    .last-digits {
        font-size: 12px;
    }
    
}