﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #203f66 0%, #85d293 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
}

.video-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Video Card */
.video-card {
    /* background: white; */
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.video-header {
    background: #274164;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.user-details h3 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-details p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.pause-play-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .pause-play-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .pause-play-btn:active {
        transform: translateY(0);
    }

    .pause-play-btn .icon {
        font-size: 18px;
    }

/* Video Player */
.video-player-wrapper {
    position: relative;
    background: #000;
    /* border: 8px solid #f0f0f0; */
    border-left: none;
    border-right: none;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
}

/* Progress Section */
.progress-section {
    padding: 29px;
    background: #f8f9fa;
    height: 10rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.time-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.time-display {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.progress-bar-container {
    position: relative;
    margin-bottom: 16px;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    background: #284265;
    border-radius: 20px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.progress-percentage {
    position: absolute;
    right: 0;
    top: -9px;
    background: #85d293;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.progress-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

    .progress-message .icon {
        font-size: 16px;
    }

/* Completion Card */
.completion-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    animation: slideUp 0.5s ease;
}

.completion-content {
    padding: 60px 40px;
    text-align: center;
}

.checkmark-container {
    margin-bottom: 24px;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-size: 60px;
    line-height: 100px;
    margin: 0 auto;
    animation: scaleIn 0.5s ease;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(-180deg);
    }

    to {
        transform: scale(1) rotate(0deg);
    }
}

.completion-content h2 {
    color: #212529;
    margin-bottom: 12px;
    font-size: 32px;
    font-weight: 700;
}

.completion-subtitle {
    color: #6c757d;
    margin-bottom: 36px;
    font-size: 16px;
}

.button-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    }

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

    .btn-secondary:hover {
        background: #667eea;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

.btn:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .video-header {
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
    }

    .progress-section {
        padding: 24px 20px;
    }

    .button-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .completion-content {
        padding: 40px 20px;
    }
}
/* Play Overlay Styles */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

    .play-overlay:hover {
        background: rgba(0, 0, 0, 0.9);
    }

.play-overlay-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.play-icon-large {
    width: 100px;
    height: 100px;
    line-height: 100px;
    font-size: 48px;
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid white;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.play-overlay:hover .play-icon-large {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.play-overlay-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.play-overlay-content p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Start Message Styles */
.start-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: slideIn 0.5s ease-out;
}

.start-message-icon {
    font-size: 48px;
    animation: bounce 1s infinite;
}

.start-message-content {
    flex: 1;
    color: white;
}

    .start-message-content h4 {
        margin: 0 0 8px 0;
        font-size: 20px;
        font-weight: 600;
    }

    .start-message-content p {
        margin: 0;
        font-size: 16px;
        line-height: 1.5;
        opacity: 0.95;
    }

    .start-message-content strong {
        font-weight: 700;
        text-decoration: underline;
    }

/* Pulse Animation for Play Button */
.pulse-animation {
    animation: buttonPulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(0, 51, 102, 0.7);
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 51, 102, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(0, 51, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 51, 102, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .play-icon-large {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 36px;
    }

    .play-overlay-content h3 {
        font-size: 20px;
    }

    .play-overlay-content p {
        font-size: 14px;
    }

    .start-message {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .start-message-icon {
        font-size: 36px;
    }

    .start-message-content h4 {
        font-size: 18px;
    }

    .start-message-content p {
        font-size: 14px;
    }
}