/* ==========================================================================
   TK Đặc Biệt Hôm Sau - CSS Styles
   ========================================================================== */
   .pagedb-content {
    padding: 10px;
}
/* Statistics Filter Section */
.statistics-filter {
    background: white;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

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

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:hover {
    border-color: #ced4da;
}

/* Button Group */
.button-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.button-group span {
    font-weight: 600;
    color: #495057;
    margin-right: 10px;
}

.btn-date {
    padding: 5px;
    background: white;
    color: #495057;
    text-decoration: none;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-date:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-date.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Statistics Results */
.statistics-results {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.statistics-summary {
    margin-bottom: 0;
}

.bg_red {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.pad10-5 {
    padding: 20px 25px;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Table Styles */
.block-result {
    padding: 10px;
}

.table-fixed {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table-fixed thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.table-fixed th {
    padding: 6px;
    color: white;
    font-weight: 600;
    text-align: center;
    border: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.table-fixed td {
    padding: 6px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
    vertical-align: middle;
}

.table-fixed tbody tr {
    transition: all 0.3s ease;
}

.table-fixed tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

.table-fixed tbody tr:nth-child(even) {
    background: #fdfdfd;
}

.table-fixed tbody tr:nth-child(even):hover {
    background: #f8f9fa;
}

.break-word {
    word-break: break-word;
    font-weight: 500;
    color: #495057;
}

.number {
    font-weight: 700;
    color: #667eea;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
}

.text-center {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

.text-red {
    color: #dc3545;
    font-weight: 700;
    background: #fff5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Box Content */
.box-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* No Data Message */
.statistics-results h3 {
    text-align: center;
    color: #6c757d;
    font-weight: 500;
    padding: 40px 20px;
    margin: 0;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .button-group {
        justify-content: center;
    }
    
    .btn-date {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .table-fixed {
        font-size: 0.85rem;
    }
    
    .table-fixed th,
    .table-fixed td {
        padding: 10px 8px;
    }
    
    .number {
        font-size: 1rem;
        padding: 6px 8px;
    }
    
    .pad10-5 {
        font-size: 1.2rem;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem;
    }
    
    .table-fixed {
        font-size: 0.8rem;
    }
    
    .table-fixed th,
    .table-fixed td {
        padding: 8px 5px;
    }
    
    .number {
        font-size: 0.9rem;
        padding: 4px 6px;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-article {
    animation: fadeInUp 0.6s ease-out;
}

.statistics-filter {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.statistics-results {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Print Styles */
@media print {
    .statistics-filter,
    .button-group {
        display: none;
    }
    
    .page-header {
        background: #333 !important;
        color: white !important;
    }
    
    .table-fixed {
        box-shadow: none;
        border: 1px solid #333;
    }
    
    .table-fixed th {
        background: #333 !important;
        color: white !important;
    }
}