* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #e0e7ff 0%, #f5f3ff 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1f2937;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
h1 { font-size: 28px; margin-bottom: 4px; color: #1e293b; }
.subtitle { color: #64748b; margin-bottom: 24px; font-size: 14px; }
h2 { font-size: 20px; margin-bottom: 16px; color: #1e293b; }

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.alert code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

.drop-zone {
    border: 3px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: #6366f1;
    background: #eef2ff;
}
.drop-icon { font-size: 48px; margin-bottom: 12px; }
.drop-text { font-size: 16px; color: #475569; margin-bottom: 8px; }
.drop-hint { font-size: 13px; color: #94a3b8; }
.browse-link {
    color: #6366f1;
    cursor: pointer;
    text-decoration: underline;
}

#file-list {
    margin: 16px 0;
    max-height: 200px;
    overflow-y: auto;
}
.file-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 13px;
}
.file-item .size { color: #94a3b8; }

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
    margin-right: 8px;
    margin-top: 8px;
}
.btn-primary {
    background: #6366f1;
    color: white;
}
.btn-primary:hover:not(:disabled) { background: #4f46e5; }
.btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}
.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}
.btn-secondary:hover { background: #cbd5e1; }

.progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 0%;
    transition: width 0.3s;
}
#progress-status { font-size: 14px; color: #475569; margin-bottom: 8px; }
#progress-details { font-size: 12px; color: #94a3b8; }

#result-stats {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
#result-stats table { width: 100%; margin-top: 8px; }
#result-stats td { padding: 4px 8px; }
#result-stats td:last-child { text-align: right; font-weight: 600; }

@media (max-width: 600px) {
    .container { padding: 20px; }
    h1 { font-size: 22px; }
    .drop-zone { padding: 24px; }
    .drop-icon { font-size: 36px; }
}
