/* Video Progress Tracker Styles */

.video-status-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in;
}

.video-status-badge i {
    font-size: 16px;
}

.video-status-badge.watching {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-status-badge.completed {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* เพิ่ม animation เมื่อเปลี่ยนสถานะ */
.video-status-badge.completed {
    animation: fadeIn 0.3s ease-in, pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.1);
    }
}

/* Quiz Button Styles */
.btn-quiz {
    margin-top: 10px;
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #fff !important;
    border: 2px solid #fff !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 51, 73, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-quiz:hover {
    background: linear-gradient(135deg, #d62839 0%, #e04a36 100%);
    color: #fff !important;
    border-color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 51, 73, 0.6);
}

.btn-quiz:active {
    transform: translateY(0);
}

.btn-quiz i {
    font-size: 16px;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .video-status-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .video-status-badge i {
        font-size: 14px;
    }

    .btn-quiz {
        font-size: 12px;
        padding: 8px 16px;
    }

    .btn-quiz i {
        font-size: 14px;
    }
}
