/* Progress Interface Styles */
.progress-container {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9ff, #e8f5e8);
    border-radius: 15px;
    display: none;
    border: 2px solid #00c851;
    box-shadow: 0 10px 30px rgba(0, 200, 81, 0.1);
}

.progress-header {
    text-align: center;
    margin-bottom: 25px;
}

.progress-header h3 {
    color: #00a085;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.progress-bar-container {
    margin: 25px 0;
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00c851, #66bb6a, #00c851);
    width: 0%;
    transition: width 0.8s ease;
    border-radius: 8px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, .4) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .4) 50%,
        rgba(255, 255, 255, .4) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.progress-percentage {
    font-weight: bold;
    color: #00a085;
    font-size: 1.3rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.progress-status {
    color: #4a4a4a;
    font-style: italic;
    flex: 1;
    text-align: right;
    font-weight: 500;
}

/* Download Section Styles */
.download-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #00c851, #00a085);
    color: white;
    border-radius: 15px;
    text-align: center;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 200, 81, 0.3);
}

.download-section h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 600;
}

.download-section p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.download-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: left;
    backdrop-filter: blur(10px);
}

.download-info p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.download-info strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.download-info span {
    color: white;
    font-weight: 500;
}

.download-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.download-btn {
    background: white;
    color: #00c851;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 180px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #00a085;
}

.reset-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Error Section Styles */
.error-section {
    margin-top: 20px;
    padding: 18px;
    background: #ffebee;
    color: #c62828;
    border-radius: 10px;
    border-left: 4px solid #f44336;
    display: none;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.1);
}

.error-section strong {
    font-weight: 600;
}

.error-message {
    font-weight: 500;
}

/* Video Info Styles (if needed) */
.video-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.video-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background: #e0e0e0;
}

.video-details {
    flex: 1;
    text-align: left;
}

.video-details h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.3;
}

.video-details p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-container,
    .download-section {
        padding: 20px;
        margin-top: 20px;
    }
    
    .progress-info {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .progress-status {
        text-align: center;
    }
    
    .download-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .download-btn,
    .reset-btn {
        min-width: auto;
        width: 100%;
    }
    
    .download-info p {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .video-info {
        flex-direction: column;
        text-align: center;
        max-width: 300px;
    }
    
    .video-details {
        text-align: center;
    }
}

/* Enhanced animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-container,
.download-section,
.error-section {
    animation: fadeIn 0.5s ease-out;
}

/* Loading states */
.converting .progress-fill {
    animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}