/* CSS Tùy biến cho Ứng dụng Quản lý Kỹ thuật Tín Thành */

/* Hiệu ứng chuyển động mượt */
.tab-content {
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-scale-up {
    animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Nav Active Style */
.nav-btn.active {
    background-color: #0d9488;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.3);
}

.nav-btn:not(.active) {
    color: #cbd5e1;
}

.nav-btn:not(.active):hover {
    background-color: #334155;
    color: #ffffff;
}

/* Scrollbar tinh tế */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==================== ĐỊNH DẠNG IN PHIẾU A4 (PRINT STYLES) ==================== */
@media print {
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
        width: 100% !important;
        max-width: 800px !important;
        margin: 0 auto !important;
        padding: 20px !important;
        font-size: 13px !important;
    }

    @page {
        size: A4 portrait;
        margin: 15mm;
    }
}

@media screen {
    .print-only {
        display: none;
    }
}

/* Hiệu ứng nhấp nháy làm nổi bật thẻ phiếu khi bấm vào thông báo */
.highlight-pulse {
    animation: ticketGlow 1.8s ease-in-out infinite alternate;
    border-color: #0d9488 !important;
}

@keyframes ticketGlow {
    from {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.6);
    }
    to {
        box-shadow: 0 0 0 8px rgba(13, 148, 136, 0);
    }
}


