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

:root {
    --bg: #0a0a0b;
    --surface: #141416;
    --surface-hover: #1c1c20;
    --border: #2a2a2e;
    --text: #f0f0f2;
    --text-muted: #8888a0;
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 520px;
    padding: 24px;
}

header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--primary);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--surface);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    margin-bottom: 4px;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.upload-limit {
    color: var(--text-muted);
    font-size: 12px;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: 12px;
    margin-top: 12px;
    border: 1px solid var(--border);
}

.file-details {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.file-details strong {
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
    margin-top: 16px;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--surface-hover);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.progress-section {
    margin-top: 24px;
}

.progress-bar {
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
}

.progress-fill.indeterminate {
    width: 100%;
    animation: indeterminate 1.5s infinite;
}

@keyframes indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.status-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 1.5s infinite;
}

.status-dot.success {
    background: var(--success);
    animation: none;
}

.status-dot.error {
    background: var(--error);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.result-section {
    margin-top: 24px;
}

.result-success,
.result-error {
    text-align: center;
    padding: 32px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.result-success svg {
    color: var(--success);
    margin-bottom: 16px;
}

.result-error svg {
    color: var(--error);
    margin-bottom: 16px;
}

.result-success h3,
.result-error h3 {
    margin-bottom: 8px;
}

.result-success p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.result-success .btn {
    margin-top: 0;
    width: auto;
}

.result-success .btn + .btn {
    margin-left: 8px;
}

.error-log {
    text-align: left;
    background: var(--bg);
    padding: 12px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--error);
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 16px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 12px;
}
