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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #111;
}

.container {
    max-width: 480px;
    width: 100%;
}

.loading-screen,
.blocked-screen {
    text-align: center;
}

.loading-screen p {
    font-size: 1.125rem;
    color: #666;
}

.blocked-screen p {
    font-size: 1.25rem;
    color: #991b1b;
    background: #fef2f2;
    padding: 24px 32px;
    border-radius: 12px;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 32px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#pdfFile {
    display: none;
}

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.dropzone:hover {
    border-color: #999;
}

.dropzone.drag-over {
    border-color: #111;
    background: #f5f5f5;
}

.dropzone.has-file {
    border-color: #111;
    border-style: solid;
}

.dropzone-text {
    font-size: 0.875rem;
    color: #666;
}

.dropzone.has-file .dropzone-text {
    display: none;
}

.dropzone-file {
    font-size: 0.875rem;
    color: #111;
    font-weight: 500;
}

.dropzone:not(.has-file) .dropzone-file {
    display: none;
}

button {
    padding: 14px 24px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover:not(:disabled) {
    background: #333;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button .btn-loading {
    display: none;
}

button.loading .btn-text {
    display: none;
}

button.loading .btn-loading {
    display: inline;
}

.result {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

.result.success {
    display: block;
    background: #f0fdf4;
    color: #166534;
}

.result.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    opacity: 0;
    transition: opacity 0.2s;
}

.stats.visible {
    opacity: 1;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.result.processing {
    display: block;
    background: #eff6ff;
    color: #415bb1;
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .dropzone {
        padding: 32px 16px;
    }

    .stats {
        gap: 24px;
    }
}
