/* ========================================
   VIDEO PROGRESS TRACKER STYLES
   Sơn Marketing LMS
   ======================================== */

/* Completion Toast Notification */
.completion-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    z-index: 999999;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #28a745;
    max-width: 400px;
}

.completion-toast .toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #0a192e;
}

.completion-toast .toast-content i {
    font-size: 20px;
    color: #28a745;
}

.completion-toast.fade-out {
    animation: slideOutRight 0.3s ease;
}

/* Next Lesson Modal */
.next-lesson-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.next-lesson-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
}

.next-lesson-modal .modal-content {
    position: relative;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.next-lesson-modal .modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #754ffe 0%, #9d7eff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.next-lesson-modal .modal-icon i {
    font-size: 36px;
    color: #fff;
}

.next-lesson-modal h4 {
    font-size: 20px;
    font-weight: 600;
    color: #0a192e;
    margin-bottom: 20px;
}

.next-lesson-modal .countdown {
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(135deg, #754ffe 0%, #9d7eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    animation: countdownPulse 1s infinite;
}

.next-lesson-modal .modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.next-lesson-modal .btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.next-lesson-modal .btn-primary {
    background: linear-gradient(135deg, #754ffe 0%, #9d7eff 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(117, 79, 254, 0.3);
}

.next-lesson-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(117, 79, 254, 0.4);
}

.next-lesson-modal .btn-secondary {
    background: #f1f3f5;
    color: #495057;
}

.next-lesson-modal .btn-secondary:hover {
    background: #e9ecef;
}

/* Course Completion Modal */
.course-completion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.course-completion-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
}

.course-completion-modal .modal-content {
    position: relative;
    background: #fff;
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 520px;
    width: 90%;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}

.course-completion-modal .completion-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 0.8s ease;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
}

.course-completion-modal .completion-icon i {
    font-size: 60px;
    color: #fff;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.course-completion-modal h3 {
    font-size: 32px;
    font-weight: 700;
    color: #0a192e;
    margin-bottom: 16px;
}

.course-completion-modal .completion-message {
    font-size: 18px;
    color: #495057;
    margin-bottom: 12px;
    font-weight: 500;
}

.course-completion-modal .completion-submessage {
    font-size: 15px;
    color: #737982;
    margin-bottom: 35px;
}

.course-completion-modal .modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.course-completion-modal .btn {
    flex: 1;
    min-width: 160px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.course-completion-modal .btn-primary {
    background: linear-gradient(135deg, #754ffe 0%, #9d7eff 100%);
    color: #fff;
    box-shadow: 0 10px 25px rgba(117, 79, 254, 0.3);
}

.course-completion-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(117, 79, 254, 0.4);
}

.course-completion-modal .btn-secondary {
    background: #f1f3f5;
    color: #495057;
}

.course-completion-modal .btn-secondary:hover {
    background: #e9ecef;
}

/* Progress Bar Container */
.lesson-progress-container {
    margin-top: 20px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.lesson-progress-bar-wrapper {
    position: relative;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.lesson-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #754ffe 0%, #9d7eff 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lesson-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

.lesson-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
    color: #737982;
}

.lesson-progress-info .left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-progress-info .right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lesson-progress-text {
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(135deg, #754ffe 0%, #9d7eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lesson-time-display {
    font-size: 12px;
    color: #868e96;
    font-weight: 500;
}

/* Completion Badge */
.lesson-completed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.lesson-completed-badge i {
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .completion-toast {
        top: 70px;
        right: 15px;
        left: 15px;
        max-width: none;
        padding: 14px 18px;
    }
    
    .completion-toast .toast-content {
        font-size: 14px;
    }
    
    .completion-toast .toast-content i {
        font-size: 20px;
    }
    
    .next-lesson-modal .modal-content,
    .course-completion-modal .modal-content {
        padding: 30px 24px;
        width: 92%;
        max-width: none;
    }
    
    .next-lesson-modal .modal-icon {
        width: 70px;
        height: 70px;
    }
    
    .next-lesson-modal .modal-icon i {
        font-size: 30px;
    }
    
    .next-lesson-modal h4 {
        font-size: 18px;
    }
    
    .next-lesson-modal .countdown {
        font-size: 56px;
    }
    
    .next-lesson-modal .modal-actions,
    .course-completion-modal .modal-actions {
        flex-direction: column;
    }
    
    .next-lesson-modal .btn,
    .course-completion-modal .btn {
        width: 100%;
        min-width: 0;
    }
    
    .course-completion-modal .completion-icon {
        width: 100px;
        height: 100px;
    }
    
    .course-completion-modal .completion-icon i {
        font-size: 50px;
    }
    
    .course-completion-modal h3 {
        font-size: 26px;
    }
    
    .course-completion-modal .completion-message {
        font-size: 16px;
    }
    
    .course-completion-modal .completion-submessage {
        font-size: 14px;
    }
    
    .lesson-progress-container {
        padding: 14px 16px;
    }
    
    .lesson-progress-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(117, 79, 254, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(117, 79, 254, 0);
    }
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(-10px);
    }
    75% {
        transform: translateY(-15px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* ========================================
   BUNNY STREAM TRACKER STYLES
   ======================================== */

/* Resume Notification */
.bunny-resume-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    z-index: 999998;
    animation: fadeInUp 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.bunny-resume-notification i {
    font-size: 18px;
    color: #4CAF50;
}

.bunny-resume-notification.fade-out {
    animation: fadeOutDown 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

