/* pdf.css */
.pdf-preview-container {
    width: 100%;
    height: 100%;
}

.pdf-viewer-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-toolbar {
    padding: 8px 15px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.pdf-toolbar button {
    padding: 5px 10px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pdf-toolbar button:hover {
    background: #4338ca;
}

.pdf-toolbar button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.pdf-page-info {
    margin: 0 10px;
    font-size: 12px;
    color: #64748b;
}

.pdf-viewer-container {
    flex: 1;
    overflow: auto;
    text-align: center;
}

.pdf-canvas {
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.pdf-loading {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 12px;
}

/* 文档预览样式 */
.document-preview {
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
}

.document-preview p {
    margin: 10px 0;
    color: #64748b;
}

.document-preview .download-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.document-preview .download-btn:hover {
    background: #059669;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}