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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.pdf-area {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    padding: 20px;
    background: var(--bg-secondary);
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: 48px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
}

.upload-area h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.upload-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

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

.file-label {
    display: inline-block;
    padding: 10px 24px;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.file-label:hover {
    background: #2563eb;
}

.upload-or {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.upload-url {
    display: flex;
    gap: 8px;
    width: 100%;
}

.url-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.url-submit {
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.url-submit:hover {
    background: #2563eb;
}
