#read-stats {
    background: var(--bs-light);
    color: var(--bs-dark);
    background-attachment: fixed;
    padding-bottom: 3rem;
}

.header-glow {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    background: white;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(67, 97, 238, 0.4);
    }
    to {
        box-shadow: 0 0 40px rgba(113, 9, 183, 0.6), 0 0 60px rgba(6, 214, 160, 0.4);
    }
}

#read-stats h1 {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4, #a1c4fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

#read-stats .stats-card {
    background: white;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    height: 100%;
}

#read-stats .stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--bs-primary);
}

#read-stats .card-header {
    background: var(--bs-primary);
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: none;
    padding: 1.2rem;
    font-size: 1.1rem;
}

#read-stats .card-body {
    padding: 1.8rem;
}

.count-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s;
}

.value-updated {
    animation: pulse 1s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        text-shadow: 0 0 15px rgba(67, 97, 238, 0.8);
    }
    100% {
        transform: scale(1);
    }
}

.chart-container {
    height: 240px;
    margin-top: 1.5rem;
}

.stats-card .list-group-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px !important;
    margin-bottom: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    color: var(--bs-dark);
    backdrop-filter: blur(5px);
    padding: 1rem 1.2rem;
}

.stats-card .employee-link span {
    white-space: nowrap;
}

@media (max-width: 650px) {
    .stats-card div.stats-bar {
        display: none;
    }
}

.stats-card .list-group-item.ranking-updated {
    animation: highlight 1.5s ease;
}

@keyframes highlight {
    0% {
        background: rgba(67, 97, 238, 0.3);
    }
    50% {
        background: rgba(6, 214, 160, 0.4);
    }
    100% {
        background: rgba(30, 40, 70, 0.6);
    }
}

.list-group-item:hover {
    transform: translateX(5px);
    background: rgba(13, 110, 253, 0.05);
    border-color: rgba(13, 110, 253, 0.3);
}

.employee-link {
    color: var(--bs-dark) !important;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.employee-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: width 0.3s ease;
}

.employee-link:hover::after {
    width: 100%;
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.9rem;
    transition: all 0.5s;
    color: white;
}

.rank-1 {
    background: var(--bs-primary);
}

.rank-2 {
    background: #6f42c1;
}

.rank-3 {
    background: #0dcaf0;
    color: var(--bs-dark);
}

.rank-other {
    background: #adb5bd;
    color: white;
}

.stats-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 8px;
    position: relative;
}

.stats-bar-inner {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--bs-primary), #0dcaf0);
    transition: width 1s ease;
}

.badge-count {
    font-size: 0.9rem;
    padding: 0.4em 0.8em;
    min-width: 50px;
    text-align: center;
    border-radius: 50px;
    background: var(--bs-primary);
    color: white;
    transition: all 0.3s ease;
}

.count-updated {
    animation: countPulse 0.8s ease;
}

@keyframes countPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    }
    100% {
        transform: scale(1);
    }
}

.today-badge {
    background: var(--bs-primary);
}

.history-badge {
    background: var(--bs-secondary);
}

#bid-list-container .pagination .page-item .page-link {
    background: white;
    color: var(--bs-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0 3px;
    border-radius: 8px !important;
}

#bid-list-container .pagination .page-item.active .page-link {
    background: var(--bs-primary);
    color: white;
    border: none;
}

#bid-list-container .pagination .page-item.disabled .page-link {
    background: transparent;
    color: #adb5bd;
    cursor: default;
}

.detail-card {
    background: white;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--bs-primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, transparent 0%, rgba(6, 214, 160, 0.08) 100%);
    z-index: -1;
}

.detail-header {
    background: var(--bs-primary);
    color: white;
    border-bottom: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.trophy-icon {
    color: #ffc107;
    margin-right: 10px;
}

#bid-list-container table {
    background-color: white;
}

#bid-list-container .table-striped > tbody > tr:hover {
    background-color: rgba(13, 110, 253, 0.05) !important;
}

#bid-list-container th {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.gradient-border {
    position: relative;
    margin: 1.5rem 0;
}

.gradient-border::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-secondary));
    border-radius: 10px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}