* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
}

h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #333;
    font-size: 1.2rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

label {
    font-weight: 500;
    color: #444;
    font-size: 0.9rem;
}

input[type="file"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

button {
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 8px;
}

button:hover:not(:disabled) {
    opacity: 0.9;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#msg {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    display: none;
    font-size: 0.9rem;
}

#msg.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

#msg.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

#msg.info {
    background: #d1ecf1;
    color: #0c5460;
    display: block;
}

#progress {
    margin-top: 16px;
}

.bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

#fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s;
}

#pct {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #667eea;
}
