* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    padding: 40px;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.upload-box {
    border: 3px dashed #4A90E2;
    border-radius: 15px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.upload-box:hover {
    border-color: #667eea;
    background: #f0f2ff;
    transform: translateY(-2px);
}

.upload-box.dragover {
    border-color: #667eea;
    background: #e8ebff;
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-box h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.upload-box p {
    color: #666;
    margin-bottom: 5px;
}

.file-size {
    color: #999;
    font-size: 0.9em;
}

/* Uploaded File Display */
.uploaded-file {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.file-preview {
    flex-shrink: 0;
}

.file-preview video {
    width: 200px;
    height: 112px;
    object-fit: cover;
    border-radius: 8px;
}

.file-info {
    flex: 1;
}

.file-info h4 {
    color: #333;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-info p {
    color: #666;
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #e04050;
    transform: scale(1.1);
}

/* Action Section */
.action-section {
    text-align: center;
    margin-bottom: 30px;
}

.process-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.process-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-icon {
    margin-right: 10px;
}

/* Progress Section */
.progress-section {
    text-align: center;
    padding: 30px;
}

.progress-bar {
    background: #e0e0e0;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-text {
    color: #666;
    font-size: 1.1em;
}

/* Download Section */
.download-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 15px;
}

.success-icon {
    font-size: 4em;
    color: #4CAF50;
    margin-bottom: 20px;
}

.download-section h3 {
    color: #2E7D32;
    margin-bottom: 10px;
}

.download-section p {
    color: #666;
    margin-bottom: 25px;
}

.download-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.download-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Features */
.features {
    padding: 40px;
    background: #f8f9ff;
    text-align: center;
}

.features h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.feature-item {
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Instructions */
.instructions {
    padding: 40px;
    text-align: center;
}

.instructions h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.instructions ol {
    list-style: none;
    padding: 0;
    max-width: 500px;
    margin: 0 auto;
}

.instructions li {
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #f8f9ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-align: left;
}

.instructions li:before {
    content: attr(data-step);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

.footer p {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .main-content,
    .features,
    .instructions {
        padding: 25px;
    }

    .uploaded-file {
        flex-direction: column;
    }

    .file-preview video {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
