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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e4e4e4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    background: #1f1f1f;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 40px;
}

.upload-form {
    margin-bottom: 30px;
}

.file-input-wrapper {
    margin-bottom: 25px;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    background: #2a2a2a;
    border: 2px dashed #4a5568;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #9ca3af;
}

.file-label:hover {
    border-color: #6366f1;
    background: #2d2d2d;
    color: #e4e4e4;
}

.file-label.has-file {
    border-color: #10b981;
    border-style: solid;
    background: #1a3a2a;
}

.file-input-wrapper.drag-over .file-label {
    border-color: #8b5cf6;
    background: #2d2a3a;
    transform: scale(1.02);
}

.file-label svg {
    flex-shrink: 0;
}

.file-text {
    font-weight: 500;
}

.file-name {
    display: block;
    margin-top: 10px;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 8px;
    font-size: 14px;
    color: #10b981;
    text-align: center;
    min-height: 20px;
}

.options {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #2a2a2a;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: #2d2d2d;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6366f1;
}

.checkbox-label span {
    color: #e4e4e4;
    font-size: 15px;
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.message.error {
    background: #3a1a1a;
    border-left: 4px solid #ef4444;
    color: #fca5a5;
}

.message.success {
    background: #1a3a2a;
    border-left: 4px solid #10b981;
    color: #6ee7b7;
}

.download-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.download-link:hover {
    background: #059669;
}

.info {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.info h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
}

.info ul {
    list-style: none;
    padding: 0;
}

.info ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #9ca3af;
    font-size: 14px;
}

.info ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Progress Container */
.progress-container {
    margin-bottom: 30px;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 25px;
}

.progress-step {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

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

.progress-step.complete {
    opacity: 0.6;
}

.progress-step.complete .step-icon {
    background: #10b981;
    color: white;
}

.step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    transition: all 0.3s ease;
}

.progress-step.active .step-icon {
    background: #6366f1;
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 15px;
    font-weight: 500;
    color: #e4e4e4;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #3a3a3a;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.step-percent {
    font-size: 12px;
    color: #9ca3af;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #3a3a3a;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 24px;
    }

    .file-label {
        padding: 20px;
        flex-direction: column;
    }

    .progress-step {
        gap: 10px;
    }

    .step-icon {
        width: 35px;
        height: 35px;
    }
}
