/* PDF preview styles */
.pdf-upload-field {
    margin: 20px 0;
}

.pdf-upload-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.pdf-upload-field input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 8px;
}

#pdf_preview {
    margin: 20px 0;
}

.pdf-page {
    margin-bottom: 30px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.page-number {
    font-weight: bold;
    margin-bottom: 10px;
}

.pdf-page canvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.page-options {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    gap: 10px;
}

/* Hide original radio buttons */
.page-options input[type="radio"] {
    display: none;
}

/* Style labels as buttons */
.page-options label {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Hover state */
.page-options label:hover {
    border-color: #999;
}

/* Selected state */
.page-options input[type="radio"]:checked + label {
    background: #2271b1;
    border-color: #2271b1;
    color: white;
}

.loading {
    padding: 20px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 4px;
}

.error {
    padding: 20px;
    text-align: center;
    background: #fee;
    color: #c00;
    border-radius: 4px;
}