/* PDF 工具页 */

.pdf-tab {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.pdf-tab:hover {
    color: #3b82f6;
    background: #eff6ff;
}
.pdf-tab.active {
    color: #fff;
    background: #3b82f6;
    border-color: #3b82f6;
}

.pdf-panel {
    display: none;
}
.pdf-panel.active {
    display: block;
}

.pdf-drop {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.pdf-drop:hover,
.pdf-drop.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.pdf-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}
.pdf-file-item .name {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pdf-file-item .meta {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

.pdf-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}
.pdf-preview-grid img {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background: #fff;
}

#pdf-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background: #1e293b;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    display: none;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}
#pdf-toast.show {
    display: block;
}
