/* 右侧操作动作条 */
.right-toolbar {
    width: 60px;
    background: #fff;
    border-left: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    gap: 1.2rem;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    z-index: 90;
}

.toolbar-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: #f8f9fa;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.toolbar-btn:hover {
    background: #e9ecef;
    color: #d63384;
    transform: scale(1.05);
}

.toolbar-btn.active {
    background: #fff5f7;
    color: #d63384;
    border: 1px solid #fcc2d7;
}

.toolbar-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100;
}

.toolbar-btn:hover::after {
    opacity: 1;
}

/* 防止工具栏按钮触发通用 tooltip */
.toolbar-btn[data-tooltip]:hover::before {
    display: none;
}

.zoom-control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background: #f8f9fa;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.zoom-value {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}