/* --- CSS CHO PLUGIN DABILUX NUÔI THÂN --- */

/* Container chính cố định bên phải */
.dabilux-nuoi-than-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999; /* Z-index cao nhất để đè lên mọi thứ */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-family: sans-serif; /* Đảm bảo font chữ cơ bản */
}

/* Wrapper cho nút bấm và chữ */
.dabilux-nuoi-than-trigger-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 50;
}

/* Animation Zoom ra Zoom vào (Pulse) */
@keyframes dabilux-nuoi-than-pulse-zoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Nút kích hoạt (Ảnh 1) */
.dabilux-nuoi-than-trigger-btn {
    width: 60px; /* Điều chỉnh kích thước nút ở đây */
    height: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    /* Áp dụng animation */
    animation: dabilux-nuoi-than-pulse-zoom 2s infinite ease-in-out;
}

/* Khi hover vào wrapper thì ngừng rung */
.dabilux-nuoi-than-trigger-wrapper:hover .dabilux-nuoi-than-trigger-btn {
    animation-play-state: paused;
    transform: scale(1.2);
}

/* Khi Widget đang mở (active) */
.dabilux-nuoi-than-container.active .dabilux-nuoi-than-trigger-btn {
    animation: none;
    transform: rotate(-15deg);
}

/* Dòng chữ kêu gọi hành động */
.dabilux-nuoi-than-cta-text {
    font-size: 11px;
    font-weight: bold;
    color: #d32f2f; /* Màu chữ */
    background-color: #ffeb3b; /* Màu nền */
    padding: 3px 8px;
    border-radius: 12px;
    margin-top: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
    animation: dabilux-nuoi-than-bounce-text 2s infinite 1s;
}

@keyframes dabilux-nuoi-than-bounce-text {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Khung nội dung bung ra (Ảnh 2 + Chữ) */
.dabilux-nuoi-than-popup-content {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    transform-origin: right center;
    width: 250px; /* Kích thước khung QR */
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    text-align: center;
    z-index: 40;
}

/* Trạng thái hiện của popup */
.dabilux-nuoi-than-container.active .dabilux-nuoi-than-popup-content {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Ảnh 2 (QR Code) */
.dabilux-nuoi-than-qr-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block;
}

/* Dòng chữ bên dưới QR */
.dabilux-nuoi-than-donate-text {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Mũi tên chỉ vào nút */
.dabilux-nuoi-than-popup-content::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent white;
}

/* Mobile Responsive */
@media (max-width: 400px) {
    .dabilux-nuoi-than-popup-content {
        width: 200px;
    }
    .dabilux-nuoi-than-donate-text {
        font-size: 12px;
    }
}

