/* Ferramenta Unir PDF — área da ferramenta (client-side) */
.tool-unir-pdf {
    --tool-bg: #ffffff;
    --tool-border: #e2e8f0;
    --tool-muted: #64748b;
    --tool-accent: #10b981;
    --tool-accent-dim: #059669;
    --tool-danger: #dc2626;
}

.tool-unir-pdf .tool-card {
    background: var(--tool-bg);
    border: 1px solid var(--tool-border);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.tool-unir-pdf .tool-drop {
    border: 2px dashed var(--tool-border);
    border-radius: 10px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.tool-unir-pdf .tool-drop:hover,
.tool-unir-pdf .tool-drop.dragover {
    border-color: var(--tool-accent);
    background: rgba(13, 148, 136, 0.06);
}

.tool-unir-pdf .tool-drop input {
    display: none;
}

.tool-unir-pdf .tool-drop strong {
    color: var(--tool-accent);
}

.tool-unir-pdf .tool-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tool-unir-pdf .tool-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--tool-border);
    font-size: 0.9rem;
}

.tool-unir-pdf .tool-list li:last-child {
    border-bottom: none;
}

.tool-unir-pdf .tool-list .name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-unir-pdf .tool-list .pages {
    color: var(--tool-muted);
    font-size: 0.8rem;
}

.tool-unir-pdf .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    font-family: inherit;
}

.tool-unir-pdf .btn-primary {
    background: var(--tool-accent);
    color: #fff;
    width: 100%;
    margin-top: 0.5rem;
}

.tool-unir-pdf .btn-primary:hover:not(:disabled) {
    background: var(--tool-accent-dim);
}

.tool-unir-pdf .btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tool-unir-pdf .btn-ghost {
    background: transparent;
    color: var(--tool-muted);
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
}

.tool-unir-pdf .btn-ghost:hover {
    color: var(--tool-danger);
}

.tool-unir-pdf .btn-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.35);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.tool-unir-pdf .btn-danger:hover {
    background: rgba(220, 38, 38, 0.18);
}

.tool-unir-pdf .row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tool-unir-pdf .msg {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: none;
}

.tool-unir-pdf .msg.err {
    display: block;
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.tool-unir-pdf .tool-privacy {
    font-size: 0.8125rem;
    color: var(--tool-muted);
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--tool-border);
}
