/* ============================================================
   PDF Editor — Tools toolbar strip (Annotate / Shapes / …)
   Scaffold only; tool behavior wired in follow-up steps.
   Matches existing editor-toolbar / design tokens.
   ============================================================ */

.pedit-tools-toolbar {
    display: flex;
    align-items: center;
    width: 100%;
}

.pedit-tools-toolbar-inner {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid var(--primary-light);
    border-radius: 14px;
    padding: 4px;
    gap: 0;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pedit-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pedit-tool-btn i {
    font-size: 0.95rem;
    color: #f79112;
    transition: color 0.2s ease;
}

.pedit-tool-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.pedit-tool-btn:focus-visible {
    outline: 2px solid #f79112;
    outline-offset: 2px;
}

.pedit-tool-btn.is-active,
.pedit-tool-btn[aria-pressed="true"] {
    background: rgba(247, 145, 18, 0.16);
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px rgba(247, 145, 18, 0.45);
}

.pedit-tool-btn.is-active i,
.pedit-tool-btn[aria-pressed="true"] i {
    color: #f79112;
}

/* Mode buttons live in this strip — override legacy sidebar pill styles */
.pedit-tools-toolbar .pedit-mode-tab.active,
.pedit-tools-toolbar .pedit-mode-tab.is-active {
    background: rgba(247, 145, 18, 0.16);
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px rgba(247, 145, 18, 0.45);
}

.pedit-tools-toolbar .pedit-mode-tab.active i,
.pedit-tools-toolbar .pedit-mode-tab.is-active i {
    color: #f79112;
}

.pedit-tool-sep {
    width: 1px;
    align-self: stretch;
    margin: 6px 2px;
    background: var(--primary-light);
    flex-shrink: 0;
    opacity: 0.85;
}

/* Full-width context strip — only Add Text panel (formatting uses float toolbar) */
.pedit-context-strip {
    width: 100%;
}

.pedit-hidden-controls {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

.pedit-context-strip .pedit-add-panel {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(8px);
}

.pedit-context-strip .pedit-add-input {
    max-width: 420px;
}

@media (max-width: 600px) {
    .pedit-tool-label {
        display: none;
    }

    .pedit-tool-btn {
        padding: 9px 12px;
        min-width: 42px;
    }

    .pedit-tool-btn i {
        font-size: 1.05rem;
    }
}
