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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
    padding: 2rem;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #888;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #333;
    border-radius: 8px;
    background: #0f0f23;
    color: #fff;
    font-size: 1rem;
}

input[type="file"] {
    width: 100%;
    padding: 1rem;
    border: 2px dashed #333;
    border-radius: 8px;
    background: #0f0f23;
    color: #fff;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button[type="submit"],
.download-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover,
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.download-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

/* Progress Section */
.progress-container {
    margin-top: 2rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #0f0f23;
    border-radius: 8px;
    margin-bottom: 1rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.progress-step.active .step-icon {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.progress-step.completed .step-icon {
    background: #22c55e;
}

.step-label {
    flex: 1;
    font-weight: 500;
}

.step-bar {
    width: 100px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.step-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 2s ease-out;
}

.progress-step.completed .step-fill {
    background: #22c55e;
}

/* Result Section */
#resultSection {
    text-align: center;
}

#resultSection h2 {
    margin-bottom: 1rem;
    color: #22c55e;
}

video {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    background: #000;
}

/* Error Section */
#errorSection {
    text-align: center;
    padding: 2rem;
    background: #2d1f1f;
    border-radius: 8px;
}

#errorSection h2 {
    color: #ef4444;
    margin-bottom: 1rem;
}

#errorMessage {
    margin-bottom: 1rem;
    color: #fca5a5;
}

#errorSection button {
    padding: 0.75rem 2rem;
    background: #333;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
}
