/* CÁC TUỲ CHỈNH GIAO DIỆN CHUYÊN BIỆT THÔN TRƯƠNG XÁ */

/* Font chữ mặc định đồng bộ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Hiệu ứng nhấp nháy làm nổi bật phản ánh mới nhận */
@keyframes highlightNew {
    0% { background-color: rgba(16, 185, 129, 0.25); }
    50% { background-color: rgba(59, 130, 246, 0.2); }
    100% { background-color: transparent; }
}

.animate-new-item {
    animation: highlightNew 3s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Timeline tiến độ */
.timeline-step {
    position: relative;
}
.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: 1.25rem;
    bottom: -1rem;
    width: 2px;
    background-color: #e2e8f0;
}
.timeline-step.completed:not(:last-child)::after {
    background-color: #10b981;
}

/* Hiệu ứng chuông rung lắc nhẹ */
@keyframes bellRing {
    0% { transform: rotate(0); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-14deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(6deg); }
    60% { transform: rotate(-6deg); }
    100% { transform: rotate(0); }
}

.ringing {
    animation: bellRing 1s ease-in-out infinite;
}

/* In ấn báo cáo chuẩn trang A4 */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    .no-print {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
}
