/* Nền nhà máy */
.factory-container {
    height: 160px;
    background: linear-gradient(180deg, #e0e0e0 0%, #bdc3c7 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

/* Kiện hàng (Tự động đổi icon theo bài) */
.cargo-box {
    position: absolute;
    bottom: 35px;
    left: 20%;
    font-size: 4rem;
    z-index: 3;
    filter: drop-shadow(4px 4px 2px rgba(0,0,0,0.3));
    transition: transform 1s ease-in, opacity 0.5s ease-in 0.5s;
}

/* Hiệu ứng trượt hàng ra xe tải */
.ship-out {
    transform: translateX(400px);
    opacity: 0;
}

/* Mặt băng chuyền */
.conveyor-belt {
    position: absolute;
    bottom: 25px;
    width: 100%;
    height: 12px;
    background-color: #34495e;
    border-top: 4px dashed #f1c40f; /* Đường vạch vàng báo hiệu di chuyển */
    z-index: 2;
}

/* Chuyển động cuộn của mặt băng chuyền */
.moving-belt {
    animation: roll-belt 0.5s linear infinite;
}
@keyframes roll-belt {
    from { background-position: 0 0; }
    to { background-position: 40px 0; }
}

/* Bánh răng đỡ băng chuyền */
.gears-container {
    position: absolute;
    bottom: -5px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    z-index: 1;
}

.gear {
    font-size: 2rem;
    color: #7f8c8d;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5));
}

/* Xoay bánh răng */
.spinning {
    animation: spin-gear 1s linear infinite;
}
@keyframes spin-gear {
    100% { transform: rotate(360deg); }
}

/* Hiệu ứng rung khi sai */
.shake-error { animation: shake-cargo 0.4s; }
@keyframes shake-cargo {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

.min-h-75 { min-height: 85px; }
.hl-num { color: #d35400; font-weight: 900; font-size: 1.2em; }