/* PDF Annotations */

.pdf-annotation-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    cursor: crosshair; z-index: var(--z-annotation-layer);
}

.annotation-pin {
    position: absolute; width: 24px; height: 24px;
    background: var(--color-accent-danger); border: 2px solid white;
    border-radius: 50%; transform: translate(-50%, -50%);
    cursor: pointer; z-index: var(--z-annotation-pin);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--font-size-sm); font-weight: var(--font-weight-bold);
    color: white; box-shadow: var(--shadow-pin); transition: transform 0.15s;
}
.annotation-pin:hover { transform: translate(-50%, -50%) scale(1.2); }
.annotation-pin.active { background: var(--color-accent-primary); }

.annotation-popover {
    position: absolute; z-index: var(--z-annotation-popover);
    background: var(--color-bg-secondary); border: 1px solid var(--color-border);
    border-radius: var(--radius); box-shadow: var(--shadow-xl);
    padding: var(--space-12); width: 240px;
}
.annotation-popover textarea {
    width: 100%; padding: var(--space-8); background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    color: var(--color-text-primary); font-family: inherit; font-size: var(--font-size-md);
    resize: vertical; min-height: 60px; outline: none;
}
.annotation-popover textarea:focus { border-color: var(--color-accent-primary); }
.annotation-popover-actions {
    display: flex; justify-content: flex-end; gap: var(--space-6); margin-top: var(--space-8);
}
